Forum: PHP Jul 29th, 2006 |
| Replies: 3 Views: 2,146 Does the database already exsist? |
Forum: PHP Jul 1st, 2006 |
| Replies: 6 Views: 2,918 Not only that you must store the picture as Binary or Blob data type, and you need more than just the data, such as extension(to deteremine what compression is used), and the size.
I suggest you... |
Forum: PHP Jul 1st, 2006 |
| Replies: 6 Views: 16,550 I'm assuming that your including this file into another file, and in that other file you have already echoed something when this file is included.
Otherwise I cannot see what is wrong, as... |
Forum: PHP Jun 2nd, 2006 |
| Replies: 6 Views: 2,000 Include that part in the code that is excuted when the user has authenticated successfully, that would ensure you only did it once per session. |
Forum: PHP Jun 1st, 2006 |
| Replies: 11 Views: 29,452 If you look in the error log in will have a more usefull error message. |
Forum: PHP May 31st, 2006 |
| Replies: 2 Views: 6,077 As far as I'm aware the mail() functoin cannot handle SMTP servers that require authetication.
You will have to use a someone else to send your mail like PEAR's Net_SMTP package or PHPMailer. |
Forum: PHP May 31st, 2006 |
| Replies: 3 Views: 1,782 Your query is probably failing. Try
$run = mysql_query($squery) or die(mysql_error());
And see if you get an error.
Or echo out your SQL statment and trying running it against the database. |
Forum: PHP May 30th, 2006 |
| Replies: 3 Views: 2,729 You want to leave those to lines in whatever files you are sending the mail in.
The mail.myserver.net is whatever your SMTP mail server is for instance mine is smtp.charter.net because charter is... |
Forum: PHP May 30th, 2006 |
| Replies: 4 Views: 1,598 session_user_id is an Integer and you have qoute around it in the SQL query. That could be the problem.
It's not showing in error because you have it redirecting to a new page immeadiately.
... |
Forum: PHP May 30th, 2006 |
| Replies: 3 Views: 1,366 Once you know what you are doing it is THE resource, but if don't have a handle of PHP it's utterly useless. At least IMO. |
Forum: PHP May 29th, 2006 |
| Replies: 1 Views: 1,174 It is stored in $_FILES['yourfilename']['size'].
It will return the size in bytes, so if you want in like MB you will have to convert it yourself, but it's not to hard. Google the conversion... |
Forum: PHP May 29th, 2006 |
| Replies: 3 Views: 1,366 Your best bet you would be store all the users information in a database like MySQL. That way it would persist across sessions.
My personal opinion on learning PHP is to by a book, but there are... |
Forum: PHP May 29th, 2006 |
| Replies: 4 Views: 1,598 Your doing it the correct way. Post your code and mabey we can fix it for ya. |
Forum: PHP May 29th, 2006 |
| Replies: 3 Views: 2,729 You have to set what SMTP(Outgoing) Mail server you are going to user first. In order to set that use.
ini_set(smtp, "mail.myserver.net");
ini_set(smtp_port, 25); //25 is the default leave it at... |
Forum: PHP May 23rd, 2006 |
| Replies: 2 Views: 1,779 Your overthinking this.
All you have to do is echo the HTML to display the image from the directory it's in.
echo "<img src='/path/to/" . $filename . " ' />
No need to use fopen to open the... |
Forum: PHP May 20th, 2006 |
| Replies: 10 Views: 5,916 Very nice.
I never knew you could do that before. That could come in handy. |
Forum: PHP May 19th, 2006 |
| Replies: 10 Views: 5,916 Well when your syndicating from 23 blogs like your page says it just going to take some time.
Since PHP can't multithread it has to do each connection one at a time.
Like digital-ether said... |
Forum: PHP Apr 23rd, 2006 |
| Replies: 2 Views: 67,332 PHP is not a typed langauge so there is no string or number. A varible is a varible is a varible.
It probaby has something to do with missing qoutes but post the code and this will be a much... |
Forum: PHP Apr 22nd, 2006 |
| Replies: 1 Views: 5,099 Try using the IP of Rig2 as the $server varible. |
Forum: PHP Apr 17th, 2006 |
| Replies: 8 Views: 6,057 Look at the line number, and then look at the prevouis command or varible. There needs to be a ; or , there.
If you post those 2 code segments we can tell you exactly what to do. |
Forum: PHP Apr 15th, 2006 |
| Replies: 1 Views: 1,108 The best way to do it would be to store the mp3's on the filesystem, and store information about the file along with it's path in the database.
But if you really want to store the mp3 files in the... |
Forum: PHP Feb 8th, 2006 |
| Replies: 3 Views: 2,004 http://icant.co.uk/articles/phpthumbnails/
http://www.devpapers.com/article/95
http://www.evolt.org/article/Automated_Creation_of_Thumbnails_With_PHP/20/24498/
Just a few results from google... |
Forum: PHP Feb 8th, 2006 |
| Replies: 2 Views: 1,153 Try removing the space between <? and 'php'.
That should fix it. |
Forum: PHP Feb 5th, 2006 |
| Replies: 2 Views: 1,666 If you are truly intresting in learning PHP/MySQL I would suggest you go out and buy and book. I've found that it takes much less time to purchase a book than scour the internet to find an all-in-one... |