RE: [PHP] file function. please help..
On 07-Jul-01 Doron wrote: > hello. > how can i make the file function to put the first 9 lines, in values > 01, 02, 03, 04, 05, 06, 07, 08, 09 > instead of > 1, 2, 3, 4, 5, 6, 7, 8, 9? > file ? numbers ? ... gotta be the example from the manual (somebody reads it, Halleluja!). Have you looked at printf -or- sprintf ? Regards, -- Don Read [EMAIL PROTECTED] -- It's always darkest before the dawn. So if you are going to steal the neighbor's newspaper, that's the time to do it. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] file function. please help..
huh, explain a little more??? - Original Message - From: Doron <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, July 07, 2001 6:09 PM Subject: [PHP] file function. please help.. > hello. > how can i make the file function to put the first 9 lines, in values > 01, 02, 03, 04, 05, 06, 07, 08, 09 > instead of > 1, 2, 3, 4, 5, 6, 7, 8, 9? > > > 10x... > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] file function. please help..
hello. how can i make the file function to put the first 9 lines, in values 01, 02, 03, 04, 05, 06, 07, 08, 09 instead of 1, 2, 3, 4, 5, 6, 7, 8, 9? 10x... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Real Estate Catalog
on 7/7/01 2:43 AM, Joe Smith at [EMAIL PROTECTED] wrote: > If you'd rather I bore everyone with the details, let me know and I'll post > my questions to this thread for all to see and chime in on. If your questions are clear, and if you don't post too much code people here seem to be very nice. It helps if the question is general enough that other people can use the answer too. I'm new at all this too when I get stuck, I try google or one of these sites for help before posting ... http://www.php.net tells how to use most functions http://www.webmonkey.com Great tutorials, but only for easy stuff http://www.mysql.com a bit confusing, but in theory all the functions are here... http://www.phpbuilder.com lots of posts, often I find that someone else has had the same question as me, also some great tutorials. http://www.devshed.com lots of great scripts to steal Good Books: O'Riley PHP pocket reference MySQL by Paul DuBois and Michael Widenius O'Riley MySQL and mSQL Hope that helps! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Real Estate Catalog
I am working on my first MySQL/PHP app. It is a real estate catalog. To build it, I am modifying the shopping cart found in Welling & Thomson's "PHP & MySQL Development". I think I am getting the gist of the process, but could use a little help from more experienced folks out there. When the app is done, I'll make the source code available. If you are interested in helping work out the kinks, please email me ([EMAIL PROTECTED]) If you'd rather I bore everyone with the details, let me know and I'll post my questions to this thread for all to see and chime in on. Thanks Doug Daulton -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] My new toy!
point 1...make you password fields of type password rather than text Okay I need some people to jump in and try to use my site to see if it is > working OK. I know I have a lot of work to do on it but I just want some > feed back and to get a little more direction before I light into the code > again. > > If You have some free time please play around with: > > http://www.futurebird.com/mapbuild3 > > > Thanks so much for the help! > > Susan > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] My new toy!
Okay I need some people to jump in and try to use my site to see if it is working OK. I know I have a lot of work to do on it but I just want some feed back and to get a little more direction before I light into the code again. If You have some free time please play around with: http://www.futurebird.com/mapbuild3 Thanks so much for the help! Susan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] is_alpha_numeric ?
check out ctype (suggested to PHP by me, btw) php.net/ctype we have all that. -Maxim Maletsky -Original Message- From: Lasse [mailto:[EMAIL PROTECTED]] Sent: Saturday, July 07, 2001 7:40 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] is_alpha_numeric ? "scott [gts]" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > you could also use this: > > function is_alphanum($data) { > return preg_match('/^\w+$/', $data); > } Watch out though... IIRC \w also includes underscore... -- Lasse -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] How to apply something to every variable
foreach($HTTP_POST_VARS as $k=>$v) { $$k = addslashes($v); } - Maxim Maletsky PS: no, not trying to win over, just trying to suggest my way ;-) -Original Message- From: Chadwick, Russell [mailto:[EMAIL PROTECTED]] Sent: Saturday, July 07, 2001 7:11 AM To: '[EMAIL PROTECTED]' Subject: RE: [PHP] How to apply something to every variable while (list($key, $val) = each ($HTTP_POST_VARS)) { ${$key} = addslashes($val); } - Russ -Original Message- From: Chris Anderson [mailto:[EMAIL PROTECTED]] Sent: Friday, July 06, 2001 3:07 PM To: [EMAIL PROTECTED] Subject: [PHP] How to apply something to every variable I was playing around trying to find a way to addslashes() to all my variables, and I came up with this snippet. Hope it helps someone $keys = array_keys($HTTP_POST_VARS); $post_size = sizeof($keys); for($x = 0; $x < $post_size; $x++) { $temp = $keys[$x]; //you can replace addslashes with whatever you want to use ${"$temp"} = addslashes($HTTP_POST_VARS["$temp"]); } -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Something weird
Gezz... hope you use a web mail or something for this list. Otherwise all these emails on 26.4 (what a strange number) would take ages to download in cases like when you are coming back from a vacation or "was too busy last week" -maxim maletsky -Original Message- From: Kevin Pratt [mailto:[EMAIL PROTECTED]] Sent: Saturday, July 07, 2001 5:20 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] Something weird okie :) just thought it was funny that everybody is talking about something that can be changed . :) and it was also a little bit of a shot at everybody's rants... I completely agree that taking the small performance hit is much better than getting the old version of a site... and I can say this because I live in the country and only get 26.4k so I should really want to have a cache.. Have fun! Kevin - Original Message - From: "Inércia Sensorial" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, July 06, 2001 2:07 PM Subject: Re: [PHP] Something weird > Kevin, we were talking about cache in an user point of view... > > :-D > > > > -- > > > Julio Nobrega. > > A hora está chegando: > http://sourceforge.net/projects/toca > > "Kevin Pratt" <[EMAIL PROTECTED]> wrote in message > 009f01c10655$b3558e40$0300a8c0@ouelong">news:009f01c10655$b3558e40$0300a8c0@ouelong... > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Printing a root link into HTML
what do you mean by 'previous directory'? there's no real chronological order to directories. on 7/6/01 6:27 PM, Chris Anderson at [EMAIL PROTECTED] wrote: > To specify, I want to link to a file in a previous directory, none of those > methods seem to work for that. -- mike cullerton -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] email a file after the file is x lines long
On 06-Jul-01 Jerry Lake wrote: > Is it possible the set a script > to email a file after it becomes so many lines > long ? I have an email address that accepts > only catalog requests and I'd like to be able > to have a complete list mailed to me instead of > doing it one at a time. > $fname='catrequest.log'; $fdone=$fname .'.tst'; unlink($fdone); link($fname, $fdone); unlink($fname); $cmd="/usr/bin/wc -l fdone"; $p=popen($cmd, 'r'); if ($p) { $lines=fgets($p,256); if ( ($lines +0) > 10) { `/usr/bin/mail -s "Catalog Requessts" [EMAIL PROTECTED] < $fdone`; } else { `/bin/cat $fdone >> $fname`; } pclose($p); } ` Regards, -- Don Read [EMAIL PROTECTED] -- It's always darkest before the dawn. So if you are going to steal the neighbor's newspaper, that's the time to do it. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Problem writting to file...
On 06-Jul-01 James Bartlett wrote: > Hi, > > I'm trying to write data to a file but for some reason it will not store > numbers in the file...Here's the code I'm using...(as an example) > > $fp = fopen("./data.txt", "w+"); if ($fp) { // always, always ! test a fopen() > $counter = 0; > while ($counter <6) > { > fwrite($fp, $counter . "\n"); // uhmmm... that's binary 0->5 i.e (^A->^E) izzat what you want ? // then why the "\n" ? try fwrite($fp, "$counter\n"); if (! fwrite( )) { // and shurre, you always have enuf disk space ... } > $counter = $counter +1; > } > fclose ($fp); } else { echo "couldn't open file"; } > ?> > > Thanks for any help... > > James -- Don Read [EMAIL PROTECTED] -- It's always darkest before the dawn. So if you are going to steal the neighbor's newspaper, that's the time to do it. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Post a form within a running php-script
Yes, replace spaces with + signs - Original Message - From: "SED" <[EMAIL PROTECTED]> To: "'Chris Anderson'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Friday, July 06, 2001 7:24 PM Subject: RE: [PHP] Post a form within a running php-script I thought that at first but I need to post long variables (some containing many words) and many, is that okay? -Original Message- From: Chris Anderson [mailto:[EMAIL PROTECTED]] Sent: 6. júlí 2001 23:08 To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: [PHP] Post a form within a running php-script Put the variables in the url ie: script.php?username=joebob&password=joepassword - Original Message - From: "SED" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, July 06, 2001 6:30 PM Subject: [PHP] Post a form within a running php-script > For a special purpose I want to post a form within a running script, > is it possible? I don't need the feedback, only post it to a > http-path. (To clarify, I'm not asking about Submitting a form via > button.) > > Regards, > Sumarlidi Einar Dadason > > SED - Graphic Design > > -- > Phone: (+354) 4615501 > Mobile: (+354) 8960376 > Fax: (+354) 4615503 > E-mail: [EMAIL PROTECTED] > Homepage:www.sed.is > -- > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Printing a root link into HTML
I need to give a link to a file in a previous directory, but HTML doesn't understand ../ links. Any idea how I can do this?
RE: [PHP] Post a form within a running php-script
I thought that at first but I need to post long variables (some containing many words) and many, is that okay? -Original Message- From: Chris Anderson [mailto:[EMAIL PROTECTED]] Sent: 6. júlí 2001 23:08 To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: [PHP] Post a form within a running php-script Put the variables in the url ie: script.php?username=joebob&password=joepassword - Original Message - From: "SED" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, July 06, 2001 6:30 PM Subject: [PHP] Post a form within a running php-script > For a special purpose I want to post a form within a running script, > is it possible? I don't need the feedback, only post it to a > http-path. (To clarify, I'm not asking about Submitting a form via > button.) > > Regards, > Sumarlidi Einar Dadason > > SED - Graphic Design > > -- > Phone: (+354) 4615501 > Mobile: (+354) 8960376 > Fax: (+354) 4615503 > E-mail: [EMAIL PROTECTED] > Homepage:www.sed.is > -- > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Post a form within a running php-script
Put the variables in the url ie: script.php?username=joebob&password=joepassword - Original Message - From: "SED" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, July 06, 2001 6:30 PM Subject: [PHP] Post a form within a running php-script > For a special purpose I want to post a form within a running script, is > it possible? I don't need the feedback, only post it to a http-path. (To > clarify, I'm not asking about Submitting a form via button.) > > Regards, > Sumarlidi Einar Dadason > > SED - Graphic Design > > -- > Phone: (+354) 4615501 > Mobile: (+354) 8960376 > Fax: (+354) 4615503 > E-mail: [EMAIL PROTECTED] > Homepage:www.sed.is > -- > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] How to apply something to every variable
Fine, just outdo me =) - Original Message - From: "Chadwick, Russell" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, July 06, 2001 6:10 PM Subject: RE: [PHP] How to apply something to every variable > > while (list($key, $val) = each ($HTTP_POST_VARS)) { > ${$key} = addslashes($val); > } > > - Russ > > -Original Message- > From: Chris Anderson [mailto:[EMAIL PROTECTED]] > Sent: Friday, July 06, 2001 3:07 PM > To: [EMAIL PROTECTED] > Subject: [PHP] How to apply something to every variable > > > I was playing around trying to find a way to addslashes() to all my > variables, and I came up with this snippet. Hope it helps someone > > $keys = array_keys($HTTP_POST_VARS); > $post_size = sizeof($keys); > for($x = 0; $x < $post_size; $x++) > { > $temp = $keys[$x]; > //you can replace addslashes with whatever you want to use > ${"$temp"} = addslashes($HTTP_POST_VARS["$temp"]); > } > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: Must Have Cookies. PHP/JavaScript
Um... Can't you just set a cookie and see if you get it back on the next page load? -- Lasse "Jeff Gannaway" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... OK, I'm working on a site that absolutely must use a cookie containing a session identifier. I know how to set a cookie through PHP, but I need to do something else too. The same page MUST identifier whether the cookie was accepted or not. I've seen sites like NetFlix.com that will test to see if their cookie was accepted, and if not, print up a page that says "Sorry, you've got have your Cookies on or go somewhere else." Does anyone know how to do this with PHP, Java, or JavaScript? Code examples or example URLs would be appreciated. Thanks, Jeff Gannaway ___ SUMMER ART PRINT SALE at www.PopStreet.com Save an additional 10% off art print orders of $50 or more. Type in coupon code jemc when checking out. ___ Find the right art print for your home. * Search by artist, color, art style and subject. * Preview the art prints against your wall color. * Specializing in contemporary, abstract and African American art. * Every day discounts on thousands of fine art prints. PopStreet.com is your avenue to art. http://www.popstreet.com ___ Coupon may be redeemed from June 27 through July 31, 2001. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: when to delete a temporary file ?
"Arash Dejkam" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi, > > I've created a site where users can upload photos and specify which other > users are allowed to view them using PHP session management. now I have > alittle problem in the post-upload page, script creates a temporary copy of > the uploaded image with a name the same as user's session ID, and puts a > in the page for the user to view the uploaded photo > and confirm it. now I don't know when to delete that temporary file ! > because I don't know how long does the user's browser take to download the > image. currently I delete it in the script coming up just after user clicks > the confirm button, but what if the user close his/her browser before > clicking the confirm button ? the file remains there for ever !! > what's your suggestion ? Depending on the sizes of the files, number of users, etc... Do as you do now, and then do a scan of the temp files in one of your scripts and delete any older than a reasonable amount of time... 24 hours for example Don't your sessions time out BTW? That should make it possible to check for any temp files whose session isn't alive anymore and delete them. Since the corresponding session is dead anyway the image can be safely deleted... Or am I missing something? -- Lasse -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] FEDEx API's
On Sat, 7 Jul 2001 01:45, Daniel Guerrier wrote: > http://www.fedex.com/us/ebusiness/ecommerce/shipapi.html > >From the FAQ 8. What languages does FedEx Ship Manager API support? FedEx Ship Manager API code is compatible with a number of languages, including HTML, Java, C++ and Microsoft Visual Basic or any language that will allow a connection to a Windows DLL. If you want to do this in PHP I don't think this is the way to do it. Cheers, Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] PDF shareware/GNU
Are there any Shareware libraries for handling PDF? The PdfLib is great, but that can get somewhat expensive. Todd -- Todd Cary Ariste Software [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] is_alpha_numeric ?
"scott [gts]" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > you could also use this: > > function is_alphanum($data) { > return preg_match('/^\w+$/', $data); > } Watch out though... IIRC \w also includes underscore... -- Lasse -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Post a form within a running php-script
For a special purpose I want to post a form within a running script, is it possible? I don't need the feedback, only post it to a http-path. (To clarify, I'm not asking about Submitting a form via button.) Regards, Sumarlidi Einar Dadason SED - Graphic Design -- Phone: (+354) 4615501 Mobile: (+354) 8960376 Fax: (+354) 4615503 E-mail: [EMAIL PROTECTED] Homepage:www.sed.is -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] How to apply something to every variable
while (list($key, $val) = each ($HTTP_POST_VARS)) { ${$key} = addslashes($val); } - Russ -Original Message- From: Chris Anderson [mailto:[EMAIL PROTECTED]] Sent: Friday, July 06, 2001 3:07 PM To: [EMAIL PROTECTED] Subject: [PHP] How to apply something to every variable I was playing around trying to find a way to addslashes() to all my variables, and I came up with this snippet. Hope it helps someone $keys = array_keys($HTTP_POST_VARS); $post_size = sizeof($keys); for($x = 0; $x < $post_size; $x++) { $temp = $keys[$x]; //you can replace addslashes with whatever you want to use ${"$temp"} = addslashes($HTTP_POST_VARS["$temp"]); } -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] How to apply something to every variable
I was playing around trying to find a way to addslashes() to all my variables, and I came up with this snippet. Hope it helps someone $keys = array_keys($HTTP_POST_VARS); $post_size = sizeof($keys); for($x = 0; $x < $post_size; $x++) { $temp = $keys[$x]; //you can replace addslashes with whatever you want to use ${"$temp"} = addslashes($HTTP_POST_VARS["$temp"]); }
Re: [PHP] Creating a Variable with the Name of a string
Thanks - Original Message - From: "scott [gts]" <[EMAIL PROTECTED]> To: "php" <[EMAIL PROTECTED]> Sent: Friday, July 06, 2001 4:27 PM Subject: RE: [PHP] Creating a Variable with the Name of a string > try using assoc. arrays also... > they're much nicer to deal with ;) > > > > -Original Message- > > From: James Atkinson [mailto:[EMAIL PROTECTED]] > > Sent: Friday, July 06, 2001 4:20 PM > > To: Chris Anderson; [EMAIL PROTECTED] > > Subject: RE: [PHP] Creating a Variable with the Name of a string > > > > > > $temp = "myvar"; > > $$temp = "My value"; > > > > echo $myvar; > > > > output: > > My value > > > > - James > > > > > -Original Message- > > > From: Chris Anderson [mailto:[EMAIL PROTECTED]] > > > Sent: July 6, 2001 1:17 PM > > > To: [EMAIL PROTECTED] > > > Subject: [PHP] Creating a Variable with the Name of a string > > > > > > > > > I know this has been discussed before, but I've searched the manual and > > > didn't see it under Variable functions, or any of my searches. > > > I have varible $temp, how can I create a variable whose name is the > > > string stored in $temp? Thanks in advance > > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] PHP + IMAP compilation problem
HI! I need some help here. I'm trying to make work Horde/IMP webmail. I'm running FreeBSD 4.3 in my box and I'm using Apache 1.3.20, PHP 4.0.6 and MySQL 3..23.39. I've installed c-client (from FreeBSD available packages instalation CDROM but I've tryed with tarball from ftp://ftp.cac.washington.edu/imap/ too). I've installed libc-client4.so in /usr/local/lib and c-client.h, rfc822.h, mail.h, etc. in /usr/local/include. PHP configure/make/make install process works fine but the Apache configure script die with: [..] '/usr/local/lib/libc-client4.so: undefined reference to 'mm_expunged' '/usr/local/lib/libc-client4.so: undefined reference to 'mm_diskerror' '/usr/local/lib/libc-client4.so: undefined reference to 'mm_lsub' '/usr/local/lib/libc-client4.so: undefined reference to 'mm_flags' *** Error code 1 Stop in /usr/src/apache_1.3.20/src/helpers. [..] What's the problem here? Thanks in advace Marcelo Gulin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] upload data (from a form) and functions.
There are a bunch places in my site where I take data from a from like: Can I make a function in global.inc that will do the move_uploaded_file ($form_data, $path); function? How do I pass $form_data to such a function? I've tried calling copy_my_file ($form_data); but bad things happed... also can use $form_data_size and the like in an outside function? Susan _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Something weird
dunno... I just make all my pages force a reload for everyone :) - Original Message - From: "Inércia Sensorial" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, July 06, 2001 2:29 PM Subject: Re: [PHP] Something weird > Me too. Once I changed browser and took me days to find out why some pages > weren´t changing :-) > > Does the header(); function returns some kind of true or false? Maybe we > could tell users to don´t cache to show all dynamic stuff. I heard somewhere > (not sure about this) that Refresh on meta and similar techniques doesn't > always work... (well, like everything! :)) > > -- > > > Julio Nobrega. > > A hora está chegando: > http://sourceforge.net/projects/toca > > "Kevin Pratt" <[EMAIL PROTECTED]> wrote in message > 00a901c10659$00c74580$0300a8c0@ouelong">news:00a901c10659$00c74580$0300a8c0@ouelong... > > okie :) just thought it was funny that everybody is talking about > something > > that can be changed . > > > > :) > > > > and it was also a little bit of a shot at everybody's rants... I > completely > > agree that taking the small performance hit is much better than getting > the > > old version of a site... and I can say this because I live in the country > > and only get 26.4k so I should really want to have a cache.. > > > > > > Have fun! > > Kevin > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] email a file after the file is x lines long
Is it possible the set a script to email a file after it becomes so many lines long ? I have an email address that accepts only catalog requests and I'd like to be able to have a complete list mailed to me instead of doing it one at a time. any suggestions are appreciated Thanks, Jerry Lake Interface Engineering Technician Europa Communications - http://www.europa.com Pacifier Online - http://www.pacifier.com -Original Message- From: Steve Edberg [mailto:[EMAIL PROTECTED]] Sent: Friday, July 06, 2001 1:29 PM To: Chad Day; [EMAIL PROTECTED] Subject: [PHP] Re: string formatting help In the original message below, did you mean that you're actually SEEING the tags in the output? If so, there may be a conversion with htmlentities() going on somewhere that converts the tags to
(so they are displayed instead of being interpreted). If you replaced the 's with spaces or newlines, the output _should_ all be on one line, since HTML considers ALL strings of whitespace (tabs, newlines, returns, spaces) to be a single space. If you replaced 's with newlines and you are getting the line breaks still, your output may be in a ... block. - steve At 3:36 PM -0300 7/6/01, "InÈrcia Sensorial" <[EMAIL PROTECTED]> wrote: > Maybe: > >$array = explode("", $string); > >foreach ($array as $key => $value) { > echo "$value"; >} > > Would separate the string by 's and print all in one line. > Or, more compactly: echo str_replace('', '', $string); This would only work if tags were lowercased; to handle mixed case, you'd need to do echo eregi_replace('', '', $string); or use the preg equivalent > Julio Nobrega. > >A hora est· chegando: >http://sourceforge.net/projects/toca > >"Chad Day" <[EMAIL PROTECTED]> wrote in message >[EMAIL PROTECTED]">news:[EMAIL PROTECTED]... >> I'm trying to pull a string from a database to use in a javascript >> function.. but it's doing line breaks on me, which in turn messes up the >> javascript. >> >> The string in the mysql db is like: >> kjdsakjadkskjdkskjkdfjdfkjfd >> >> When I pull it out, it becomes: >> >> kjdsakjadk >> >> skjdks >> >> >> kjkdfjdfkjfd >> >> I've tried replacing the br's with blank spaces or new line characters, >but >> in the html code it still breaks on those breaks when I echo it back out. >> How can I force this string to be all on one line? >> >> Thanks, > > Chad >> -- +-- Factoid: Of the 100 largest economies in the world, 51 are --+ | Steve Edberg University of California, Davis | | [EMAIL PROTECTED] Computer Consultant | | http://aesric.ucdavis.edu/ http://pgfsun.ucdavis.edu/ | +--- corporations -- http://www.ips-dc.org/reports/top200text.htm ---+ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Re: string formatting help
Yeah, I was seeing them. And when I stripped them out and replaced them with white space, it still broke in those places, it'd look like: kdjsakdasja dsakjaskjsa dsakaskj But I got it fixed.. $RESPONSE = addslashes($row[RESPONSE]); $OVERLIBBED = str_replace(chr(13), "", $RESPONSE); $OVERLIBBED = str_replace(chr(10), "", $OVERLIBBED); is what worked for me .. Thanks all, Chad -Original Message- From: Steve Edberg [mailto:[EMAIL PROTECTED]] Sent: Friday, July 06, 2001 4:29 PM To: Chad Day; [EMAIL PROTECTED] Subject: [PHP] Re: string formatting help In the original message below, did you mean that you're actually SEEING the tags in the output? If so, there may be a conversion with htmlentities() going on somewhere that converts the tags to
(so they are displayed instead of being interpreted). If you replaced the 's with spaces or newlines, the output _should_ all be on one line, since HTML considers ALL strings of whitespace (tabs, newlines, returns, spaces) to be a single space. If you replaced 's with newlines and you are getting the line breaks still, your output may be in a ... block. - steve At 3:36 PM -0300 7/6/01, "InÈrcia Sensorial" <[EMAIL PROTECTED]> wrote: > Maybe: > >$array = explode("", $string); > >foreach ($array as $key => $value) { > echo "$value"; >} > > Would separate the string by 's and print all in one line. > Or, more compactly: echo str_replace('', '', $string); This would only work if tags were lowercased; to handle mixed case, you'd need to do echo eregi_replace('', '', $string); or use the preg equivalent > Julio Nobrega. > >A hora est· chegando: >http://sourceforge.net/projects/toca > >"Chad Day" <[EMAIL PROTECTED]> wrote in message >[EMAIL PROTECTED]">news:[EMAIL PROTECTED]... >> I'm trying to pull a string from a database to use in a javascript >> function.. but it's doing line breaks on me, which in turn messes up the >> javascript. >> >> The string in the mysql db is like: >> kjdsakjadkskjdkskjkdfjdfkjfd >> >> When I pull it out, it becomes: >> >> kjdsakjadk >> >> skjdks >> >> >> kjkdfjdfkjfd >> >> I've tried replacing the br's with blank spaces or new line characters, >but >> in the html code it still breaks on those breaks when I echo it back out. >> How can I force this string to be all on one line? >> >> Thanks, > > Chad >> -- +-- Factoid: Of the 100 largest economies in the world, 51 are --+ | Steve Edberg University of California, Davis | | [EMAIL PROTECTED] Computer Consultant | | http://aesric.ucdavis.edu/ http://pgfsun.ucdavis.edu/ | +--- corporations -- http://www.ips-dc.org/reports/top200text.htm ---+ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Something weird
even when i had 28.8, i'd always turn the cache off ... a cache isnt a feature, it's a bug. :) i wish everybody did the same... i get calls every once in a while from clients asking "why isnt our page updated" or "why doesnt this work" 9 times out of 10, it's their browsers showing them outdated information. > -Original Message- > From: Kevin Pratt [mailto:[EMAIL PROTECTED]] > Subject: Re: [PHP] Something weird > > okie :) just thought it was funny that everybody is talking about something > that can be changed . > > :) > > and it was also a little bit of a shot at everybody's rants... I completely > agree that taking the small performance hit is much better than getting the > old version of a site... and I can say this because I live in the country > and only get 26.4k so I should really want to have a cache.. > > Have fun! > Kevin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Creating a Variable with the Name of a string
try using assoc. arrays also... they're much nicer to deal with ;) > -Original Message- > From: James Atkinson [mailto:[EMAIL PROTECTED]] > Sent: Friday, July 06, 2001 4:20 PM > To: Chris Anderson; [EMAIL PROTECTED] > Subject: RE: [PHP] Creating a Variable with the Name of a string > > > $temp = "myvar"; > $$temp = "My value"; > > echo $myvar; > > output: > My value > > - James > > > -Original Message- > > From: Chris Anderson [mailto:[EMAIL PROTECTED]] > > Sent: July 6, 2001 1:17 PM > > To: [EMAIL PROTECTED] > > Subject: [PHP] Creating a Variable with the Name of a string > > > > > > I know this has been discussed before, but I've searched the manual and > > didn't see it under Variable functions, or any of my searches. > > I have varible $temp, how can I create a variable whose name is the > > string stored in $temp? Thanks in advance > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: string formatting help
In the original message below, did you mean that you're actually SEEING the tags in the output? If so, there may be a conversion with htmlentities() going on somewhere that converts the tags to
(so they are displayed instead of being interpreted). If you replaced the 's with spaces or newlines, the output _should_ all be on one line, since HTML considers ALL strings of whitespace (tabs, newlines, returns, spaces) to be a single space. If you replaced 's with newlines and you are getting the line breaks still, your output may be in a ... block. - steve At 3:36 PM -0300 7/6/01, "InÈrcia Sensorial" <[EMAIL PROTECTED]> wrote: > Maybe: > >$array = explode("", $string); > >foreach ($array as $key => $value) { > echo "$value"; >} > > Would separate the string by 's and print all in one line. > Or, more compactly: echo str_replace('', '', $string); This would only work if tags were lowercased; to handle mixed case, you'd need to do echo eregi_replace('', '', $string); or use the preg equivalent > Julio Nobrega. > >A hora est· chegando: >http://sourceforge.net/projects/toca > >"Chad Day" <[EMAIL PROTECTED]> wrote in message >[EMAIL PROTECTED]">news:[EMAIL PROTECTED]... >> I'm trying to pull a string from a database to use in a javascript >> function.. but it's doing line breaks on me, which in turn messes up the >> javascript. >> >> The string in the mysql db is like: >> kjdsakjadkskjdkskjkdfjdfkjfd >> >> When I pull it out, it becomes: >> >> kjdsakjadk >> >> skjdks >> >> >> kjkdfjdfkjfd >> >> I've tried replacing the br's with blank spaces or new line characters, >but >> in the html code it still breaks on those breaks when I echo it back out. >> How can I force this string to be all on one line? >> >> Thanks, > > Chad >> -- +-- Factoid: Of the 100 largest economies in the world, 51 are --+ | Steve Edberg University of California, Davis | | [EMAIL PROTECTED] Computer Consultant | | http://aesric.ucdavis.edu/ http://pgfsun.ucdavis.edu/ | +--- corporations -- http://www.ips-dc.org/reports/top200text.htm ---+ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Something weird
Me too. Once I changed browser and took me days to find out why some pages weren´t changing :-) Does the header(); function returns some kind of true or false? Maybe we could tell users to don´t cache to show all dynamic stuff. I heard somewhere (not sure about this) that Refresh on meta and similar techniques doesn't always work... (well, like everything! :)) -- Julio Nobrega. A hora está chegando: http://sourceforge.net/projects/toca "Kevin Pratt" <[EMAIL PROTECTED]> wrote in message 00a901c10659$00c74580$0300a8c0@ouelong">news:00a901c10659$00c74580$0300a8c0@ouelong... > okie :) just thought it was funny that everybody is talking about something > that can be changed . > > :) > > and it was also a little bit of a shot at everybody's rants... I completely > agree that taking the small performance hit is much better than getting the > old version of a site... and I can say this because I live in the country > and only get 26.4k so I should really want to have a cache.. > > > Have fun! > Kevin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Problem writting to file...
> "James Bartlett" <[EMAIL PROTECTED]> wrote: > Hi, > > I'm trying to write data to a file but for some reason it will not store numbers >in the file...Here's the code I'm using...(as an example) > > $fp = fopen("./data.txt", "w+"); > $counter = 0; > while ($counter <6) > { > fwrite($fp, $counter . "\n"); > $counter = $counter +1; > } > fclose ($fp); > ?> Is it writing anything out? -- John Meyer Programmer [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Creating a Variable with the Name of a string
$temp = "myvar"; $$temp = "My value"; echo $myvar; output: My value - James > -Original Message- > From: Chris Anderson [mailto:[EMAIL PROTECTED]] > Sent: July 6, 2001 1:17 PM > To: [EMAIL PROTECTED] > Subject: [PHP] Creating a Variable with the Name of a string > > > I know this has been discussed before, but I've searched the manual and > didn't see it under Variable functions, or any of my searches. > I have varible $temp, how can I create a variable whose name is the > string stored in $temp? Thanks in advance > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Problem writting to file...
No luck there... - Original Message - From: Brad S. Jackson To: James Bartlett Sent: Friday, July 06, 2001 8:01 PM Subject: Re: [PHP] Problem writting to file... Sometimes you have to do this to make it work. fwrite($fp, strval($counter) . "\n"); "James Bartlett" <[EMAIL PROTECTED]> wrote: Hi, I'm trying to write data to a file but for some reason it will not store numbers in the file...Here's the code I'm using...(as an example) Thanks for any help... James
Re: [PHP] Something weird
okie :) just thought it was funny that everybody is talking about something that can be changed . :) and it was also a little bit of a shot at everybody's rants... I completely agree that taking the small performance hit is much better than getting the old version of a site... and I can say this because I live in the country and only get 26.4k so I should really want to have a cache.. Have fun! Kevin - Original Message - From: "Inércia Sensorial" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, July 06, 2001 2:07 PM Subject: Re: [PHP] Something weird > Kevin, we were talking about cache in an user point of view... > > :-D > > > > -- > > > Julio Nobrega. > > A hora está chegando: > http://sourceforge.net/projects/toca > > "Kevin Pratt" <[EMAIL PROTECTED]> wrote in message > 009f01c10655$b3558e40$0300a8c0@ouelong">news:009f01c10655$b3558e40$0300a8c0@ouelong... > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Creating a Variable with the Name of a string
I know this has been discussed before, but I've searched the manual and didn't see it under Variable functions, or any of my searches. I have varible $temp, how can I create a variable whose name is the string stored in $temp? Thanks in advance
Re: [PHP] Something weird
Kevin, we were talking about cache in an user point of view... :-D -- Julio Nobrega. A hora está chegando: http://sourceforge.net/projects/toca "Kevin Pratt" <[EMAIL PROTECTED]> wrote in message 009f01c10655$b3558e40$0300a8c0@ouelong">news:009f01c10655$b3558e40$0300a8c0@ouelong... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Missing first record in PHP/Mysql query
here may be why: //Right here you grab a row $query_data = mysql_fetch_row($result); //but you don't use it and you move on while($query_data = mysql_fetch_array($result)) { - Original Message - From: "Rory O'Connor" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, July 05, 2001 3:11 PM Subject: [PHP] Missing first record in PHP/Mysql query > Excuse me if this is too newbie...but I'm writing a simple script to > query a database and loop through the reuslts, echoing them on the page. > When I enter the query at the mysql command line, I get the correct > results. But the same query run through PHP renders all results except > the first one. Any idea why? I've included the code snippet below: > > //the query to select the data > $query = "SELECT firstname,email,optin from contact where > interest='rory'"; > $result = mysql_query($query); > if(!$result) error_message(sql_error()); > > $query_data = mysql_fetch_row($result); > > while($query_data = mysql_fetch_array($result)) { > $firstname = $query_data["firstname"]; > $email = $query_data["email"]; > $optin = $query_data["optin"]; > > echo "\n"; > echo "$firstname;$email;$optin\n"; > > } //end while loop > > also, what would be the code to output the reuslts to a text file > instead of (or in addition to) the screen? > > thanks, > > rory > > providing the finest in midget technology > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Something weird
Why not just make all your pages force a no cache or a refresh? Kevin - Original Message - From: "Inércia Sensorial" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, July 06, 2001 1:32 PM Subject: Re: [PHP] Something weird > Me too. I always put 'check for new versions' or 'don´t cache' or similar. > While I am aware that cached pages doesn't perform well with dinamic pages, > the browser developers are also aware that what the user want is to see the > page. > > If you ask any average user what is his preference 'Load faster or don't > cache?'... he will probaly answer 'load faster', IF he knows what the hell a > cached page is... > > -- > > > Julio Nobrega. > > A hora está chegando: > http://sourceforge.net/projects/toca > > "scott [gts]" <[EMAIL PROTECTED]> wrote in message > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > maybe it's just me, but caches drive me nuts... > > > > i know... but IMO, i'll take a slight performance > > hit any day to make sure i get the most recent page... > > > > > -Original Message- > > > From: Inércia Sensorial [mailto:[EMAIL PROTECTED]] > > > Subject: Re: [PHP] Something weird > > > > > > > for some bizarre reason, almost every browser i've seen > > > > has the default option set to "cache everything and never > > > > look for updates" > > > > > >Connection speed. Cached pages load faster > > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] is_alpha_numeric ?
you could also use this: function is_alphanum($data) { return preg_match('/^\w+$/', $data); } > -Original Message- > From: Steve Werby [mailto:[EMAIL PROTECTED]] > Sent: Friday, July 06, 2001 3:32 PM > To: John Monfort; [EMAIL PROTECTED] > Subject: Re: [PHP] is_alpha_numeric ? > > > "John Monfort" <[EMAIL PROTECTED]> wrote: > > I'm trying to determine if an argument is alphanumeric. Is there a > > function to do this? > > There may be in the CVS version (would have to check), but there's not in > 4.0.6. eregi( [[:alnum:]]{1,}, $string ) may do the trick. > > -- > Steve Werby > President, Befriend Internet Services LLC > http://www.befriend.com/ > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Something weird
Me too. I always put 'check for new versions' or 'don´t cache' or similar. While I am aware that cached pages doesn't perform well with dinamic pages, the browser developers are also aware that what the user want is to see the page. If you ask any average user what is his preference 'Load faster or don't cache?'... he will probaly answer 'load faster', IF he knows what the hell a cached page is... -- Julio Nobrega. A hora está chegando: http://sourceforge.net/projects/toca "scott [gts]" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > maybe it's just me, but caches drive me nuts... > > i know... but IMO, i'll take a slight performance > hit any day to make sure i get the most recent page... > > > -Original Message- > > From: Inércia Sensorial [mailto:[EMAIL PROTECTED]] > > Subject: Re: [PHP] Something weird > > > > > for some bizarre reason, almost every browser i've seen > > > has the default option set to "cache everything and never > > > look for updates" > > > >Connection speed. Cached pages load faster > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] is_alpha_numeric ?
"John Monfort" <[EMAIL PROTECTED]> wrote: > I'm trying to determine if an argument is alphanumeric. Is there a > function to do this? There may be in the CVS version (would have to check), but there's not in 4.0.6. eregi( [[:alnum:]]{1,}, $string ) may do the trick. -- Steve Werby President, Befriend Internet Services LLC http://www.befriend.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] is_alpha_numeric ?
Hello everyone, I'm trying to determine if an argument is alphanumeric. Is there a function to do this? I thought PHP had a IS_ALPHA_NUMERIC function, but I can't seem to find it anywhere. Was it wishful thinking ? Please help. If you do know of this function, then please send me the syntax. is_alpha_numeric($string) is not working. If you do know of another way to this, then please send me that as well. My expected string has the form 'A200A'. Both, letters and numbers, will change depending on the item. The value will ve passed via a hidden form. Thanks in advance. -John __John Monfort_ _+---+_ P E P I E D E S I G N S www.pepiedesigns.com "The world is waiting, are you ready?" -+___+- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Something weird
maybe it's just me, but caches drive me nuts... i know... but IMO, i'll take a slight performance hit any day to make sure i get the most recent page... > -Original Message- > From: Inércia Sensorial [mailto:[EMAIL PROTECTED]] > Subject: Re: [PHP] Something weird > > > for some bizarre reason, almost every browser i've seen > > has the default option set to "cache everything and never > > look for updates" > >Connection speed. Cached pages load faster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Problem writting to file...
It doesnt like that either... - Original Message - From: Chadwick, Russell To: '[EMAIL PROTECTED]' Sent: Friday, July 06, 2001 7:51 PM Subject: RE: [PHP] Problem writting to file... Oooo, then make it fwrite($fp, "$counter\n"); -Original Message- From: James Bartlett [mailto:[EMAIL PROTECTED]] Sent: Friday, July 06, 2001 11:46 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] Problem writting to file... When I use that code I get the following... Counter is = 0 Counter is = 1 Counter is = 2 Counter is = 3 Counter is = 4 Counter is = 5 However if you remove the "Counter is =" part then once again no numbers are written, only the 'new line' symbols... - Original Message - From: Chadwick, Russell To: '[EMAIL PROTECTED]' Sent: Friday, July 06, 2001 7:43 PM Subject: RE: [PHP] Problem writting to file... What happens when the code is - Original Message - From: "James Bartlett" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, July 06, 2001 1:15 PM Subject: [PHP] Problem writting to file... Hi, I'm trying to write data to a file but for some reason it will not store numbers in the file...Here's the code I'm using...(as an example) Thanks for any help... James -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Warning: Page has Expired
When using sessions with forms, a user presses the back button and gets the message: Page has Expired. How can I get around this happening? I have to use sessions because I store many different variables at a time for a shopping cart. Forms are submitted depending on what item the user is shopping for. What can I do to get around the expired page? Thanks! Patrick -- Patrick Hanna Database integration--E-commerce solutions The Wentworth Company
RE: [PHP] Problem writting to file...
Oooo, then make it fwrite($fp, "$counter\n"); -Original Message- From: James Bartlett [mailto:[EMAIL PROTECTED]] Sent: Friday, July 06, 2001 11:46 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] Problem writting to file... When I use that code I get the following... Counter is = 0 Counter is = 1 Counter is = 2 Counter is = 3 Counter is = 4 Counter is = 5 However if you remove the "Counter is =" part then once again no numbers are written, only the 'new line' symbols... - Original Message - From: Chadwick, Russell To: '[EMAIL PROTECTED]' Sent: Friday, July 06, 2001 7:43 PM Subject: RE: [PHP] Problem writting to file... What happens when the code is - Original Message - From: "James Bartlett" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, July 06, 2001 1:15 PM Subject: [PHP] Problem writting to file... Hi, I'm trying to write data to a file but for some reason it will not store numbers in the file...Here's the code I'm using...(as an example) Thanks for any help... James -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Problem writting to file...
I get the same result... - Original Message - From: Jerry Lake To: [EMAIL PROTECTED] Sent: Friday, July 06, 2001 7:48 PM Subject: RE: [PHP] Problem writting to file... try this Jerry Lake Interface Engineering Technician Europa Communications - http://www.europa.com Pacifier Online - http://www.pacifier.com -Original Message- From: James Bartlett [mailto:[EMAIL PROTECTED]] Sent: Friday, July 06, 2001 11:30 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] Problem writting to file... No errors at all... - Original Message - From: Tyler Longren To: php-general ; James Bartlett Sent: Friday, July 06, 2001 7:29 PM Subject: Re: [PHP] Problem writting to file... Any errors being given to you? Tyler - Original Message - From: "James Bartlett" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, July 06, 2001 1:15 PM Subject: [PHP] Problem writting to file... Hi, I'm trying to write data to a file but for some reason it will not store numbers in the file...Here's the code I'm using...(as an example) Thanks for any help... James -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Problem writting to file...
When I use that code I get the following... Counter is = 0 Counter is = 1 Counter is = 2 Counter is = 3 Counter is = 4 Counter is = 5 However if you remove the "Counter is =" part then once again no numbers are written, only the 'new line' symbols... - Original Message - From: Chadwick, Russell To: '[EMAIL PROTECTED]' Sent: Friday, July 06, 2001 7:43 PM Subject: RE: [PHP] Problem writting to file... What happens when the code is - Original Message - From: "James Bartlett" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, July 06, 2001 1:15 PM Subject: [PHP] Problem writting to file... Hi, I'm trying to write data to a file but for some reason it will not store numbers in the file...Here's the code I'm using...(as an example) Thanks for any help... James -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Problem writting to file...
try this Jerry Lake Interface Engineering Technician Europa Communications - http://www.europa.com Pacifier Online - http://www.pacifier.com -Original Message- From: James Bartlett [mailto:[EMAIL PROTECTED]] Sent: Friday, July 06, 2001 11:30 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] Problem writting to file... No errors at all... - Original Message - From: Tyler Longren To: php-general ; James Bartlett Sent: Friday, July 06, 2001 7:29 PM Subject: Re: [PHP] Problem writting to file... Any errors being given to you? Tyler - Original Message - From: "James Bartlett" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, July 06, 2001 1:15 PM Subject: [PHP] Problem writting to file... Hi, I'm trying to write data to a file but for some reason it will not store numbers in the file...Here's the code I'm using...(as an example) Thanks for any help... James -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Problem writting to file...
What happens when the code is - Original Message - From: "James Bartlett" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, July 06, 2001 1:15 PM Subject: [PHP] Problem writting to file... Hi, I'm trying to write data to a file but for some reason it will not store numbers in the file...Here's the code I'm using...(as an example) Thanks for any help... James -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Problem writting to file...
No errors at all... - Original Message - From: Tyler Longren To: php-general ; James Bartlett Sent: Friday, July 06, 2001 7:29 PM Subject: Re: [PHP] Problem writting to file... Any errors being given to you? Tyler - Original Message - From: "James Bartlett" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, July 06, 2001 1:15 PM Subject: [PHP] Problem writting to file... Hi, I'm trying to write data to a file but for some reason it will not store numbers in the file...Here's the code I'm using...(as an example) Thanks for any help... James
Re: [PHP] Something weird
> for some bizarre reason, almost every browser i've seen > has the default option set to "cache everything and never > look for updates" Connection speed. Cached pages load faster -- Julio Nobrega. A hora está chegando: http://sourceforge.net/projects/toca -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: string formatting help
Maybe: $array = explode("", $string); foreach ($array as $key => $value) { echo "$value"; } Would separate the string by 's and print all in one line. -- Julio Nobrega. A hora está chegando: http://sourceforge.net/projects/toca "Chad Day" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I'm trying to pull a string from a database to use in a javascript > function.. but it's doing line breaks on me, which in turn messes up the > javascript. > > The string in the mysql db is like: > kjdsakjadkskjdkskjkdfjdfkjfd > > When I pull it out, it becomes: > > kjdsakjadk > > skjdks > > > kjkdfjdfkjfd > > I've tried replacing the br's with blank spaces or new line characters, but > in the html code it still breaks on those breaks when I echo it back out. > How can I force this string to be all on one line? > > Thanks, > Chad > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Problem writting to file...
Any errors being given to you? Tyler - Original Message - From: "James Bartlett" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, July 06, 2001 1:15 PM Subject: [PHP] Problem writting to file... Hi, I'm trying to write data to a file but for some reason it will not store numbers in the file...Here's the code I'm using...(as an example) Thanks for any help... James -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Something weird
Half the message didn't get sent ... If I manually do a apachectl restart the page updates with the correct changes on it the other 3 apache / php servers I have all work correctly just this one on 7.1 the rest are 6.2 redhat installs. -Dave At 02:04 PM 7/6/2001 -0400, David OBrien wrote: >Sorry... > >I just installed a fresh RH 7.1 server with compiled apache 1.3.16 and php >4.0.6 >if I make a change on a page it doesn't show > > >-- >PHP General Mailing List (http://www.php.net/) >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] >To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Problem writting to file...
nope... The 'new line' tages are printed inside the file but not the values produced by the counter... - Original Message - From: Chris Anderson To: James Bartlett ; [EMAIL PROTECTED] Sent: Friday, July 06, 2001 7:25 PM Subject: Re: [PHP] Problem writting to file... I don't see anything wrong with the code. Does this work: - Original Message - From: "James Bartlett" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, July 06, 2001 2:15 PM Subject: [PHP] Problem writting to file... Hi, I'm trying to write data to a file but for some reason it will not store numbers in the file...Here's the code I'm using...(as an example) Thanks for any help... James
Re: [PHP] Problem writting to file...
I don't see anything wrong with the code. Does this work: - Original Message - From: "James Bartlett" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, July 06, 2001 2:15 PM Subject: [PHP] Problem writting to file... Hi, I'm trying to write data to a file but for some reason it will not store numbers in the file...Here's the code I'm using...(as an example) Thanks for any help... James -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Something weird
check the browser cache settings. for some bizarre reason, almost every browser i've seen has the default option set to "cache everything and never look for updates" > -Original Message- > From: David OBrien [mailto:[EMAIL PROTECTED]] > Subject: [PHP] Something weird > > > Sorry... > > I just installed a fresh RH 7.1 server with compiled apache 1.3.16 and php > 4.0.6 > if I make a change on a page it doesn't show > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] string formatting help
I'm trying to pull a string from a database to use in a javascript function.. but it's doing line breaks on me, which in turn messes up the javascript. The string in the mysql db is like: kjdsakjadkskjdkskjkdfjdfkjfd When I pull it out, it becomes: kjdsakjadk skjdks kjkdfjdfkjfd I've tried replacing the br's with blank spaces or new line characters, but in the html code it still breaks on those breaks when I echo it back out. How can I force this string to be all on one line? Thanks, Chad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Problem writting to file...
Hi, I'm trying to write data to a file but for some reason it will not store numbers in the file...Here's the code I'm using...(as an example) Thanks for any help... James
Re: [PHP] Redirect
Hi Victor! On Fri, 06 Jul 2001, Victor Spång Arthursson wrote: > Hi! > > Still new on PHP, converting from vb$cript, I wonder how I do a > redirect... > > In vbscript: > > <% > response.redirect("page.extension") > %> > > In PHP??? $response->redirect("page"); where: class Response { function redirect($page) { header("Location: $page"); } } $response = new Response(); to feel more at home :D -- teodor -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Something weird
Sorry... I just installed a fresh RH 7.1 server with compiled apache 1.3.16 and php 4.0.6 if I make a change on a page it doesn't show -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Something weird
I just installed a fresh RH 7.1 server with compiled apache and php 4.0.6 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] new lines in text fields
Hi, I don't know what is exactly what you want to do, but I have a page with a tag, and a mySQL database with a TEXT field, that way I can use newline breaks. Bye. On Fri, Jul 06, 2001 at 04:06:58PM +0100, Mat Marlow wrote: > Hi all, > I am in desperate need for a solution to HTML text fields not storing new > lines. I'm storing news articles in a database but all the text just ends up > in a big block because it ignores line breaks. Is thre a way around this > without having to upload text files? > > Thanks, > > Mat > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] custom tag support
I was curious if there was any custom tag support like jsp or cold fusion in php (or outside libraries). I'm looking at trying to make re-usuable components and want to use something more than including simple classes or function calls. Thanks for your time, -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: Number of the line ?
Doesn't work if you put ++ after the variable? > 1 2 echo "i'm on line $NUMBER_LINE++\n"; > 3 echo "i'm on line $NUMBER_LINE++\n"; > 4 ?> Or maybe: echo "i'm on line " .$NUMBER_LINE++ ."\n"; -- Julio Nobrega. A hora está chegando: http://sourceforge.net/projects/toca "Emmanuel FAIVRE" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]... > Hi All, > > i'm currently writing a debugging lib in PHP and i would like to find > the number of the line in my script > > when i made an > > myfile.php > > 1 2 echo "i'm on line $NUMBER_LINE\n"; > 3 echo "i'm on line $NUMBER_LINE\n"; > 4 ?> > > would give : > > i'm on line 2 > i'm on line 3 > > it perhaps exists because when we have warning we see the line number > > Thanks > > > Manu > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] hey, got a question....
nothing wrong with windows - Original Message - From: Christopher Allen <[EMAIL PROTECTED]> To: ReDucTor <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Friday, July 06, 2001 3:21 AM Subject: Re: [PHP] hey, got a question > well theres your problem...winblows.lol > - Original Message - > From: "ReDucTor" <[EMAIL PROTECTED]> > To: "Christopher Allen" <[EMAIL PROTECTED]> > Cc: <[EMAIL PROTECTED]> > Sent: Friday, July 06, 2001 11:58 AM > Subject: Re: [PHP] hey, got a question > > > > Windows > > - Original Message - > > From: Christopher Allen <[EMAIL PROTECTED]> > > To: ReDucTor <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> > > Sent: Friday, July 06, 2001 2:45 AM > > Subject: Re: [PHP] hey, got a question > > > > > > > what's the OS? > > > > > > > > > - Original Message - > > > From: "ReDucTor" <[EMAIL PROTECTED]> > > > To: <[EMAIL PROTECTED]> > > > Sent: Friday, July 06, 2001 11:34 AM > > > Subject: [PHP] hey, got a question > > > > > > > > > i can't seem to access certain ports, through a nat program i have setup > > on > > > the computer here with the net, but i was thinking i could use something > > > like socks, because i want to setup some fsockopen() stuff...but i can't > > use > > > it on the ports i want, just frezzez...works over the lan fine, and over > > the > > > net on ports i can access... > > > > > > > > > > > > -- > > > PHP General Mailing List (http://www.php.net/) > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > > > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] hey, got a question....
well theres your problem...winblows.lol - Original Message - From: "ReDucTor" <[EMAIL PROTECTED]> To: "Christopher Allen" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Friday, July 06, 2001 11:58 AM Subject: Re: [PHP] hey, got a question > Windows > - Original Message - > From: Christopher Allen <[EMAIL PROTECTED]> > To: ReDucTor <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> > Sent: Friday, July 06, 2001 2:45 AM > Subject: Re: [PHP] hey, got a question > > > > what's the OS? > > > > > > - Original Message - > > From: "ReDucTor" <[EMAIL PROTECTED]> > > To: <[EMAIL PROTECTED]> > > Sent: Friday, July 06, 2001 11:34 AM > > Subject: [PHP] hey, got a question > > > > > > i can't seem to access certain ports, through a nat program i have setup > on > > the computer here with the net, but i was thinking i could use something > > like socks, because i want to setup some fsockopen() stuff...but i can't > use > > it on the ports i want, just frezzez...works over the lan fine, and over > the > > net on ports i can access... > > > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] eregi replace help
I want to delete some lines original: http://www.example.com/1.html"; >ABCD > Football http://www.example.com/2.html"; >BCDE > Tennis http://www.example.com/3.html"; >CDEF > Football http://www.example.com/4.html"; >DEFG > Basketball http://www.example.com/5.html"; >EFGH > Tennis http://www.example.com/6.html"; >FGHI after: http://www.example.com/1.html"; >ABCD http://www.example.com/2.html"; >BCDE http://www.example.com/3.html"; >CDEF http://www.example.com/4.html"; >DEFG http://www.example.com/5.html"; >EFGH http://www.example.com/6.html"; >FGHI I tryed eregi replace with (.*) but that does not seem to work Thanks if you can help me Richard van Leeuwen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] PHP 4.0.6 and Apache 1.3.6 ?
hi Micha, are you using the apache version 1.3.6-7? or just 1.3.6, can you tell me if you can see your php4 load and add module in etc/httpd/conf/httpd.conf? is that am having problems with this my php4.0.6 does not work only when i change my php ext to php3 or php but not php4!!! pls advise >From: Micha Ober <[EMAIL PROTECTED]> >To: php <[EMAIL PROTECTED]> >Subject: [PHP] PHP 4.0.6 and Apache 1.3.6 ? >Date: Fri, 6 Jul 2001 00:15:02 -0700 (PDT) > >I've installed Apache 1.3.6 and PHP 4.0.6 and it >works. But if I load an extension in the php.ini >Apache says "abnormal program termination". > >= >Linux... >Because it works. > >__ >Do You Yahoo!? >Get personalized email addresses from Yahoo! Mail >http://personal.mail.yahoo.com/ > >-- >PHP General Mailing List (http://www.php.net/) >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] >To contact the list administrators, e-mail: [EMAIL PROTECTED] > _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] hey, got a question....
Windows - Original Message - From: Christopher Allen <[EMAIL PROTECTED]> To: ReDucTor <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Friday, July 06, 2001 2:45 AM Subject: Re: [PHP] hey, got a question > what's the OS? > > > - Original Message - > From: "ReDucTor" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Friday, July 06, 2001 11:34 AM > Subject: [PHP] hey, got a question > > > i can't seem to access certain ports, through a nat program i have setup on > the computer here with the net, but i was thinking i could use something > like socks, because i want to setup some fsockopen() stuff...but i can't use > it on the ports i want, just frezzez...works over the lan fine, and over the > net on ports i can access... > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] hey, got a question....
It's just a port that isn't open on the NAT, i have attempted to open it, just isn't opening, but i want to know if it is possible to use Socks in PHP - Original Message - From: Kurt Lieber <[EMAIL PROTECTED]> To: ReDucTor <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Saturday, July 07, 2001 2:48 AM Subject: Re: [PHP] hey, got a question > sounds like a firewall issue to me -- do you have a firewall in between your > computer and your 'net connection? Might run a port scan on your default > gateway (which is likely your firewall if you have one) to see what ports > it's allowing inbound. > > Alternatively, you could have a router that has some ports closed down. > Again, a port scan will show this. (and might also tick off your net admin) > > Either way, most likely not a php issue. > > --kurt > - Original Message - > From: "ReDucTor" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Friday, July 06, 2001 9:34 AM > Subject: [PHP] hey, got a question > > > i can't seem to access certain ports, through a nat program i have setup on > the computer here with the net, but i was thinking i could use something > like socks, because i want to setup some fsockopen() stuff...but i can't use > it on the ports i want, just frezzez...works over the lan fine, and over the > net on ports i can access... > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Re : Recommendation for - FREE Yellow Page entry
no, go away - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, July 06, 2001 9:18 AM Subject: [PHP] Re : Recommendation for - FREE Yellow Page entry > Hi, > > Reference : May we have your permission ? > > A visitor to one of our 60 Topical sites has recommended > we contact you, to include your business in the Only-Yellow-Pages Directory. > > The information they have provided is : > > Email: [EMAIL PROTECTED] > URL : e-gineer.com > Category : Florida > > Do you feel this would be appropriate and if so, may we > have permission to give your site a FREE listing ? > > Only-Yellow-Pages is the first online GLOBAL Yellow Pages > Directory covering over 700 cities in over 120 countries, > EACH with it's own domain and directory. > > Entries are displayed on almost 3000 topical and regional web sites > currently getting over 2 MILLION visitors per month. > > We receive numerous submissions like this but will not > activate ANY without the owner's consent. > > May we have your permission to list your site ? > > There is no charge. > > If you want it listed, please go to : > > http://www.only-yellow-pages.com > > to choose the design, and enter your information. > > Thanking you in anticipation.. > > > > Sincerely, > > Tony Alkin > Director > > mailto:[EMAIL PROTECTED] > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] hey, got a question....
what's the OS? - Original Message - From: "ReDucTor" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, July 06, 2001 11:34 AM Subject: [PHP] hey, got a question i can't seem to access certain ports, through a nat program i have setup on the computer here with the net, but i was thinking i could use something like socks, because i want to setup some fsockopen() stuff...but i can't use it on the ports i want, just frezzez...works over the lan fine, and over the net on ports i can access... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Redirect
look in manual for HEADER and LOCATION - Original Message - From: "Vicor Spång Arthursson" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, July 06, 2001 11:43 AM Subject: [PHP] Redirect > Hi! > > Still new on PHP, converting from vb$cript, I wonder how I do a > redirect... > > In vbscript: > > <% > response.redirect("page.extension") > %> > > In PHP??? > > Sincerely > > Victor > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] addslashes problem ..
maybe i don't undestand correctly but try: $string = str_replace("","\\n",$string); i.e escape the escape character \\n - Original Message - From: "Chad Day" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, July 06, 2001 4:38 PM Subject: [PHP] addslashes problem .. > I have to use addslashes on a string of mine so I can use it in a javascript > function, so that when a link is clicked, a html textarea box is populated > with that string. > > The problem I have is that if there are line breaks in the string, the > 's seem to get created when addslashes is run on the string, then in the > textarea box my string looks like: > > i can't do thatright nowbut maybe later > > How can I get the slashes escaped properly, but keep the same format? I > tried this: > > $RESPONSE = eregi_replace('', "\n", > $RESPONSE); > > but it didn't work for me, it just kinda merged all the strings together, no > line breaks (or 's) at all. > > Thanks, > Chad > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: Redirect
Header("Location: whereveryouwanttogo.html"); On Fri, 6 Jul 2001, [iso-8859-1] Victor Spång Arthursson wrote: > Hi! > > Still new on PHP, converting from vb$cript, I wonder how I do a > redirect... > > In vbscript: > > <% > response.redirect("page.extension") > %> > > In PHP??? > > Sincerely > > Victor > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Redirect
Hi! Still new on PHP, converting from vb$cript, I wonder how I do a redirect... In vbscript: <% response.redirect("page.extension") %> In PHP??? Sincerely Victor -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] hey, got a question....
sounds like a firewall issue to me -- do you have a firewall in between your computer and your 'net connection? Might run a port scan on your default gateway (which is likely your firewall if you have one) to see what ports it's allowing inbound. Alternatively, you could have a router that has some ports closed down. Again, a port scan will show this. (and might also tick off your net admin) Either way, most likely not a php issue. --kurt - Original Message - From: "ReDucTor" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, July 06, 2001 9:34 AM Subject: [PHP] hey, got a question i can't seem to access certain ports, through a nat program i have setup on the computer here with the net, but i was thinking i could use something like socks, because i want to setup some fsockopen() stuff...but i can't use it on the ports i want, just frezzez...works over the lan fine, and over the net on ports i can access... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Redirect
Hi! Still new on PHP, converting from vb$cript, I wonder how I do a redirect... In vbscript: <% response.redirect("page.extension") %> In PHP??? Sincerely Victor -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] hey, got a question....
i can't seem to access certain ports, through a nat program i have setup on the computer here with the net, but i was thinking i could use something like socks, because i want to setup some fsockopen() stuff...but i can't use it on the ports i want, just frezzez...works over the lan fine, and over the net on ports i can access...
Re: [PHP] Interpreting PHP in dynamic generated web-pages
> Here's how I see things: > > say http://mydom.com/cgi-bin/dynsite.pl is the thing that generates the > html/php code. Make http://mydom.com/index.php contain just this line: > > http://mydom.com/cgi-bin/dynsite.pl";) ?> > > This works effectively as a include-virtual SSI directive: it reads from > http and interprets the stream as php code. I have checked it and it seems > to work just fine. > > Good luck, > georgeb Thanks! That's exactly, what I was looking for! It works fine on a unix system, but it will create a error message on IIS (windows). Is there a path, which allows this also on IIS? I'm developing web-pages on a windows2000 system with IIS. Later, the pages gets hosted on a linux system with apache. So, to test my pages also at home, IIS suport is requiered. Thanks for your help Dieter -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] functions?
on 7/6/01 11:36 AM, rick at [EMAIL PROTECTED] wrote: > while ($row = mysql_fetch_row ($result)) { > $map_list .= "$row[0]"; } > } > return $map_list; Thanks Rick! This worked great. I guess I'm right in assuming that all you can get back from a function is one big string return. I've tried passing varibles to function and gave up on it. global.inc mainfile.php3 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] mysql fun! JOIN me ...
The syntax to do this in Transact SQL would be, Delete From notes where location in (select rowid from locations where map = @MapID) Delete From Locations Where Map = @MapID Delete From Maps Where RowID = @MapID I dont imagine that MySQL would be that different, although I have a nagging feeling that MySQL doesnt suppport nested queries. BTW, "@MapID" in the above code is a variable with ID of the map you want deleted. Jason -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: 05 July 1979 22:38 To: [EMAIL PROTECTED] Subject: [PHP] mysql fun! JOIN me ... Question 1: is there a good explination online of how to use the JOIN function in mysql? I've looked at the documentation: http://www.mysql.com/doc/J/O/JOIN.html but it's to confusing. It doesn't exactly what you are joining or why you might want to do that ... I think JOIN is what I need, here is the problem: So I have some tables: create table maps ( rowid INT(10) AUTO_INCREMENT PRIMARY KEY NOT NULL ); create table locations ( map INT(10), #map rowid rowid INT(10) AUTO_INCREMENT PRIMARY KEY NOT NULL ); create table notes ( location INT(10), ## location rowid rowid INT(10) AUTO_INCREMENT PRIMARY KEY NOT NULL ); Each map has many locations and each location has many notes ... I want to delete the map, all of it's locations and all of the locations notes. clearing the maps and locations is easy: $sql = "DELETE FROM maps WHERE (rowid='$mapid')"; $result = mysql_query($sql); $sql = "DELETE FROM locations WHERE (map='$mapid')"; $result = mysql_query($sql); but how to get rid of those notes? I'm thinking of sending all of the location rowid(s) to an array then using that array to delete the notes ... but I think this JOIN thing might let me do it all with one query. Can any of you kind folks help me here? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] remote files on IIS
Hi, I need to get the following working on windows with IIS: http://www.php.net";); ?> I know, it's working on unix, but it creates an error message on IIS. Is there a patch, which enables this feature on IIS? (I do develop my webpages on a windows system, later, they are hosted on linux with apache) Thanks for our help! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] RE: upgrading to gd2.0.1
If you want to manipulate PNG or JPEG images, you need to make sure you have the PNG and JPEG libraries, and recompile PHP with GD as before, and adding --with-png-dir=/path/to/pnglib, --with-jpeg-dir=/path/to/jpeglib For the complete list of compilation options, see http://php.net/manual/en/install.configure.php -Andy > -Original Message- > From: Mark Maggelet [mailto:[EMAIL PROTECTED]] > Hi, > I just upgraded gd to 2.0.1 and recompiled apache1.3.20/php4.06. > when I do phpinfo() it says: > and when i call imagepng() it says: > Warning: ImagePng: No PNG support in this PHP build > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] addslashes problem ..
I have to use addslashes on a string of mine so I can use it in a javascript function, so that when a link is clicked, a html textarea box is populated with that string. The problem I have is that if there are line breaks in the string, the 's seem to get created when addslashes is run on the string, then in the textarea box my string looks like: i can't do thatright nowbut maybe later How can I get the slashes escaped properly, but keep the same format? I tried this: $RESPONSE = eregi_replace('', "\n", $RESPONSE); but it didn't work for me, it just kinda merged all the strings together, no line breaks (or 's) at all. Thanks, Chad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Bibliography & Profiles Directory - Looking for Existing GPL Apps
Ahh, dunno about that at all - Original Message - From: "Mike Gifford" <[EMAIL PROTECTED]> To: "Chris Anderson" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Friday, July 06, 2001 9:41 AM Subject: Re: [PHP] Bibliography & Profiles Directory - Looking for Existing GPL Apps > Sorry for being so vague in my last message. > > Let's say you want to hilight 100 people (say best atheletes, coders, what have > you). You want a brief profile of this person. Name, location, languages, > picture, areas of interest, etc.. > > Something so that you can get a sense of who these folks are. > > Mike > > Chris Anderson wrote: > > > "profiles"? > > - Original Message - > > From: "Mike Gifford" <[EMAIL PROTECTED]> > > To: <[EMAIL PROTECTED]> > > Sent: Friday, July 06, 2001 2:06 AM > > Subject: [PHP] Bibliography & Profiles Directory - Looking for Existing GPL > > Apps > > > > > > > >>Hello, > >> > >>I'm looking to see if someone out there has already developed a php/mysql > >>bibilography. I haven't been able to find one online. > >> > >>I'm also looking for a profiles directory. Rather vague definition here, > >> > > sorry. > > > >>Ultimately it will be i18n compliant.. > >> > >>Mike > >>-- > >>Mike Gifford, OpenConcept Consulting, http://openconcept.ca > >>Offering everything your organization needs for an effective web site. > >>Abolish Nuclear Weapons Now!: http://pgs.ca/petition/ > >>It is a miracle that curiosity survives formal education. - A Einstein > >> > >> > >>-- > >>PHP General Mailing List (http://www.php.net/) > >>To unsubscribe, e-mail: [EMAIL PROTECTED] > >>For additional commands, e-mail: [EMAIL PROTECTED] > >>To contact the list administrators, e-mail: [EMAIL PROTECTED] > >> > >> > > > > > > -- > Mike Gifford, OpenConcept Consulting, http://openconcept.ca > Offering everything your organization needs for an effective web site. > Abolish Nuclear Weapons Now!: http://pgs.ca/petition/ > It is a miracle that curiosity survives formal education. - A Einstein > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] FEDEx API's
http://www.fedex.com/us/ebusiness/ecommerce/shipapi.html --- Brad Hubbard <[EMAIL PROTECTED]> wrote: > On Fri, 6 Jul 2001 02:10, Daniel Guerrier wrote: > > The FED Es api suite says tat windows is a > > requirement. > > > > URL? > > Cheers, > Brad > -- > Brad Hubbard > Congo Systems > 12 Northgate Drive, > Thomastown, Victoria, Australia 3074 > Email: [EMAIL PROTECTED] > Ph: +61-3-94645981 > Fax: +61-3-94645982 > Mob: +61-419107559 > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > To contact the list administrators, e-mail: > [EMAIL PROTECTED] > __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] functions?
instead of returning that line, put it into some variable... like: while ($row = mysql_fetch_row ($result)) { $map_list .= "$row[0]"; } } return $map_list; - Original Message - From: <[EMAIL PROTECTED]> To: "'Php-General (E-Mail)" <[EMAIL PROTECTED]> Sent: Friday, July 06, 1979 8:27 AM Subject: [PHP] functions? > Okay there is a file called global.inc > > > // display a list from the DB > > function list_of_maps () { > > db_connect (); > $sql = "SELECT mapname,rowid FROM maps"; > $result = mysql_query($sql); > > while ($row = mysql_fetch_row ($result)) { > return "$row[0]"; } > > } > > > > ?> > > But when I call it like this: > > > include('global.inc'); > echo list_of_maps (); > > ?> > > It only shows the first result from the db... How do I get it to list them > all? > > > Susan > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RES: [PHP] Cookie Strange Problem
Hi list members! I'm having a strange problem here regarding cookies. First let me explain the scenery: I'm developing a site that have a login system. I'm using PHP , MYSQL and APACHE under MS windows 98 SE. So, when the user login into the first page, I "set up" 2 cookies, one with his name and other with the number of accesses, so, when the user is taken to the main page, I print a message, and inside this message I print the two cookies. Well, the strange thing, is that in the beggining, everything was working FINE...but, without any reason, it stopped to work...it was appearing that the browser wasn't getting the cookie value or not returning it...So, I tried a lot of times and nothing happened!...I tried with Netscape and even with Internet Explorer 5.0...nothing...So, without any reason, AGAIN, it started to work in Netscape...but It don't work in Internet Explorer...noway... Any tips? Any experience like this??? Thanks in advance for any kind of help!!! Best Regards, Felipe Moreno -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] functions?
Okay there is a file called global.inc $row[0]"; } } ?> But when I call it like this: It only shows the first result from the db... How do I get it to list them all? Susan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re : Recommendation for - FREE Yellow Page entry
Hi, Reference : May we have your permission ? A visitor to one of our 60 Topical sites has recommended we contact you, to include your business in the Only-Yellow-Pages Directory. The information they have provided is : Email: [EMAIL PROTECTED] URL : e-gineer.com Category : Florida Do you feel this would be appropriate and if so, may we have permission to give your site a FREE listing ? Only-Yellow-Pages is the first online GLOBAL Yellow Pages Directory covering over 700 cities in over 120 countries, EACH with it's own domain and directory. Entries are displayed on almost 3000 topical and regional web sites currently getting over 2 MILLION visitors per month. We receive numerous submissions like this but will not activate ANY without the owner's consent. May we have your permission to list your site ? There is no charge. If you want it listed, please go to : http://www.only-yellow-pages.com to choose the design, and enter your information. Thanking you in anticipation.. Sincerely, Tony Alkin Director mailto:[EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Performance: functions vs includes?
Is there a performance benefit or other reason to prefer including files or using functions that write the same contents? For instance, on my pages I have an number of includes for header, main nav, footer, random quote. If I need to pass variables to one of them I just set the variable right before the include. I could of course do the same thing with an include file of functions that output the data... Which one is better? Why? c -- Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]