[PHP] mail function and Bcc restriction?
Hi all, are there any restrictions for mail function, when I use Bcc? how many email adresses can i put in Bcc, are there any PHP restriction, or just memory restriction, or something else? Thanx a lot Mirza [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] mkdir() makes dir, but with wrong owner
Hi, i had a few problems with mkdir() ane uploading files using php. i have a simple script, which is making a dir. but everytime, it makes a dir with totally wrong user. chown wont work. any expirience with this?? i have found some older posts considering this, but no real answers. i think, the problem is probably in httpd.conf (apche config file), but i am not sure. any ideas? thanx. Mirza -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Increment
Hi Uma, when u make a query, make it for two rows. than show the 1st one, and per psot method send the id of the next row to the next query. $last_id = $_POST[id]; $result = select id, yourcolumns from table ... limit $last_id, 2 $secondrow = 1; while ($row=mysql_fetch_row($result)) { if ($secondrow == 0) { ##make your button with id $button = form\n. input type=submit value=next\n. input type=hidden name=id value=?php echo $row[0]; ?\n. /form\n; } else { echo data of the first row; $secondrow--; } } Mirza [EMAIL PROTECTED] 01.07.2002 08:52 Hello, Can anyone please clear my doubt... Actually i am retrieving the entire record details from the database..I want to display 1 row at a time..after clicking a button i want to display the next record..after clicking the next button i want to display the 3 record and so on..How do i go about with this... Thanks Regards, Uma -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re[2]: [PHP] PHP and PDF
Hi Brian, i have made a pretty nice script for creating pdf files using database data. thats pretty easy. the only thing u have to care about is to calculate the document size. Mirza [EMAIL PROTECTED] 01.07.2002 17:39 if you're creating the form using PHP's PDF functions all you'd need to to is generate the number and add it using whatever command to add a line of text to the PDF document... Don't ask me how.. not used it yet personally. Would like to see a decent example of PHP/PDF creation anyway... -Original Message- From: Gregory Hernandez [mailto:[EMAIL PROTECTED]] Sent: 01 July 2002 4:25 PM To: [EMAIL PROTECTED] Subject: [PHP] PHP and PDF hello everyone-- i'd like to know if this can be solved with php. i'll be creating a pdf form that'll be downloaded, filled and turned in. the form must have a unique NUMBER printed on it each time it is downloaded. i'd like to use php to update this NUMBER (ie. counter + 1) each time the form is accessed, and automatically print this NUMBER on the form that sits on the server. is this possible? thanks in advance. gregory [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] blob versus file
Hi andy, i tested it a few times, and there is actually no difference. why make it complicated, when it can be simple. my opinion is there is no difference. Mirza [EMAIL PROTECTED] 01.07.2002 14:17 Hi there, I am wondering if anybody has experiance in saving images to blob in mysql. I do save images with 1 K and 4 KB to blob fields while I used to save them to file. It seams to me that this is much slower accessing the files. The images take a bit (really short but absolutly noticable) to show up on the site. Is there a way to improve the performance, and why is this happening? I thought the performance might even boost after storing them to blobs. Thank you for any comments on that, Andy PS: I was planing to store all the other images (20 - 50 KB) to blobs as well (thousands) but after this first experiance I am a bit confused if the performance would even more suffer. Would you guys recommend this? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] uploading a file
Hi Phil, your input file name should be the_file snip global $the_path_news, $the_file_name, $the_file, $the_path; if ($the_file_name) { if (!@move_uploaded_file($the_file, $the_path./.$the_file_name)) { echo something barfed.; exit; } else { echo uploaded.; } } snap Mirza [EMAIL PROTECTED] 01.07.2002 17:59 anyone have some code they can send me that will successfully upload a file? I've got all the HTML correct, it's just that my PHP code ain't working. Thanks! Phil -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re[3]: [PHP] PHP and PDF
Hi Gregory, u mean, u want to update an existing PDF file? no, thats not possible. Mirza [EMAIL PROTECTED] 01.07.2002 18:07 hello again. thanks for the responses so far. let me change something from my prevoius post. let's say that i'm using an existing pdf form (i won't be creating a new one), is it still possible to use php to update a number that'll be printed on the pdf form each time it is accessed? again, thanks in advance. gregory [EMAIL PROTECTED] Brian McGarvie [EMAIL PROTECTED] - 7/1/02 11:50 AM Actually I just for a brilliant Free PDF library... www.fpdf.org Excellent tutorials/docs... Use PHP to dynamically generate your forms and include any info you wish from a database i.e. the ID and so on... -Original Message- From: Gregory Hernandez [mailto:[EMAIL PROTECTED]] Sent: 01 July 2002 4:25 PM To: [EMAIL PROTECTED] Subject: [PHP] PHP and PDF hello everyone-- i'd like to know if this can be solved with php. i'll be creating a pdf form that'll be downloaded, filled and turned in. the form must have a unique NUMBER printed on it each time it is downloaded. i'd like to use php to update this NUMBER (ie. counter + 1) each time the form is accessed, and automatically print this NUMBER on the form that sits on the server. is this possible? thanks in advance. gregory [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] uploading a file - here is the error message...
Hi Phil, first thing u should do is to check permission of this directory (CHMOD). the 2nd one, u should replace function copy with move_uploaded_file. than is should work. Mirza [EMAIL PROTECTED] 01.07.2002 19:13 Here is the error I'm receiving when attempting to upload a file Warning: Unable to create 'temp/test.txt': Permission denied in /home/.../www/website/upload3.php on line 11 ..could it be that my web host isn't giving me permissions to upload files ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] mySQL time = year 2038 [HELP]
Hi Shane, use SYSDATE(). Mirza [EMAIL PROTECTED] 01.07.2002 18:38 Checked the archive and saw no difinitives... so... How come when I query my clients mySQL DB and use NULL or NOW() as my default in a TIMESTAMP record that it always comes up Jan 18, 2038? Is the clock not set properly, or am I misunderstanding some basic principal of the time stamp? My clients version pf PHP is 4+ on a Windows IIS server. Any clues??? Thanks -NorthBayShane -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] help with regex in preg_match();
Hi, something like this: $QUERY_STRING = siteUserList.cgi?group=site1772345; if (preg_match(#siteUserList.cgi\?group=site177(?[\d]*)#,$QUERY_STRING,$array11)) { echo found: $array11[0]br /$array11[1]; } Mirza [EMAIL PROTECTED] 01.07.2002 19:37 Hi people, I got this line that is relly giving me a pain..: if (preg_match(@siteUserList.cgi\?group=site177(?)@, $QUERY_STRING)) As you can see it just matches the query string when it looks like this: siteUserList.cgi?group=site177 (with or without a ) The thing is I need it to match also if after the there is a number (that will have more than 1 digit) Ive tried many diffrent thing with \d+ but I can get it to work.. can somebody give me some light? Thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re[5]: [PHP] PHP and PDF
Hi Jason, yes, in the theory is possible, but not it in the real life (for fre :) ). no, just joking, thanx for the information. very usefull. Mirza [EMAIL PROTECTED] 01.07.2002 20:38 On Tuesday 02 July 2002 00:15, Mirza Muharemagic wrote: Hi Gregory, u mean, u want to update an existing PDF file? no, thats not possible. In theory it is possible. The people who make the PDFLib library also has a library for modifying existing pdfs. Look on their website for more details. -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * /* Hurd and architecture in one sentence? Uh-oh... - Al Viro on linux-kernel */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Generating RTF on the fly
check this out: http://www.phpbuilder.com/columns/nair20020523.php3 Mirza -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php