Hello,
I'm working on a domain statistics project and does anybody know how can I get unlimited WHOIS (thick) data for domains? Many registrars are limiting their WHOIS servers for look ups. What I need to do is caching more than ten million domains.
Also, is it possible to set up my own WHOIS server for storing thick data? Is there an...
We have a PHP/MYSQL application that collects user input, including special characters like ø,ü,ñ, etc Database is capturing them, and they can be seen via PHPmyAdmin. Download on windows is fine. Display on a mac browser is fine.
When users download the text file on a Mac OSX, the unicode characters come out as other characters. If ...
I was wondering what is the best way to store a users upload images like an avatar and so on using PHP and MySQL? Where should I begin? And is there a good article on this?
...
Hi,
I am building a EC system for a client, this client is selling second hand products. My DB scheme is roughly like this
+-------------+ +-------------+ +-------------+
| Category | | Product | | Stock |
+-------------+ +-------------+ +-------------+
| category_id | | category_id | | stock_id |
| path | | prod...
Hello Friends,
We are struggling to automatically upload images using php - curl. Please let me know if there is any way to do the same.
...
Hi I am doing my project in PHP.In this when the use**r doesnt logged in and click the photo then it display the message please login.Then **after login I wants, the user landing on the photopage..who clicked before login.How can I get the value of userclick and store it and how to redirect them to particular page?
...
Hi,
I am trying to generate a dynamic xml document in CakePHP to output to the browser.
Here is my controller code:
Configure::write ('debug', 0);
$this->layout = null;
header('Content-type: text/xml');
echo "<?xml version=\"1.0\"?>";
View is something like this:
<abc>
something
</abc>
The output is probably as expected:
<?...
From what I've gathered browsing SO, I'm the worst nightmare of good people like you: someone who never formally learned any programming, decided he'd like to enhance his hobby website, and bought a fast-track PHP book off the shelf and went at it.
Browsing SO has taught me a great deal of things, highlights of which include:
PHP is t...
Using php to get results from a database using
$exe = mysql_query("SELECT * FROM info ORDER BY ID ASC");
echo 'table width="80%"';
while ($r = mysql_fetch_array($exe)) {
Then the table layout. So I am just getting a long long list of results. Is there anyway to after every 10 results make a break or put a line across?
...
Hi,
I'd like to create a GViz of some data in a MySql Database and I'm having problems.
Here is the source so far:
<?php
$conn = mysql_connect($dbhost, $dbuser, $dbpass) or die ('Error
connecting to mysql');
mysql_select_db($dbname);
$int_y_pos = -1;
$int_y_step_small = 1;
$sql = "SELECT * from table')";
$sql = mysql_query($sql...
when
$query = 'SELECT * FROM users';
and there are multiple columns/rows, does mysql_fetch_assoc($result)
return a two-dimensional array?
Can I draw each row by simply saying: array_pop(mysql_fetch_assoc($r))
thanks!
...
Suppose I've the following function:
function mul()
{
return array_reduce(func_get_args(), '*');
}
Is is possible to use the * operator as a callback function? Is there any other way?
...
Hi.
I am trying to upload an image to the server.
I hava a form with a couple of inputs...
INSIDE this form, I have an Iframe which contains another form for the upload, this because I dont want the original form to submit().
The original form basically:
<form> ...... bla bla bla alot of inputs....<iframe src="pic_upload.html">...
How do I run a PHP web page in Eclipse? I am using PDT.
I was able to do this when I was studying JEE. I just hit run and then Eclipse's built in browser shows and you can run the website already.
Right now I am able to do this by putting my PHP files in the folder that Apache serves and then I open my browser and go the php file I c...
Im trying to loop through and display info from the following xml structure.
<users_list>
−<users type="array">
+<user>
<id>Blah</id>
</user>
+<user></user>
+<user></user>
</users>
<next_link>6</next_link>
<prev_link>4</prev_link>
</users_list>
Im using the following PHP to grab the nodes.
$xml = simpl...
Is it possible to defining arrays in config files in smarty?? for example I want have small data base in config file (located in /configs) - few (about 20) products descriptions: title, price, description. After that I want to list it via foreach or section.
How can I define that array in Smarty without MySql or other db engine. Can I do...
Firefox doesn't know how to open this address because the protocol (c) isn't associated with any program... This is the error message I get when I try to view an image uploaded by the below script:
Also, its not only firefox, chrome doenst show the image also, but Explorer does...!
The image does get uploaded!
PHP:
<?php
...
I've developed an application that users can use to store lists of their favourite books, books they've read, books they'd like to read, etc., and it's all working fine, but it's just suddenly struck me that users may want to print off their list or download their list to use in another format such as a CSV file to import into a spreadsh...
The key code is:
while ($row= mysql_fetch_array($result, MYSQL_ASSOC))
{ $id=$row[id];
$html=<<<html
<tr><td>
<input style="float:left" type="checkbox" name="mycheckbox[]" value="$id">
<span style="float:left">$row[content]</span>
<span style="color:black;float:right">$row[submitter]</span></td></tr>
html;
echo $html;
}
Th...
I have a link like this
$contact_url="<a href=rentals_popup.php?id=$row->rentals_id >" . "Contact" . "</a>";
I want to open that page in a different window with
SMALLER WIDTH AND HEIGHT
DISABLED MAXIMIZE BUTTON
Can Anybody help me plz
...