Search found 401 matches

by launchcode
Wed May 12, 2004 8:35 am
Forum: PHP - Code
Topic: include function
Replies: 7
Views: 583

include will work with our without the braces, the problem is far more likely it cannot find this file - is the script that is trying to include standardheard in the same directory location?
by launchcode
Wed May 12, 2004 8:33 am
Forum: PHP - Code
Topic: how to create a mysql query in php
Replies: 3
Views: 256

$query = "create table ... blah blah blah" of course!
by launchcode
Wed May 12, 2004 8:29 am
Forum: PHP - Code
Topic: how to list all with this code.thanks
Replies: 4
Views: 408

I think he's asking for help - the subject of his messages seems to imply that anyway. Trying to chunk encode an image into a SQL table for some reason.
by launchcode
Wed May 12, 2004 8:23 am
Forum: PHP - Code
Topic: Problem with obtaining data *SOLVED*
Replies: 6
Views: 565

dakkonz - you can only do this reliably on a Windows server, otherwise you need to look at exporting as CSV.
by launchcode
Wed May 12, 2004 8:19 am
Forum: PHP - Code
Topic: list to array
Replies: 2
Views: 334

Hi,

Code: Select all

<?php
	$numbers = "1,2,3,4,5,6";
	$number_array = explode(',', $numbers);
	foreach ($number_array as $number)
	{
		echo number_format($number, 2, '.', '') . "<br>";
	}
?>
by launchcode
Wed May 12, 2004 8:13 am
Forum: PHP - Code
Topic: Wont send right
Replies: 6
Views: 547

Why would you want to hide the From address? Is this some kind of spam script or something?
by launchcode
Wed May 12, 2004 6:38 am
Forum: PHP - Code
Topic: Uploading a single file to multiple servers?
Replies: 14
Views: 736

Once uploaded you should use: move_uploaded_file() to get the temporary file (the one the user just uploaded) to its final destination. Providing it has sufficient write permissions on that location, it will work fine.
by launchcode
Wed May 12, 2004 6:36 am
Forum: PHP - Code
Topic: need help with upload image and getting image name to databa
Replies: 32
Views: 1707

What version of PHP do you have? If it is anything more recent than 4.0.1 then you *must* change to $_FILES.
by launchcode
Tue May 11, 2004 7:41 pm
Forum: PHP - Code
Topic: need help with upload image and getting image name to databa
Replies: 32
Views: 1707

Two things: 1) You're missing the <input type="hidden" name="MAX_FILE_SIZE" value="30000"> line which needs to go on your file upload form (change the byte size obviously). 2) Unless you are using a version of PHP earlier than 4.1.0 the $HTTP_POST_FILES array will never...
by launchcode
Tue May 11, 2004 7:35 pm
Forum: PHP - Code
Topic: Wont send right
Replies: 6
Views: 547

FROM: should be lower-case, like:

"From: whoever@wherever.com" and it does make a difference. Also check a phpinfo() dump to see if you can actually send mail or not.

Cheers,

Rich
by launchcode
Tue May 11, 2004 7:32 pm
Forum: PHP - Code
Topic: Uploading a single file to multiple servers?
Replies: 14
Views: 736

You could approach this from the other angle - i.e. your client uploads the file once to one server which then in turn kicks off scripts on the other servers and they grab the file from that initial server - pass them the filename/id or similar and they can retrieve it via a standard fopen call as l...