[PHP] English ISP
A good friend of mine just moved to England. Devon to be exact. He's having quite a time finding a reliable internet provider. Anybody know of any reliable providers in that area? -- 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 get RAW POST DATA!
What You mean? I cant read STDIN in cgi-bin module by my self? its worse that I thought : Yasuo Ohgaki wrote in message 9d0gam$rdu$[EMAIL PROTECTED]... This is not possible with current PHP. If you search recent php-dev list archive, you will find some more info. ondi [EMAIL PROTECTED] wrote in message 9cucc2$ae3$[EMAIL PROTECTED]">news:9cucc2$ae3$[EMAIL PROTECTED]... the array $HTTP_POST_VARS contains parsed data with _ instead of spaces and split all RAW data by = !!! thats too bad! Sounds more like you are talking about HTTP GET. If it is the case, $HTTP_SERVER_VARS[' QUERY_STRING'] ? Regards, -- Yasuo Ohgaki -- 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] Converting mySQL to PostgreSQL
Hi, I am in need a transfering an existing mySQL database to PostgreSQL. I have seen info on the converter. Before I get started I wanted to see info anyone has any insight or tips on converting these DBs (ie- is it problematic, inconsistent, etc). Thanks! John -- 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] session_start ()
You register it just when you want to assign to it a value, ie: page1.php session_start(); session_register(username); $username = shawn; page2.php session_start(); echo Welcome $username; page3.php session_start(); echo Welcome again $username so basically, register once and use session_start() to retreive whatever registered sessions! -elias http://www.eassoft.cjb.net shawn [EMAIL PROTECTED] wrote in message 003001bfb88d$d88bbfc0$[EMAIL PROTECTED]">news:003001bfb88d$d88bbfc0$[EMAIL PROTECTED]... When using session_start () over alot of pages, do i need to reregister the origional session? example: page1:session_start(); session_register('data'); page2:session_start(); page3:session_start(); session_register('data'); new to sessions, (no really), so thanks for the help, ill be going through the manual while I wait :-) Shawn -- 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 Digest 8 May 2001 07:22:01 -0000 Issue 673
php-general Digest 8 May 2001 07:22:01 - Issue 673 Topics (messages 51803 through 51866): Converting a binary integer to a number 51803 by: Siegfried Kettlitz 51805 by: Zak Greant 51813 by: Siegfried Kettlitz OpenSSL compile option 51804 by: phpman Re: variable functions: empty/isset/unset invalid? 51806 by: Gyozo Papp Variable question 51807 by: King, Justin 51808 by: Jack Dempsey 51810 by: Gyozo Papp 51811 by: King, Justin 51814 by: John Vanderbeck 51815 by: King, Justin 51816 by: Jack Dempsey 51818 by: King, Justin 51820 by: John Vanderbeck 51821 by: CC Zona 51824 by: King, Justin 51825 by: King, Justin 51828 by: ..s.c.o.t.t.. [gts] Bound comboboxes on form 51809 by: Dezider Góra Re: Book Question - PHP and MySQL Web Development 51812 by: Luke Welling Variable Variable with array 51817 by: Brandon Orther 51823 by: Gyozo Papp Mcrypt + urlencode : how to pass encrypted values 51819 by: Robert Mena Multiple select box and form submitting 51822 by: ..s.c.o.t.t.. [gts] 51830 by: Johnson, Kirk Re: Variable question (eval is cool) 51826 by: ..s.c.o.t.t.. [gts] Need help with Database and variables 51827 by: Ryan W. Zajicek Re: Visual PHP Studio 1.0 Field Test 1 51829 by: Michael Stearne still getting multiple definitions of symbol _DayNameLong 51831 by: Jeff Orrok Variable Variable 51832 by: Brandon Orther 51833 by: Altunergil, Oktay updating flash file with php 51834 by: py 51862 by: Luke Welling PHPmyadmin 51835 by: Theo Richel 51836 by: Ryan W. Zajicek 51837 by: John Vanderbeck 51838 by: Jack Dempsey Re: PHPmyadmin - problem remains 51839 by: Theo Richel PEAR Versions 51840 by: Michael Stearne logical expression 'simplifier' 51841 by: Gyozo Papp Refreshing multiple frames? 51842 by: Brandon Orther 51843 by: Zak Greant 51849 by: Data Driven Design 51860 by: Luke Welling Problem with PHP 4.0.5 51844 by: Alvaro Collado 51845 by: John Vanderbeck 51848 by: Alvaro Collado 51850 by: Philip Olson arrays and strings... a little confusing. 51846 by: Christian Dechery session_start () 51847 by: shawn 51866 by: elias PHP vs Coldfusion and ADO vd API 51851 by: Jeff 51855 by: Michael Kimsal getimagesize 51852 by: todd kennedy if else and or ? 51853 by: Andras Kende 51856 by: Maxim Maletsky Call to a member function on a non-object 51854 by: Ender Re: Pregunta 51857 by: Michael Hall Whether through PHP/MySQL can I talk to Flash Generator's Flash ? 51858 by: Manisha Re: PostgreSQL vs. Interbase 51859 by: Luke Welling Re: [PHP-DEV] Dynamic Update of DNS ?? 51861 by: Stig Venaas English ISP 51863 by: tcuhost.hotmail.com Re: how to get RAW POST DATA! 51864 by: ondi Converting mySQL to PostgreSQL 51865 by: Jason Administrivia: To subscribe to the digest, e-mail: [EMAIL PROTECTED] To unsubscribe from the digest, e-mail: [EMAIL PROTECTED] To post to the list, e-mail: [EMAIL PROTECTED] -- I have binary data (ie: 0x7b c8 15 0c ) and want to convert it into a 32Bit integer (here: 123456789012). Currently I use this (intel-little-endian): $integer = hexdec( bin2hex( strrev( readpos( $fd,$position,4 ) ) ) ); readpos reads 4 bytes from a file Is there a better, faster or easier way to do the same thing? Use unpack(): // Grab as many signed 32-bit integers as possible $array = unpack ('l*', $data); --zak - Original Message - From: Siegfried Kettlitz [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, May 07, 2001 12:36 PM Subject: [PHP] Converting a binary integer to a number I have binary data (ie: 0x7b c8 15 0c ) and want to convert it into a 32Bit integer (here: 123456789012). Currently I use this (intel-little-endian): $integer = hexdec( bin2hex( strrev( readpos( $fd,$position,4 ) ) ) ); readpos reads 4 bytes from a file Is there a better, faster or easier way to do the same thing? -- 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] Thanx, I think that will save some time. Use unpack(): // Grab as many signed 32-bit integers as possible $array = unpack ('l*', $data); Anyone familiar with the new OpenSSL support to work as far as opening and communicating via a SSL socket? I saw info regarding it at http://www.php.net/manual/en/ref.openssl.php however cannot get the functions to
Re: [PHP] Need help with Database and variables
Be more specific please, as you typed SELECT count(*) FROM ... as ... this should return one row and only one! that means you need to fetch that row and use it as a variable and not within a row... can you plz clarify your question? -elias http://www.eassoft.cjb.net Ryan W. Zajicek [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hello, I was wondering if I do a database query like SELECT count(*) FROM table_name AS song_count if there is a way I can assign song_count to a variable that is accessable anywhere on the page and not just in a WHILE statement? Thanks is advance Ryan 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]
[PHP] RE: Need help with Database and variables
$result = mysql_query($db, SELECT count(*) AS song_count FROM table_name); if ($array = mysql_fetch_array($result)) $song_count = $array(song_count); Tim Ward Senior Systems Engineer Please refer to the following disclaimer in respect of this message: http://www.stivesdirect.com/e-mail-disclaimer.html -Original Message- From: Ryan W. Zajicek [mailto:[EMAIL PROTECTED]] Sent: 07 May 2001 21:34 To: [EMAIL PROTECTED] Subject: Need help with Database and variables Hello, I was wondering if I do a database query like SELECT count(*) FROM table_name AS song_count if there is a way I can assign song_count to a variable that is accessable anywhere on the page and not just in a WHILE statement? Thanks is advance Ryan 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] Pattern matching and replacement!
Hello all, I have a slight problem. I am storing an email template in a MySQL DB. Portions of the email have text that need to be replaced with variable values when run through the script. ex: snip Sehr geehrte(r) Frau/Herr {%Last_Name%} , Dies ist eine automatische Zusendung von ACNS Billing and Support Software. Ihre Zahlung von DM {%Prev_Total%} fuer ihr ACNS Domain und/oder ihr Internet Flatrate konto wurde von ihrer Bank uneingeloest zurueckgegeben. Daher moechten wir Sie bitten innerhalb der naechsten 4 werktage, dies zu begleichen. Werktage zaehlen ab dem {%Today_Date%}. Konto/Kunden #: {%Customer_ID%} Vorheriger Betrag: DM {%Prev_Total%} Mahngebuehr: DM 19,99 /snip As you can see. I am using the {% and %} to delimit the parts that need to be replaced. I can't get the replacements to work right though. Can someone help? Thanks in advance. chuck -- 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] Pattern matching and replacement!
As you can see. I am using the {% and %} to delimit the parts that need to be replaced. I can't get the replacements to work right though. Can someone help? $text = ereg_replace(\{\%Last_Name\%\}, $lastname, $text); Should be something like that :) Jason -- 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] Call to a member function on a non-object
Hi, $db is not an object, but a link identifier returned by mysql_connect(). Wieger Ender wrote: Okay I get the: Call to a member function on a non-object error when trying to execute this script: It happens in this area: $db=mysql_connect(localhost,'***','***') or die(Unable to connect to database); $edlist = new EditList(serverId, hlstats_Servers, server); $edlist-columns[] = new EditListColumn(game, Game, 0, true, hidden, $gamecode); $edlist-columns[] = new EditListColumn(address, IP Address, 15, true, ipaddress, , 15); $edlist-columns[] = new EditListColumn(port, Port, 5, true, text, 27015, 5); $edlist-columns[] = new EditListColumn(name, Server Name, 22, true, text, , 64); $edlist-columns[] = new EditListColumn(rcon_password, Rcon Password, 10, false, text, , 48); $edlist-columns[] = new EditListColumn(publicaddress, Public Address, 20, false, text, , 64); $edlist-columns[] = new EditListColumn(statusurl, Status URL, 20, false, text, , 255); if ($HTTP_POST_VARS) { if ($edlist-update()) message(success, Operation successful.); else message(warning, $edlist-error()); } ? Enter the addresses of all servers that you want to accept data from here.p ?php $result = $db-query( SELECT serverId, address, port, name, publicaddress, statusurl, rcon_password FROM hlstats_Servers WHERE game='cstrike' ORDER BY address ASC, port ASC ); More specificially it happens on this line: $result = $db-query( What am I doing wrong here? Best regards, Ender [Clan Leader] [EMAIL PROTECTED] -- Wieger Uffink tel: +31 20 428 6868 fax: +31 20 470 6905 web: http://www.usmedia.nl -- 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] Pattern matching and replacement!
At 08.05.01 10:03, you wrote: Hello all, I have a slight problem. I am storing an email template in a MySQL DB. Portions of the email have text that need to be replaced with variable values when run through the script ex: snip Sehr geehrte(r) Frau/Herr {%Last_Name%} , Dies ist eine automatische Zusendung von ACNS Billing and Support Software. Ihre Zahlung von DM {%Prev_Total%} fuer ihr ACNS Domain und/oder ihr Internet Flatrate snip As you can see. I am using the {% and %} to delimit the parts that need to be replaced. I can't get the replacements to work right though. Can someone help? why don´t you store something like: Sehr geehrte(r) Frau/Herr $Last_Name , an then use the eval() function, to fill your vars? Otherwise you have to str_replace() this {%Last_Name%}, think that would be more work. HTH Oliver -- 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: [PEAR] PEAR Versions
[Michael Stearne [EMAIL PROTECTED]] I have a version of PEAR installed now with 4.0.3pl1. I need some of the newer versions of the functions that have been added since then. I need mysql's afftedRows for instance. I see in the 4.0.5 of PEAR that was given with 4.0.5 that some function have since 4.0.5 in PEAR.php in particular. Is there anyway to upgrade my PEAR to a new version without going to 4.0.5 on the web server? Download the 4.0.5 source tarball, run configure, cd to pear and do make install. - Stig -- Stig Sæther Bakken [EMAIL PROTECTED] Fast Search Transfer ASA, Trondheim, Norway -- 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] Webdeveloper aangeboden in Nederland
Hiya Fist of all sorry for the off-topic and dutch topic / email, I'm trying to find a nice job in Holland and where can you better ask then at the big official php source :) Als iemand een bedrijf heeft/weet die opzoek is naar een goeie php programmeur hou ik me aanbevolen :) Op verzoek kan in een uitgebreide cv toesturen. Alvast bedankt, Wico de Leeuw -- 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] removing backslashes using regular expressions
Hi! I'm having problems using preg_replace to search and remove backslash character. print preg_replace(/\\/,,testing \\ testing); This regexp produces this warning: No ending delimiter '/' found in c:\internweb\html\preg.php on line 27 It seems like I'm escaping the ending delimineter '/', but if i try to remove one'\' I'm still escaping. What do I have to do, to make this right? -- Regards Trond Straume -- 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] removing backslashes using regular expressions
At 11:27 8-5-2001 +0200, Trond Straume wrote: Hi! I'm having problems using preg_replace to search and remove backslash character. print preg_replace(/\\/,,testing \\ testing); try print preg_replace('\',,testing \\ testing); double-quote single-quote back-slash single-qoute double-qoute, Greetz, Wico This regexp produces this warning: No ending delimiter '/' found in c:\internweb\html\preg.php on line 27 It seems like I'm escaping the ending delimineter '/', but if i try to remove one'\' I'm still escaping. What do I have to do, to make this right? -- Regards Trond Straume -- 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] removing backslashes using regular expressions
At 11:45 8-5-2001 +0200, Wico de Leeuw wrote: At 11:27 8-5-2001 +0200, Trond Straume wrote: Hi! I'm having problems using preg_replace to search and remove backslash character. print preg_replace(/\\/,,testing \\ testing); try print preg_replace('\',,testing \\ testing); double-quote single-quote back-slash single-qoute double-qoute, Hmmm not very awake yet i think :) should be of course: single-quote double-quote back-slash double-qoute single-qoute i typed it but didn't wrote it :) Greetz, Wico This regexp produces this warning: No ending delimiter '/' found in c:\internweb\html\preg.php on line 27 It seems like I'm escaping the ending delimineter '/', but if i try to remove one'\' I'm still escaping. What do I have to do, to make this right? -- Regards Trond Straume -- 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] php4apachi.dll
Chris Adams [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... On 6 May 2001 05:53:54 -0700, Darren [EMAIL PROTECTED] wrote: Hi. I just installed a fresh copy a windows 95. I installed winsock 2, apache 1.3.19 and php4. I followed the instructions with the php installation and I booted apache, I got a missing dll error message from apache. I got the impression that it wasn't php4apache.dll that was missing as it was there and http.conf was pointing to it. I can only assume that there is another dll somewhere that is missing. Any ideas? Try running the CGI version of PHP - you should get a nice error saying what couldn't be loaded. The most common cause of this is due to extensions - either it can't find the extension itself or, more commonly, the extension needs to load another DLL and it can't find that. It may help to simply clear out your php.ini's extension section and see if the problem goes away. Chris Hi Chris. I got it working in the end, I just installed both pws and mysql and one of them had the right Dlls Thanks mate :-) -- 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 libraries for php
hello All. I run php 4 for windows on top of apache. how would I write by own bolt on modules for php? Thanks -- 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] Solution for PHP - IMAP - WAP ?
Hi, Maybe somebody knows solution for PHP IMAP and WAP? How hard will be complete this products? - Nikolajus Krauklis :: [metasite] 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] Contents Management Solution for Web
Hi. A while ago, I encountered a contents management solution for web that allows the web contents to be edited WYSWYG manner on the web browser. I think it was PHP related, but now I cannot seem to find the link. Does anyone know of such system? Regards, Nat Sakimura -- 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] Contents Management Solution for Web
Try ezpublish, available from publish.ez.no. THe package is very complate, but not easy to install. If you have problems, I offer hosting with publish installed. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Sakimura, Nat Sent: Tuesday, May 08, 2001 7:04 AM To: '[EMAIL PROTECTED]' Subject: [PHP] Contents Management Solution for Web Hi. A while ago, I encountered a contents management solution for web that allows the web contents to be edited WYSWYG manner on the web browser. I think it was PHP related, but now I cannot seem to find the link. Does anyone know of such system? Regards, Nat Sakimura -- 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] no html tags in php via form get
Hi people, is there a way to check a string, which is passed by a form via GET,for html tags?? Does anyone know some code or anything else?? Alexander Bierbrauer Coordinator Chief-Programmer of Not'A'Tric Web: http://www.notatric.de ICQ: 38412604 -- 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 Books
Hi, I'm just starting PHP and am looking for some books that you'd all recommend. I've used quite a few of the SAMS books before and have found them to be really good, i also have access to The PHP Dictionary which i've also found to be really good. But are there any books which you would recommend?? Thanks in advance Daniel -- 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 Books
http://www.wrox.com/ I really found Beginning PHP from Wrox very helpful, had a hard time stopping reading it! Great useful real life examples! Lars -Original Message- From: Daniel [mailto:[EMAIL PROTECTED]] Sent: 08 May 2001 00:59 To: [EMAIL PROTECTED] Subject: [PHP] PHP Books Hi, I'm just starting PHP and am looking for some books that you'd all recommend. I've used quite a few of the SAMS books before and have found them to be really good, i also have access to The PHP Dictionary which i've also found to be really good. But are there any books which you would recommend?? Thanks in advance Daniel -- 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] Safe mode upload
Hi everyone. I have trouble uploading files while in safe mode .Warning: SAFE MODE Restriction in effect. The script whose uid is 206 is not allowed to access /tmp/php6wtDUc owned by uid 0 Can someone help me pass around this problem? -- 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 + LIBPNG how?
I have compiled PHP with this options, ./configure --with-zlib=/usr/local/src/zlib --with-png=/usr/local/src/libpng --with-gd=/usr/local/src/gd --with-pgsql=/usr/local/pgsql --with-apache=../ apache --enable-track-vars But i cant do this ?php $im = ImageCreateFromPng(test.png); ImagePng($im); ? How do i compile PHP so i can create images? -- Med vänlig hälsning Kasper Kristiansson -- 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 Books
On Tue, May 08, 2001 at 07:58:55AM +0800, Daniel wrote: I'm just starting PHP and am looking for some books that you'd all recommend. I've used quite a few of the SAMS books before and have found them to be really good, i also have access to The PHP Dictionary which i've also found to be really good. But are there any books which you would recommend?? I could recommend everything in the books page at the pht.net (www.php.net/books.php) books page. I havent read the new book by Luke Welling, but there are others. If you find nothing, so read the PHP manual. -Egon -- LinuxTag, Stuttgart, Germany: July 5-8 2001: http://www.linuxtag.de/ All known books about PHP and related books: http://php.net/books.php Concert Band of the University of Hohenheim: http://www.concert-band.de/ First and second bestselling book in German: http://www.php-buch.de/ -- 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] remotly include file
Hi I'm trying to include some php3 files via http. one part of the php files is on a regular server and the other part is on an secure server. Instead of duplicating all the files for both servers I would like to include them via http. How does it work? thanx domnic -- 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] no html tags in php via form get
On Tuesday 08 May 2001 13:55, Alexander Bierbrauer wrote: Hi people, is there a way to check a string, which is passed by a form via GET,for html tags?? Does anyone know some code or anything else?? strip_tags() -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) What luck for the rulers that men do not think. - Adolf Hitler -- 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] Multiple Result sets
I don't think you can unless you use PHP's COM support and then use ADO's next recordset feature. Regards, John James Crowley [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi, I've written a recursive stored procedure in MS SQL, which returns a number of result sets (ie 3 different recordsets rather than the usual 1). How can I access the other result sets in php? Regards, - James Editor, VB Web == Web - http://www.vbweb.co.uk Email - [EMAIL PROTECTED] ICQ# - 60612011 == -- 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] remotly include file
At 15:40 8-5-2001 +0200, Dominic Brander wrote: Hi I'm trying to include some php3 files via http. one part of the php files is on a regular server and the other part is on an secure server. Instead of duplicating all the files for both servers I would like to include them via http. How does it work? Like : include(http://www.somehost.ext/path/to/include/include.php;); :) Greetz, Wico thanx domnic -- 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] remotely include file
I tried the exact same thing. I have a whole slew of the classes that have been developed and wanted to centrally locate them on one server. But every time I included the class, it said cannot instantiate non-existent class Blah Blah Blah. But when I copied over the file, it worked like a charm. Any ideas why this would occur? Sincerely, Robert T. Covell President / Owner Rolet Internet Services, LLC Web: www.rolet.com Email: [EMAIL PROTECTED] Phone: 816.210.7145 Fax: 816.753.1952 -Original Message- From: Wico de Leeuw [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 08, 2001 9:30 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: [PHP] remotly include file At 15:40 8-5-2001 +0200, Dominic Brander wrote: Hi I'm trying to include some php3 files via http. one part of the php files is on a regular server and the other part is on an secure server. Instead of duplicating all the files for both servers I would like to include them via http. How does it work? Like : include(http://www.somehost.ext/path/to/include/include.php;); :) Greetz, Wico thanx domnic -- 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] Whether through PHP/MySQL can I talk to Flash Generator'sFlash ?
Manisha wrote: Hi all, I am trying using PHP with Flash Generator. The designer has given me a Flash file created using Macromedia's Flash Generator 2. Do you have a template (.swt) or a generated file (.swf) ? The platform is BSDi / Lang - PHP / Database - MySQL. I want to change the content INSIDE the Flash file dynamically (not the flash itself). From books I know Flash Generator allows to do so, but if any body can give me some clear cut idea about following, (as book info in not sufficient) 1. What are the components required on Server ? Generator (Which includes Jrun), and something to serve it with. (Apache) 2. Any client components are required except player ? NO 3. Which database driver shall I use ? None, use PHP. 4. With PHP how to do it ? In the Flash template set the datasource to a text file, then put the URL of the PHP file as the path. 5. If any body can send me a sample script Just look at the text file datasource examples in the Generator tutorials. 6. Any other source to get more info (book / site / mailing list etc) http://www.macromedia.com http://www.gendev.net There are some other but I'd have to dig for them. I do not know how to see 'Archive' of this mailing list. Can any body give me the URL ? http://php.net/support.php Regards, manisha Enjoy, David Pieper -- programmer n. /pro gram er/ A device for transmuting caffeine into code. -- 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]
AW: [PHP] remotly include file
include(http://www.somehost.ext/path/to/include/include.php;); i don't think that is a goob idea... if it works ( what i'm not sure ) you would get the complete output of the file, BUT in that remote file you would miss the parameters,etc from the calling script. is it is on the same server ( hardwarelike ) then u can use the complete path to include it eg : include('/home/www/blah/yourfile.php') ym2c sebastian -- 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] money print out with two digits after , e.g. 49,00
I want to changes 49.4 --- 49,4 49,4 49,40 the first rule is done with the code $totaal=49.4; $totaal=str_replace(.,,,$totaal); how can i do the second row?? please help. greets Ramiro -- 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] remotely include file
Hi, I think the webserver on the remote machine parses the PHP-file. You can see this happen if you type in the url youre trying to include in your browser. No php code there, just html I dont think what youre trying to do is possible. If it were youd have one hell of a security hole on your webserver :) bye Wieger Robert Covell wrote: I tried the exact same thing. I have a whole slew of the classes that have been developed and wanted to centrally locate them on one server. But every time I included the class, it said cannot instantiate non-existent class Blah Blah Blah. But when I copied over the file, it worked like a charm. Any ideas why this would occur? Sincerely, Robert T. Covell President / Owner Rolet Internet Services, LLC Web: www.rolet.com Email: [EMAIL PROTECTED] Phone: 816.210.7145 Fax: 816.753.1952 -Original Message- From: Wico de Leeuw [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 08, 2001 9:30 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: [PHP] remotly include file At 15:40 8-5-2001 +0200, Dominic Brander wrote: Hi I'm trying to include some php3 files via http. one part of the php files is on a regular server and the other part is on an secure server. Instead of duplicating all the files for both servers I would like to include them via http. How does it work? Like : include(http://www.somehost.ext/path/to/include/include.php;); :) Greetz, Wico thanx domnic -- 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] -- Wieger Uffink tel: +31 20 428 6868 fax: +31 20 470 6905 web: http://www.usmedia.nl -- 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] posting XML to the cgi-bin php scripts!
bug reports number 10726 and 10729! Hi there! Im trying to post XML data to the chi-bin php script, that shold parse that data and deal with it tags! So php catch all my stdin before! and I cant reach my XML! if I do fopen(php://stdin, r) I'll read nothing!!! because of php did it before! what is the best way to solve it? Have a nice day! ondi. -- 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] OT question..
Hey folks, What language is associated with a web page with a .epl extension? Thanks Kelly -- 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] Zip support
I see that there is support for bzip2 and gzip in PHP, so I was wondering if there was any standard zip support that I'm not seeing. Stuart Hicks Senior Programmer / Systems Administrator The Affinity Group -- 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] Zip support
On Tue, 8 May 2001, E. Stuart Hicks wrote: I see that there is support for bzip2 and gzip in PHP, so I was wondering if there was any standard zip support that I'm not seeing. I looked and couldn't find any. The best I could find to be able to zip unzip files was to save them on the server and use exec() to run zip on the command line to read the files back into php. Not the best way I know, but it worked. HTH, Tom -- 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] problems creating a good auth/session control in my scripts
Hello, I create an auth system using NDS as a LDAP server. Works fine. The problem is with the session handling (from my part probabilly)... I am using the PHP session functions. Again, works fine. register the sessions, the variables. But I am beeing unable to destroy the session. To destroy the session I am doing the folowing: ?php //[ session_destroy.php ] //[ c: 05/03/2001/09:25 - lu: 05/08/2001/21:31 ] //# Objective: Destroying the Session stored in the user computer //# Type: File //# Input: { // Session Name [$sessionName] (not yet implemented) // Redirection Location (Site Location) [$redirLocation] // Redirection Pointer (Template File) [$redirPointer] } //# Output: Nothing // // start the session session_start(); // unregistering the variables // defining an array of the names array sessionVarNames (sessionId,cn,ou); // unregistering the variables finally foreach ($sessionVarNames as $tempVar) { session_unregister($tempVar); } // destroying the session session_destroy(); // redirecting to $redirPointer // mounting the URL correctly $URL = $redirLocation./.$redirPointer; // redirecting finally header (Location: $URL); ? By everything that I read until now this is correct. As I am having this headache for a couple days and probably I am screwing up, I would like to ask you kind gents to help me out with ideas or maybe samples of a good session handling. Please help, TIA Rom -- 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] money print out with two digits after , e.g. 49,00
Tuesday, May 08, 2001, 10:34:51 AM, Ramiro Radjiman wrote: RR I want to changes 49.4 --- 49,4 RR 49,4 49,40 RR the first rule is done with the code RR $totaal=49.4; RR $totaal=str_replace(.,,,$totaal); RR how can i do the second row?? RR please help. RR greets Ramiro Check out number_format() which should allow you to do what you need. http://www.php.net/manual/en/function.number-format.php If not, you could always format: 49.4 - 49.40 - str_replace() - 49,40 -- Good Luck, -Neill [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] money print out with two digits after , e.g. 49,00
Try number_format() http://www.php.net/manual/en/function.number-format.php Kirk -Original Message- From: Ramiro Radjiman [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 08, 2001 8:35 AM To: [EMAIL PROTECTED] Subject: [PHP] money print out with two digits after , e.g. 49,00 I want to changes 49.4 --- 49,4 49,4 49,40 the first rule is done with the code $totaal=49.4; $totaal=str_replace(.,,,$totaal); how can i do the second row?? -- 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] money print out with two digits after , e.g. 49,00
At 08.05.01 16:34, you wrote: I want to changes 49.4 --- 49,4 49,4 49,40 Try this ? $totaal=49.4; $totaal=str_replace(.,,,sprintf(%2.2f,$totaal)); echo TOTAL after =$totaalbr; ? Oliver -- 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] function not working after header call
Hi, I just don't get it...I have a form where the user enters name, surname and a personal code. The action page checks for correct input which is only letters for the two names and only numbers for the code. If there is a wrong input in one of the fields a variable is set which is then (amongst others) passed in the URL to the page containing the form. formscript.php?code=1name=1surname=1.. // for all three fields wrong, if they are ok they aren't passed Now in order to highlight the fields with worng input I worte a function. function wrong_input($var) global $var; echo isset($var) ? font face=\Times\ size=\2\ color=\#FF\ : font face=\Times\ size=\3\ color=\#00\; } This function is called in the td like this: td?php wrong_input($code); ?Code/font/td It is executed the first time but if the input is wrong and the user is sent back to the form page it is not. Desperately trying to get it to work I tried lots of combinations like using print in the function or use echo function($var) in the td but nothing worked out. I'm completely stuck. Any hlep is greately appreciated -- 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] Zip support
Yeah, that's what I wanted to avoid, though. These scripts have to be able to run on both NT and Unix boxes. I guess I'll just have to change the other code to use gzip instead of regular zip. Tom Carter [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... On Tue, 8 May 2001, E. Stuart Hicks wrote: I see that there is support for bzip2 and gzip in PHP, so I was wondering if there was any standard zip support that I'm not seeing. I looked and couldn't find any. The best I could find to be able to zip unzip files was to save them on the server and use exec() to run zip on the command line to read the files back into php. Not the best way I know, but it worked. HTH, Tom -- 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: AW: [PHP] remotly include file
exactly! this way (http...) it does not work! I tried it a few times! it is on the same server. so i did it with the /home/.. -path. but this also does not work properly. i think the proplem is, that within the included file there are other files included (and so on...). Error Message: Warning: Failed opening 'inc/var_general.inc.php3' for inclusion (include_path='') in /opt/... May you know a solution? thanx dominic -- 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]
AW: AW: [PHP] remotly include file
i think the proplem is, that within the included file there are other files included (and so on...). Error Message: Warning: Failed opening 'inc/var_general.inc.php3' for inclusion (include_path='') in /opt/... i think you gave the answer yourself. you need to use the full path to the includes in that includefile also... it probably be easiest to handle if in the file to be included you use include($custom_root.'/includefile.php') the variable customroot should be empty on normal inclusion, but on the different dir u use $custom_root='/home/www/blah/blub/whatever'; include($custom_root.'/includefile.php'); anyhow: you need to rewrite the files that need to be included :-[ May you know a solution? thanx dominic -- 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] print url of refering domain
Hi all, Reading the title of this message you might think this is an easy one to answer, but it isnt as straight forward as it might first seem. I have a number of domain names that are set up on my dns server but they have no site associated with them so any visitors to these domains just end up at the home page of the nameserver with http://domain.colo.magmom.net in the address bar. I would like to be able to display the refering domain name on the page along with a small text message (under construction) etc, to save me having to create sites for each domain. Is this possible? Examples please, I am a complete novice at PHP :) Many thanks - Mark Williams -- 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] forcing upload instead of showing doc
How do I force an output to be recognized by the browser by a downloadable text file as soon as I press the submit button? what header(*) stuff should I add before echo-ing stuff? thanks . [ Christian Dechery ] . Webdeveloper @ Tá Na Mesa! . Listmaster @ Gaita-L . http://www.tanamesa.com.br -- 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] function not working after header call
Well, what can I say??? Magic windows Reboot the system or post a message and it works! johannes Johannes Janson [EMAIL PROTECTED] schrieb im Newsbeitrag 9d93c3$7d8$[EMAIL PROTECTED]">news:9d93c3$7d8$[EMAIL PROTECTED]... Hi, I just don't get it...I have a form where the user enters name, surname and a personal code. The action page checks for correct input which is only letters for the two names and only numbers for the code. If there is a wrong input in one of the fields a variable is set which is then (amongst others) passed in the URL to the page containing the form. formscript.php?code=1name=1surname=1.. // for all three fields wrong, if they are ok they aren't passed Now in order to highlight the fields with worng input I worte a function. function wrong_input($var) global $var; echo isset($var) ? font face=\Times\ size=\2\ color=\#FF\ : font face=\Times\ size=\3\ color=\#00\; } This function is called in the td like this: td?php wrong_input($code); ?Code/font/td It is executed the first time but if the input is wrong and the user is sent back to the form page it is not. Desperately trying to get it to work I tried lots of combinations like using print in the function or use echo function($var) in the td but nothing worked out. I'm completely stuck. Any hlep is greately appreciated -- 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] forcing upload instead of showing doc
Hi, ? // file to post to header(Content-Type: application/octet-stream); header(Content-Disposition: attachment; filename=name.doc); include(file.doc); ? Wieger Christian Dechery wrote: How do I force an output to be recognized by the browser by a downloadable text file as soon as I press the submit button? what header(*) stuff should I add before echo-ing stuff? thanks . [ Christian Dechery ] . Webdeveloper @ Tá Na Mesa! . Listmaster @ Gaita-L . http://www.tanamesa.com.br -- 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] -- Wieger Uffink tel: +31 20 428 6868 fax: +31 20 470 6905 web: http://www.usmedia.nl -- 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] print url of refering domain
I would like to be able to display the refering domain name on the page along with a small text message (under construction) etc, to save me having to create sites for each domain. Under Apache and with an HTTP/1.1 client, $HTTP_SERVER_VARS[HTTP_HOST] contains the value you're looking for, I believe (i.e. the contents of the HTTP/1.1 Host header sent by the browser) - Tim -- 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] OT question..
On Tuesday 08 May 2001 16:40, Kelly Meeks wrote: Hey folks, What language is associated with a web page with a .epl extension? Could be embedded perl (Perl embedded in HTML woughly the way PHP is) -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) What luck for the rulers that men do not think. - Adolf Hitler -- 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] OT question..
On Tue, May 08, 2001 at 06:10:18PM +0200, Christian Reiniger wrote: On Tuesday 08 May 2001 16:40, Kelly Meeks wrote: Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) What luck for the rulers that men do not think. - Adolf Hitler Could you please remove that signature. Thanks. -Egon -- LinuxTag, Stuttgart, Germany: July 5-8 2001: http://www.linuxtag.de/ All known books about PHP and related books: http://php.net/books.php Concert Band of the University of Hohenheim: http://www.concert-band.de/ First and second bestselling book in German: http://www.php-buch.de/ -- 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] IP address management tool
I am looking for a tool (preferably database driven, written in php) that will allow me to do IP address management of IP subnets on our network. The best I could find was a project called IPfree on Sourceforge, but nothing is happening over there. I am considering writing my own, but do not want to re-invent the wheel. Any pointers will be most grateful. Please copy me on replies as I am not on the list. Thanks. -- Richard Ellerbrock [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] OT question..
But he IS the webmaster Cheers Jon -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: 08 May 2001 17:14 To: [EMAIL PROTECTED]; Kelly Meeks; '[EMAIL PROTECTED]' Subject: Re: [PHP] OT question.. On Tue, May 08, 2001 at 06:10:18PM +0200, Christian Reiniger wrote: On Tuesday 08 May 2001 16:40, Kelly Meeks wrote: Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) What luck for the rulers that men do not think. - Adolf Hitler Could you please remove that signature. Thanks. -Egon ** 'The information included in this Email is of a confidential nature and is intended only for the addressee. If you are not the intended addressee, any disclosure, copying or distribution by you is prohibited and may be unlawful. Disclosure to any party other than the addressee, whether inadvertent or otherwise is not intended to waive privilege or confidentiality' ** -- 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] OT question..
I think he's referring to the comment below.. ;) Ryan Christensen OlyPen Technical Support [EMAIL PROTECTED] 360.457.3000 800.303.8696 -Original Message- From: Jon Haworth [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 08, 2001 9:17 AM To: '[EMAIL PROTECTED]' Subject: RE: [PHP] OT question.. But he IS the webmaster Cheers Jon -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: 08 May 2001 17:14 To: [EMAIL PROTECTED]; Kelly Meeks; '[EMAIL PROTECTED]' Subject: Re: [PHP] OT question.. On Tue, May 08, 2001 at 06:10:18PM +0200, Christian Reiniger wrote: On Tuesday 08 May 2001 16:40, Kelly Meeks wrote: Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) What luck for the rulers that men do not think. - Adolf Hitler Could you please remove that signature. Thanks. -Egon ** 'The information included in this Email is of a confidential nature and is intended only for the addressee. If you are not the intended addressee, any disclosure, copying or distribution by you is prohibited and may be unlawful. Disclosure to any party other than the addressee, whether inadvertent or otherwise is not intended to waive privilege or confidentiality' ** -- 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] Multi Dimensional Arrays?
actually a nested foreach() is probably better. Use it in a function that calls itself recursively for all elements that are arrays and adds to the count for all that aren't. I posted a function that does this a little while ago, don't think I've got it anymore but the idea is fairly straightforward. The key to dealing with multi-dimensional arrays is in realising that they don't exist. In your example you have an array with a single element. That element is itself an array with 4 elements. Any one (or all) of these elements could be another array, hence the need for a recursive function to find the elements in a multi-dimensional array. Tim Ward Senior Systems Engineer Please refer to the following disclaimer in respect of this message: http://www.stivesdirect.com/e-mail-disclaimer.html -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: 07 May 2001 18:12 To: Brandon Orther; PHP User Group Subject: Re: [PHP] Multi Dimensional Arrays? I would have to say you would need a nested for loop to count your array. $j = 0 ; $k = 0 ; for ( ; $j != '' ) ; $j++ ) { //top of the col. echo $main_menu[$j][$k]br; for ( $k = 1; $k != '' ; $k++ ) { // then everything under the col (by row) echo $main_menu[$j][$k]br; } } - Original Message - From: Brandon Orther [EMAIL PROTECTED] To: PHP User Group [EMAIL PROTECTED] Sent: Monday, May 07, 2001 8:59 AM Subject: [PHP] Multi Dimensional Arrays? Hello, I am working on a menu script that I wanted to use multi-dimensional arrays for. Here is the conf file I have: //Main Menu Array $main_menu[0] = Menu 1; //Represents the name of the menu //Menu 1 Array $main_menu[0][0] = Test 1; $main_menu[0][1] = Test 2; $main_menu[0][2] = Test 3; $main_menu[0][3] = Test 4; When I try to us count like: $count = count($main_menu[0]); I only get 1. My question is how do I count a multi dimensional array. Thanks for the help, Brandon -- 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] OT question..
Happiness is a warm gun. - John Lennon What luck for the rulers that men do not think. - Adolf Hitler Could you please remove that signature. Thanks. -Egon -- 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] Date Time Formatting ??
OK I have read many examples, old posts etc, but I am looking for a detailed explanation as to how to do this. First is when I write to a mysql database using the now() function, the time stamp looks like so when I display the time back to the browser. 204:24:06 ( This should have been 12:24pm ) Also the Date Display like so: 2001-05-08 The Goal is to have the Time stamp looking like 12:24 (military time OK) and the date 05-08-2001 or even 05-08-01. The MySQL db looks like so: date -00-00 time 00:00:00 I don't seem to really be able to vary the DB format. Any examples or links to good docs appreciated Thanks... -- 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] OT question..
On Tuesday 08 May 2001 18:13, [EMAIL PROTECTED] wrote: Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) What luck for the rulers that men do not think. - Adolf Hitler Could you please remove that signature. Thanks. Here's another quote (paraphrased): Those who do not learn from history are condemned to repeat it. Learning from history especially means learning from the unpleasant facts. I'm sure that discussing this quote in school would decrease the number of new nazis appearing everywhere, if only by a little bit. That's why I will not remove it. Sorry. -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) What luck for the rulers that men do not think. - Adolf Hitler -- 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] OT question..
On Tue, May 08, 2001 at 09:26:22AM -0700, Ryan Christensen wrote: I think he's referring to the comment below.. ;) -Original Message- From: Jon Haworth [mailto:[EMAIL PROTECTED]] But he IS the webmaster Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) What luck for the rulers that men do not think. - Adolf Hitler Could you please remove that signature. Thanks. I ment the signature signed by Adolf Hitler. As a German I doesnt like such nonsense. BTW I'm also a webmaster @ php.net. -Egon -- LinuxTag, Stuttgart, Germany: July 5-8 2001: http://www.linuxtag.de/ All known books about PHP and related books: http://php.net/books.php Concert Band of the University of Hohenheim: http://www.concert-band.de/ First and second bestselling book in German: http://www.php-buch.de/ -- 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] Date Time Formatting ??
I think the best way to handle this is not to care what it looks like in the database. Store your dates as UNIX timestamps, and then they are easy to do calculations on and/or convert to any date format you like for displaying in your pages. Read up on date() and mktime() for more info (there are loads of examples in the user notes). HTH Jon -Original Message- From: Jack Sasportas [mailto:[EMAIL PROTECTED]] Sent: 08 May 2001 17:28 To: php Subject: [PHP] Date Time Formatting ?? OK I have read many examples, old posts etc, but I am looking for a detailed explanation as to how to do this. First is when I write to a mysql database using the now() function, the time stamp looks like so when I display the time back to the browser. 204:24:06 ( This should have been 12:24pm ) Also the Date Display like so: 2001-05-08 The Goal is to have the Time stamp looking like 12:24 (military time OK) and the date 05-08-2001 or even 05-08-01. The MySQL db looks like so: date -00-00 time 00:00:00 I don't seem to really be able to vary the DB format. Any examples or links to good docs appreciated Thanks... ** 'The information included in this Email is of a confidential nature and is intended only for the addressee. If you are not the intended addressee, any disclosure, copying or distribution by you is prohibited and may be unlawful. Disclosure to any party other than the addressee, whether inadvertent or otherwise is not intended to waive privilege or confidentiality' ** -- 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] forcing upload instead of showing doc
It didn't work at all. It started a download, but with a filename called myscriptfilename.html and with the contents of the html (in this case the form) being shown and not the output. I want to set these headers, and then do regular echo statements to this newly created downloading file. Hi, ? // file to post to header(Content-Type: application/octet-stream); header(Content-Disposition: attachment; filename=name.doc); include(file.doc); ? Wieger Christian Dechery wrote: How do I force an output to be recognized by the browser by a downloadable text file as soon as I press the submit button? what header(*) stuff should I add before echo-ing stuff? thanks . [ Christian Dechery ] . Webdeveloper @ Tá Na Mesa! . Listmaster @ Gaita-L . http://www.tanamesa.com.br -- 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] -- Wieger Uffink tel: +31 20 428 6868 fax: +31 20 470 6905 web: http://www.usmedia.nl -- 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] . [ Christian Dechery ] . Webdeveloper @ Tá Na Mesa! . Listmaster @ Gaita-L . http://www.tanamesa.com.br -- 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] Date Time Formatting ??
Here is what I am trying to do, but I get the wrong date: $t_data_array[1]=date(m/d/y,mysql_result($db_result,$db_record,'date')); Then I simply print the value in the arraythis date instead of 05/08/01 comes out 12/31/69 Thanks! Jon Haworth wrote: I think the best way to handle this is not to care what it looks like in the database. Store your dates as UNIX timestamps, and then they are easy to do calculations on and/or convert to any date format you like for displaying in your pages. Read up on date() and mktime() for more info (there are loads of examples in the user notes). HTH Jon -Original Message- From: Jack Sasportas [mailto:[EMAIL PROTECTED]] Sent: 08 May 2001 17:28 To: php Subject: [PHP] Date Time Formatting ?? OK I have read many examples, old posts etc, but I am looking for a detailed explanation as to how to do this. First is when I write to a mysql database using the now() function, the time stamp looks like so when I display the time back to the browser. 204:24:06 ( This should have been 12:24pm ) Also the Date Display like so: 2001-05-08 The Goal is to have the Time stamp looking like 12:24 (military time OK) and the date 05-08-2001 or even 05-08-01. The MySQL db looks like so: date -00-00 time 00:00:00 I don't seem to really be able to vary the DB format. Any examples or links to good docs appreciated Thanks... ** 'The information included in this Email is of a confidential nature and is intended only for the addressee. If you are not the intended addressee, any disclosure, copying or distribution by you is prohibited and may be unlawful. Disclosure to any party other than the addressee, whether inadvertent or otherwise is not intended to waive privilege or confidentiality' ** -- 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] -- ___ Jack Sasportas Innovative Internet Solutions Phone 305.665.2500 Fax 305.665.2551 www.innovativeinternet.com www.web56.net -- 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] Getting to many returns when creating a text file
Hi all, I have a website which allows users to send comments, these are saved into a mySQL DB. I then use php to create a text file with all these on, that can then be easily imported into MS Access. But, it appears that the users type in a lot of character returns as well as such symbols as and commas. Is there a way, when creating the text file, to get rid of all these? Thanks in advance, Also I am only on the digest list so if you could email to me as well as the list, I'd be very grateful. Cheers Sam Rose -- 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] Date Time Formatting ??
Are you *absolutely sure* that mysql_result($db_result, $dbrecord, 'date') contains a UNIX timestamp? IOW, if I inserted the lines: $unixdate = mysql_result($db_result,$db_record,'date'); echo $unixdate; I would see something like 989393400 on the screen? (Speaking from experience, I got this hugely messed up first time round... search for one of my posts a few months ago where I was passing a string to the date function if you fancy a chuckle) Cheers Jon -Original Message- From: Jack Sasportas [mailto:[EMAIL PROTECTED]] Sent: 08 May 2001 17:46 To: php Subject: Re: [PHP] Date Time Formatting ?? Here is what I am trying to do, but I get the wrong date: $t_data_array[1]=date(m/d/y,mysql_result($db_result,$db_record,'date')); Then I simply print the value in the arraythis date instead of 05/08/01 comes out 12/31/69 Thanks! Jon Haworth wrote: I think the best way to handle this is not to care what it looks like in the database. Store your dates as UNIX timestamps, and then they are easy to do calculations on and/or convert to any date format you like for displaying in your pages. Read up on date() and mktime() for more info (there are loads of examples in the user notes). HTH Jon ** 'The information included in this Email is of a confidential nature and is intended only for the addressee. If you are not the intended addressee, any disclosure, copying or distribution by you is prohibited and may be unlawful. Disclosure to any party other than the addressee, whether inadvertent or otherwise is not intended to waive privilege or confidentiality' ** -- 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] Getting to many returns when creating a text file
In article 478EB6C82CC2D4119AF300B0D07963F4087721@NTSERVER01, [EMAIL PROTECTED] (Sam) wrote: But, it appears that the users type in a lot of character returns as well as such symbols as and commas. Is there a way, when creating the text file, to get rid of all these? Many ways. Some of the most common ways: http://php.net/str_replace http://php.net/ereg_replace http://php.net/preg_replace http://php.net/trim http://php.net/chop (For even more ideas, review the entire list of string functions) -- CC -- 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] SETUP PHP , MYSQL, APACHE
I have been using Abriasoft's products. You just plop in the CD and it installs PHP, MySQL, Apache, Perl6, Perl DBI, and some other stuff on your linux (or other os) box. All software also available for free by download. http://www.abriasoft.com At 05:12 AM 5/19/02 -0700, you wrote: Hello all, hope that everyone had a nice weekend. I'm new to this form. I am about to install mysql, apache, and php on my linux box (redhat 7) I went to the php site, but I'm a little bit lost. I found this link on there but I dont know if thats the way I have to set it up . I'm setting all these program for creating a Admin ticket . Heres the site just in case you guys like to take a look at. I found the site in the dec issue of linux Joarnal . http://wwredshift.com/~yramin/atp/irm Not my question is. Would this be the right way of setting up php , mysql , and php . Can anyone check this site out for me. http://www.linuxguruz.org/z.php?id=31 also can you please tell me on the section were you ./configure the php . Would I be using the apxs setting or the red hat . Im' sorry if its a stupid question but I'm new to all this php thing. Thank you Luis -- 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] Wrapping text to store in the database
Hello! If a user drop a text like this in a textarea: --- the U.S. Army's 3rd Infantry Division, 15th Regiment, A Company, seized a 44-car train in a tunnel 60 miles south of Salzburg, Austria. It contained an incalculable fortune in fine art, bullion, jewelry, furs, coins, stamp collections, cameras, china, linens, silver, Oriental rugs, furniture, and anything else of value that a pro-Nazi Hungarian government looted from Jewish households during World War II. The Nazis, who surrendered on May 8, 1945, had been hoping to send the goods westward toward Germany ahead of the Russian advance. It never made it. But neither did its contents revert to those who lost them, nor were they compensated, despite U.S. policy dictating that anything identifiable be returned to its nation of origin. U.S. officials decided that the train's booty couldn't be traced to Hungary's Jews, and over the Hungarian Jewish community's fierce protests, sold it at auction, at military exchanges, used it in government offices and officials' homes, and in some cases, simply stole it. --- As you can see the text is simple and there are not any html tags. How do I do to add this elements so the text become something like this below, I mean how to wrap it up in html tags? --- pthe U.S. Army's 3rd Infantry Division, 15th Regiment, A Company, seized a 44-car train in a tunnel 60 miles south of Salzburg, Austria. It contained an incalculable fortune in fine art, bullion, jewelry, furs, coins, stamp collections, cameras, china, linens, silver, Oriental rugs, furniture, and anything else of value that a pro-Nazi Hungarian government looted from Jewish households during World War II./p pThe Nazis, who surrendered on May 8, 1945, had been hoping to send the goods westward toward Germany ahead of the Russian advance./p pIt never made it./p pBut neither did its contents revert to those who lost them, nor were they compensated, despite U.S. policy dictating that anything identifiable be returned to its nation of origin./p pU.S. officials decided that the train's booty couldn't be traced to Hungary's Jews, and over the Hungarian Jewish community's fierce protests, sold it at auction, at military exchanges, used it in government offices and officials' homes, and in some cases, simply stole it./p --- Ideas? -- 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] forcing download of new file
I want the script I'm doing to redirect all the output to a filename and that it gets downloaded. In other words... When someone presses the submit button I want the download screen to show with the filename I declared so the user can save the output from the script. something like this: - there's a form, the user fills it up and presses submit - then instead of showing the output on the screen I want the output to go to a file for him to download with a dynamically made filename (in this case the date) containing the results of the execution of the script is this possible? I think it is... I once saw it... thanks . [ Christian Dechery ] . Webdeveloper @ Tá Na Mesa! . Listmaster @ Gaita-L . http://www.tanamesa.com.br -- 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] Wrapping text to store in the database
check http://www.php.net/manual/en/function.nl2br.php you could also do a regex, searching for \n, and adding a P to it...adding the /P would make it a little more difficult... -jack -Original Message- From: Romulo Roberto Pereira [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 08, 2001 1:09 PM To: Php-General Subject: [PHP] Wrapping text to store in the database Hello! If a user drop a text like this in a textarea: --- the U.S. Army's 3rd Infantry Division, 15th Regiment, A Company, seized a 44-car train in a tunnel 60 miles south of Salzburg, Austria. It contained an incalculable fortune in fine art, bullion, jewelry, furs, coins, stamp collections, cameras, china, linens, silver, Oriental rugs, furniture, and anything else of value that a pro-Nazi Hungarian government looted from Jewish households during World War II. The Nazis, who surrendered on May 8, 1945, had been hoping to send the goods westward toward Germany ahead of the Russian advance. It never made it. But neither did its contents revert to those who lost them, nor were they compensated, despite U.S. policy dictating that anything identifiable be returned to its nation of origin. U.S. officials decided that the train's booty couldn't be traced to Hungary's Jews, and over the Hungarian Jewish community's fierce protests, sold it at auction, at military exchanges, used it in government offices and officials' homes, and in some cases, simply stole it. --- As you can see the text is simple and there are not any html tags. How do I do to add this elements so the text become something like this below, I mean how to wrap it up in html tags? --- pthe U.S. Army's 3rd Infantry Division, 15th Regiment, A Company, seized a 44-car train in a tunnel 60 miles south of Salzburg, Austria. It contained an incalculable fortune in fine art, bullion, jewelry, furs, coins, stamp collections, cameras, china, linens, silver, Oriental rugs, furniture, and anything else of value that a pro-Nazi Hungarian government looted from Jewish households during World War II./p pThe Nazis, who surrendered on May 8, 1945, had been hoping to send the goods westward toward Germany ahead of the Russian advance./p pIt never made it./p pBut neither did its contents revert to those who lost them, nor were they compensated, despite U.S. policy dictating that anything identifiable be returned to its nation of origin./p pU.S. officials decided that the train's booty couldn't be traced to Hungary's Jews, and over the Hungarian Jewish community's fierce protests, sold it at auction, at military exchanges, used it in government offices and officials' homes, and in some cases, simply stole it./p --- Ideas? -- 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] MySql vs PostgreSQL
So, I've noticed that most of you talk about PHP/MySQL almost exclusively. Does anyone use PHP and PostgreSQL? What are the advantages of MySQL over PostgreSQL, other than it's easier to pronounce... Thanks, Brent -- 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] Recursive SQL Queries: Web Directory Categories
James, Take a look at hierarchical queries in MS SQl. If I'm not mistaken, this is part of the SQL 99 standard and is implemented by many SQL 92 compliant database vendors. I know ORACLE and DB2 support it. I'm not sure if you already have but I would investigate this topic with MS SQL. Mike -Original Message- From: James Crowley [mailto:[EMAIL PROTECTED]] Sent: Monday, May 07, 2001 1:45 PM To: [EMAIL PROTECTED] Subject: [PHP] Recursive SQL Queries: Web Directory Categories Hi, I have a web directory which allows sub-categories to an unlimited level. This is done with a categories table, and assigning a parentid to each... For example ID ParentIDName 10 Products 21 Sub-Category of Products (Level 1) 31 Another Sub-Category (Level 1) 42 A sub-sub-category (Level 2) What I need to do is return a list of an items parent categories. For example, if we are in category 4, I want text outputted saying Products \ Sub-Category\sub-sub Category However, it does not seem possible to do this with a single SQL query. I have succeeded in creating a recursive one below (in MS SQL): CREATE PROCEDURE dbo.dir_recurse(@parentid INT) AS --// List its parent categories DECLARE @childid INT DECLARE hC CURSOR LOCAL FOR SELECT parent FROM categories c WHERE id = @parentid ORDER BY c.name FOR READ ONLY OPEN hC FETCH NEXT FROM hC INTO @childid WHILE @@FETCH_STATUS = 0 AND @childid != 0 BEGIN EXECUTE dir_recurse @childid FETCH NEXT FROM hC INTO @childid END CLOSE hC DEALLOCATE hC RETURN 0 GO However, this returns more than one result set, which neither ASP or PHP (so therefore it's probably the ODBC driver...) seem to support. Help! Regards, - James Editor, VB Web == Web - http://www.vbweb.co.uk Email - [EMAIL PROTECTED] ICQ# - 60612011 == -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: 06 May 2001 20:11 To: [EMAIL PROTECTED] Subject: php-general Digest 6 May 2001 19:11:22 - Issue 670 php-general Digest 6 May 2001 19:11:22 - Issue 670 Topics (messages 51587 through 51649): IIS instead of PWS!!! what else can i do.. 51587 by: Thomas Edison Jr. 51588 by: Zak Greant 51591 by: Thomas Edison Jr. 51592 by: Thomas Edison Jr. 51593 by: Zak Greant 51594 by: Alexander Skwar Re: PHP on PWS not working! 51589 by: Thomas Edison Jr. 51590 by: Thomas Edison Jr. 51600 by: Phil Driscoll 51640 by: Thomas Edison Jr. 51644 by: Phil Driscoll Re: Sorry, what is PWS 51595 by: Alexander Skwar Re: Free Database Design Program 51596 by: Andrzej Swedrzynski Novedades en Gordos.com 51597 by: Gordos.com PHP as apache module and security. 51598 by: Andrzej Swedrzynski 51607 by: Estelle Martin 51609 by: Andrzej Swedrzynski Re: nslookup function ? 51599 by: Tom Carter Complete Newbie 51601 by: biscut What is msvcr70.dll?? 51602 by: Ermanno Iannacci Re: PEAR where should I start? 51603 by: Gyozo Papp Image displaying problem 51604 by: Estelle Martin Re: class (not class instance) variables 51605 by: Gyozo Papp Re: quicker query? 51606 by: Gyozo Papp searching a MySQL database 51608 by: Jamie Saunders 51620 by: bill 51623 by: John Vanderbeck Insert data into mysql table 51610 by: Mohamedou Re: wordwrap 51611 by: Yasuo Ohgaki php4apachi.dll 51612 by: Darren best ide for windows 51613 by: Alexander Bierbrauer 51615 by: Gyozo Papp 51617 by: Geir Eivind Mork 51618 by: John Vanderbeck 51626 by: Henrik Hansen 51628 by: Andrzej Swedrzynski 51629 by: Gyozo Papp 51630 by: Alex Piaz 51633 by: Alexander Skwar 51634 by: Bjorn Sodergren 51635 by: Andrzej Swedrzynski 51637 by: John Vanderbeck 51639 by: Andrzej Swedrzynski php.exe [filename .php] vs. run [filename.php] via webserver 51614 by: Art Install problems with PHP and GD 51616 by: John Vanderbeck if string contains... 51619 by: Jamie Saunders 51621 by: Alvin Tan 51622 by: Gyozo Papp Slightly OT - Backing up mySQL... 51624 by: Nick Terzich 51625 by: Felix Kronlage 51627 by: Henrik Hansen Re: simple database extraction problem :( 51631 by: Manuel Lemos Can php give me row number? 51632 by: Jan Grafstrvm 51636 by: Gyozo Papp 51642 by: Stephan Ahonen Flash/PHP/MySQL 51638 by: FredrikAT 51641 by: Eduardo Pirez Jover Passing variables to another page - newbie 51643 by: Dean Martin 51645 by: Jack Dempsey 51646 by: John Vanderbeck 51647 by: tcuhost.hotmail.com [OT?] permission denied[OT?] 51648 by: Alexander Bierbrauer file()
RE: [PHP] Problem with PHP 4.0.5
I have exactly the same problem, if you try viewing the page with IE then you will probably find that it works fine...if you get any answers then could you let me know what you did ?? I found that even with using ? PHP then you still get the same problem... Regards biscut -Original Message- From: John Vanderbeck [mailto:[EMAIL PROTECTED]] Sent: 08 May 2001 01:33 To: [EMAIL PROTECTED] Subject: RE: [PHP] Problem with PHP 4.0.5 Try, ?PHP echo This is a testbr\n; ? Some systems are configured to not allow the shorthand ? and instead REQUIRE the full code start ?PHP - John Vanderbeck - Admin, GameDesign (http://gamedesign.incagold.com/) - GameDesign, the industry source for game design and development issues -Original Message- From: Alvaro Collado [mailto:[EMAIL PROTECTED]] Sent: Monday, May 07, 2001 8:36 PM To: [EMAIL PROTECTED] Subject: [PHP] Problem with PHP 4.0.5 I have installed PHP4.0.5 in a Red Hat Linux 6.0 with Apache. When I run the test no problem, all is OK, but when I run a html index file in Netscape ( LocalHost ) whith a single code like this ? echo(Anythig); ? nothing was display, nothing. When I change the code for an know error for example Netscape prints the full text of the tag . Please help me. Thanks -- 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] Problem executing files without line feeds
Help! We're currently in the process of moving from one server (with PHP v4.0.3pl1) to a new box (with PHP v4.0.5) Both have RedHat Linux. It seems that file that worked fine on the old setup are no longer executing properly. Im having the problem specifically with included files. If the file does not have line feeds after the carriage return (i.e. Was generated on a Mac) the comment line is not ending and the code won't execute (strangely enough, the code just displays). If I change the file to a Unix format file (using BBEdit on the Mac) it then executes fine with the include. Has anyone ever encountered something like this? Any suggestions? I'd like to avoid having to find all the files and fix them. Thanks! ..jon -- ..::.:..::.::.:.:..::..:::...:.:.::.::.::.:.. jon mclaughlin digitalnoise.com a division of PLATFORM.NET .:.:.:..::.:.:::..:::...:.:.::.::.:.::.:. p:646.613.3510 c:917.612.8261 f:646.613.3599 e:[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] class inheritance question
Hello, Class A{ function aa(){} } Class B extends A{ function bb(){ $this-aa();// I know this is ok } } Class C extends B{ function cc(){ $this-bb();// Will this work ? } } py
[PHP] conversion script
Would anyone be able to help me out with this: I have quite a few (almost 2000) .html files that I would like to change over to the .php extension. Past that, I would also like to add text to the top bottom of each page (for template purposes.) Does anyone know of a script that would automate this process, going through all the documents in a directory, and making the needed changes? Thanks in advance.. Ryan Christensen OlyPen Technical Support [EMAIL PROTECTED] 360.457.3000 800.303.8696 -- 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] class inheritance question
yes, as will: Class C extends B{ function cc(){ $this-bb();// Will this work ? -- YES $this-aa(); } } -Original Message- From: py [mailto:[EMAIL PROTECTED]] Sent: 08 May 2001 14:02 To: [EMAIL PROTECTED] Subject: [PHP] class inheritance question Hello, Class A{ function aa(){} } Class B extends A{ function bb(){ $this-aa();// I know this is ok } } Class C extends B{ function cc(){ $this-bb();// Will this work ? } } py -- 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 with PHP 4.0.5
are you sure your html is properly formatted? if you like, send me the small script you're using, and i'll run it on a pre 4.0.5 release... if something shows up in ie but not ns that's a browser, not php problem... -jack -Original Message- From: biscut [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 08, 2001 2:00 PM To: John Vanderbeck; [EMAIL PROTECTED] Subject: RE: [PHP] Problem with PHP 4.0.5 I have exactly the same problem, if you try viewing the page with IE then you will probably find that it works fine...if you get any answers then could you let me know what you did ?? I found that even with using ? PHP then you still get the same problem... Regards biscut -Original Message- From: John Vanderbeck [mailto:[EMAIL PROTECTED]] Sent: 08 May 2001 01:33 To: [EMAIL PROTECTED] Subject: RE: [PHP] Problem with PHP 4.0.5 Try, ?PHP echo This is a testbr\n; ? Some systems are configured to not allow the shorthand ? and instead REQUIRE the full code start ?PHP - John Vanderbeck - Admin, GameDesign (http://gamedesign.incagold.com/) - GameDesign, the industry source for game design and development issues -Original Message- From: Alvaro Collado [mailto:[EMAIL PROTECTED]] Sent: Monday, May 07, 2001 8:36 PM To: [EMAIL PROTECTED] Subject: [PHP] Problem with PHP 4.0.5 I have installed PHP4.0.5 in a Red Hat Linux 6.0 with Apache. When I run the test no problem, all is OK, but when I run a html index file in Netscape ( LocalHost ) whith a single code like this ? echo(Anythig); ? nothing was display, nothing. When I change the code for an know error for example Netscape prints the full text of the tag . Please help me. Thanks -- 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] RE: Undelivered Mail Returned to Sender
every reply i send to the list gives this back...could someone take that address off the list? thanks jack -Original Message- From: Mail Delivery System [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 08, 2001 2:16 PM To: [EMAIL PROTECTED] Subject: Undelivered Mail Returned to Sender This is the Postfix program at host mail-in.namezero.com. I'm sorry to have to inform you that the message returned below could not be delivered to one or more destinations. For further assistance, please send mail to postmaster If you do so, please include this problem report. You can delete your own text from the message returned below. The Postfix program [EMAIL PROTECTED]: host inbound.namezero.com.criticalpath.net[209.228.14.51] said: 550 User unknown -- 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] conversion script
a simple perl script would suffice...don't have time to write one now (paper to write...joy) but if you can't find one, i can help later... -jack -Original Message- From: Ryan Christensen [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 08, 2001 2:09 PM To: PHP Mailing List Subject: [PHP] conversion script Would anyone be able to help me out with this: I have quite a few (almost 2000) .html files that I would like to change over to the .php extension. Past that, I would also like to add text to the top bottom of each page (for template purposes.) Does anyone know of a script that would automate this process, going through all the documents in a directory, and making the needed changes? Thanks in advance.. Ryan Christensen OlyPen Technical Support [EMAIL PROTECTED] 360.457.3000 800.303.8696 -- 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] Variable question, yet another
Alright... here's my situation for those that didn't read my string of messages yesterday.. (plus a bit more background information as to why I'm doing this) I'm writing an engine for a content managing system. Part of the system is a menu builder. I use 2 tables, (this is a mysql database) menu and menu_parts. They look like this Table menu ID : Integer; (auto increments, key) Name : Varchar[128]; Type : Integer; (unused now) Table menu_parts ID : Integer; Menu : Integer; (which menu this belongs to) Order : Tinyint; (all menu items have incremental numbers) Type : Tinyint; Data : Text; My code looks like this [code] $query=SELECT type,data FROM menu_parts WHERE menu='1' ORDER BY m_order; $result=mysql_query($query); if($myrow=mysql_fetch_array($result)) { do { if($myrow[type]==1) eval(echo \.$myrow[data].\;); elseif($myrow[type]==2) eval($myrow[data]); else echo $myrow[data]; } while($myrow=mysql_fetch_array($result)); } [/code] So depending on the menu_parts type, it will display the data field differently. If the type=0, it simple outputs the data field plain text. If the type=1, it adds echo to both sides and outputs data. If the type=2, it evaluates the code as is. The problem I'm having, is with type 1. The main reason for this type is say I want to send the user to a php script and pass parameters (I'm going to use []'s so those of you with html email readers don't parse it) [a href=myscript.php?username={$userdata[username]}]Goto MyScript.php[/a] So when the line hits type 1, it evals like this echo [a href=myscript.php?username={$userdata[username]}]Goto MyScript.php[/a]; Of course this yields an error because of the 's in the anchor tag. But if I add slashes the evaluated code will be echo [a href=\myscript.php?username={$userdata[\username\]}\]Goto MyScript.php[/a]; Which will cause the $userdata[username] variable to not process properly. I thought about making type one do echo ''; instead of echo ; but then if the user has a ' in their menu it won't function properly. I wish I could do this with regular expressions, but I'm not fluent with them (and also doubt I could succeed in my task if I did). I think I described my problem as thorough as I could have. Any help, comments, etc would be greatly appreciated. -Justin -- 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] conversion script
On Tue, 8 May 2001 11:09:18 -0700, Ryan Christensen ([EMAIL PROTECTED]) wrote: Would anyone be able to help me out with this: I have quite a few (almost 2000) .html files that I would like to change over to the .php extension. Past that, I would also like to add text to the top bottom of each page (for template purposes.) Does anyone know of a script that would automate this process, going through all the documents in a directory, and making the needed changes? Thanks in advance.. for the first part you can try (not tested): for i in `/bin/ls *html |sed 's/.html//g'`; do mv $i.html $i.php; done for the second part you might want to try putting it in your auto_prepend_file. - Mark Ryan Christensen OlyPen Technical Support [EMAIL PROTECTED] 360.457.3000 800.303.8696 -- 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: php-list- [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] Safe mode upload
Awhile ago there was some discussion on irc #php , this use was proposed (by onki) : $tmp_name = $HTTP_POST_FILES['userfile']['tmp_name']; move_uploaded_file ($tmp_name, '/home/httpd/html/upload/example.zip'); chmod('/home/httpd/html/upload/example.zip', 0644); And it works. move_uploaded_file() is the key here. Haven't personally tried it like this as the safe mode server I have access to is 4.0.2 and move_uploaded_file is a 4.0.3 function http://www.php.net/manual/en/function.move-uploaded-file.php http://www.php.net/manual/en/features.file-upload.php Also, what you can do is get a script called chuid from here : http://www.srparish.net/scripts/ It must be installed by sysadmin. Then, users do something like this : ... input type=file name=file ... passthru (chuid $file 1033); copy($file, /path/to/uploads/$file_name); Something like that. The above (1033) is the users uid which of course is different for everyone. If anyone has comments to add/change to this post, please do so. Also upon review of the php4.0.5 CHANGELOG, note the following entry : Allow access to uploaded files in safe_mode. Beware that you can only read the file. If you copy it to new location the copy will not have the right UID and you script won't be able to access that copy. (Thies) http://php.net/ChangeLog-4.php Regards, Philip On Tue, 8 May 2001, php wrote: Hi everyone. I have trouble uploading files while in safe mode .Warning: SAFE MODE Restriction in effect. The script whose uid is 206 is not allowed to access /tmp/php6wtDUc owned by uid 0 Can someone help me pass around this problem? -- 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] session question
I have a question about session variables. In my page the session variables are not seen by the pages where tem are not declared. I´ve used session_register($variable) and so after at another page I´ve called echo $variable; and it generate a message that the variable does not exists. The session variables are not suposed to be seen at any time, at any page when the param globals is set on while session stands up? Tkx. R3.
[PHP] mySQL access denied with correct account/pw?
Working on getting mySQL setup on a new server. I mainly do the PHP work while another guy does the server work. He has given me the account and password for the mySQL server, and I have quadruple checked it with him. We both swear it is correct in the script. However, mySQL reports an access denied message whenever I try to connect. Could something ELSE be causing this error? - John Vanderbeck - Admin, GameDesign (http://gamedesign.incagold.com/) - GameDesign, the industry source for game design and development issues -- 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] session question
Are you opening a session on each of the pages you want to use the variables? Calling session_register() I believe causes an implicit opening of the session, but on the other pages you have to explicity open the session, or you won't have access to those vars. - John Vanderbeck - Admin, GameDesign (http://gamedesign.incagold.com/) - GameDesign, the industry source for game design and development issues -Original Message- From: Rodrigo Reis da Rocha [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 08, 2001 2:58 PM To: [EMAIL PROTECTED] Subject: [PHP] session question I have a question about session variables. In my page the session variables are not seen by the pages where tem are not declared. I´ve used session_register($variable) and so after at another page I´ve called echo $variable; and it generate a message that the variable does not exists. The session variables are not suposed to be seen at any time, at any page when the param globals is set on while session stands up? Tkx. R3. -- 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] session question
I have a question about session variables. In my page the session variables are not seen by the pages where tem are not declared. I´ve used session_register(variable) and so after at another page I´ve called echo $variable; and it generate a message that the variable does not exists. The session variables are not suposed to be seen at any time, at any page when the param globals is set on while session stands up? Tkx. R3.
RE: [PHP] RE: Undelivered Mail Returned to Sender
I have been getting this as well, and it is _really_ starting to annoy me. Why is this not filtered out anyways? I am the owner and admin of the GameDesign mailing list, and our software automaticly filters these things from the general list. Please fix this :( - John Vanderbeck - Admin, GameDesign (http://gamedesign.incagold.com/) - GameDesign, the industry source for game design and development issues -Original Message- From: Jack Dempsey [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 08, 2001 2:22 PM To: PHP General List Subject: [PHP] RE: Undelivered Mail Returned to Sender every reply i send to the list gives this back...could someone take that address off the list? thanks jack -Original Message- From: Mail Delivery System [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 08, 2001 2:16 PM To: [EMAIL PROTECTED] Subject: Undelivered Mail Returned to Sender This is the Postfix program at host mail-in.namezero.com. I'm sorry to have to inform you that the message returned below could not be delivered to one or more destinations. For further assistance, please send mail to postmaster If you do so, please include this problem report. You can delete your own text from the message returned below. The Postfix program [EMAIL PROTECTED]: host inbound.namezero.com.criticalpath.net[209.228.14.51] said: 550 User unknown -- 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, snmp, and mibs
Hi, Sorry if this is a repeat question, I just can't seem to find an answer to this question. I am running php4 on NT. I've been able to connect to some network equipment with the snmp commands, and retrieve the results. But it's the list of values, which can be tough to correspond to the MIB. Is there a way to get at least the x.x.x.x.x.x from a MIB file into an array of some kind, or even better, to get the object names and such into an array? Thanks for any information, Mike _ 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] Variable question, yet another
On Tue, May 08, 2001 at 01:20:49PM -0500, King, Justin wrote: So when the line hits type 1, it evals like this echo [a href=myscript.php?username={$userdata[username]}]Goto MyScript.php[/a]; Of course this yields an error because of the 's in the anchor tag. But if I add slashes the evaluated code will be echo [a href=\myscript.php?username={$userdata[\username\]}\]Goto MyScript.php[/a]; Why not just break out of the string to print the username? echo [a href=\myscript.php?username=.$userdata[username].\]Goto Myscript.php[/a]; -- Jason Stechschulte [EMAIL PROTECTED] -- The whole history of computers is rampant with cheerleading at best and bigotry at worst. -- Larry Wall in [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] How to read a web page and analyze but not display it
hi PHP 'sters, How to read a web page and analyze but not display it using PHP. Thanks Dexter.
RE: [PHP] php, snmp, and mibs
Mike, I haven't worked with MIB files myself, but what you're describing sounds like it could be solved with regex's...can you post a snippet of what file looks like that you're trying to extract from? -jack -Original Message- From: Mike Backes [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 08, 2001 2:28 PM To: [EMAIL PROTECTED] Subject: [PHP] php, snmp, and mibs Hi, Sorry if this is a repeat question, I just can't seem to find an answer to this question. I am running php4 on NT. I've been able to connect to some network equipment with the snmp commands, and retrieve the results. But it's the list of values, which can be tough to correspond to the MIB. Is there a way to get at least the x.x.x.x.x.x from a MIB file into an array of some kind, or even better, to get the object names and such into an array? Thanks for any information, Mike _ 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] -- 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 read a web page and analyze but not display it
Use fopen() or file() --zak - Original Message - From: Dexter [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, May 08, 2001 4:27 PM Subject: [PHP] How to read a web page and analyze but not display it hi PHP 'sters, How to read a web page and analyze but not display it using PHP. Thanks Dexter. -- 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] Classes and arrays
Hi! Can anybody explain to me why this script outputs: oneone instead of: zeroone ??? Thanks, stefan ? class Cart { var $items; // Items in our shopping cart function add_item ($id,$text) { $this-$items[$id] = $text; } function output($id){ echo $this-$items[$id]; } } $c = new Cart; $c-add_item(0,zero); $c-add_item(1,one); $c-output(0); $c-output(1); ? -- 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] Recursive SQL Queries: Web Directory Categories
Also take a look at Joe Celko's 'SQL for Smarties'. There's a whole chapter on this. It gets kind if burly, but it's pretty cool. It's all done by converting your schema below into a tree structure... (no, i don't have any code since I've just read about it never done it :) -philip In article [EMAIL PROTECTED], Krznaric Michael [EMAIL PROTECTED] wrote: James, Take a look at hierarchical queries in MS SQl. If I'm not mistaken, this is part of the SQL 99 standard and is implemented by many SQL 92 compliant database vendors. I know ORACLE and DB2 support it. I'm not sure if you already have but I would investigate this topic with MS SQL. Mike -Original Message- From: James Crowley [mailto:[EMAIL PROTECTED]] Sent: Monday, May 07, 2001 1:45 PM To: [EMAIL PROTECTED] Subject: [PHP] Recursive SQL Queries: Web Directory Categories Hi, I have a web directory which allows sub-categories to an unlimited level. This is done with a categories table, and assigning a parentid to each... For example ID ParentIDName 10 Products 21 Sub-Category of Products (Level 1) 31 Another Sub-Category (Level 1) 42 A sub-sub-category (Level 2) What I need to do is return a list of an items parent categories. For example, if we are in category 4, I want text outputted saying Products \ Sub-Category\sub-sub Category However, it does not seem possible to do this with a single SQL query. I have succeeded in creating a recursive one below (in MS SQL): CREATE PROCEDURE dbo.dir_recurse(@parentid INT) AS --// List its parent categories DECLARE @childid INT DECLARE hC CURSOR LOCAL FOR SELECT parent FROM categories c WHERE id = @parentid ORDER BY c.name FOR READ ONLY OPEN hC FETCH NEXT FROM hC INTO @childid WHILE @@FETCH_STATUS = 0 AND @childid != 0 BEGIN EXECUTE dir_recurse @childid FETCH NEXT FROM hC INTO @childid END CLOSE hC DEALLOCATE hC RETURN 0 GO However, this returns more than one result set, which neither ASP or PHP (so therefore it's probably the ODBC driver...) seem to support. Help! Regards, - James Editor, VB Web == Web - http://www.vbweb.co.uk Email - [EMAIL PROTECTED] ICQ# - 60612011 == -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: 06 May 2001 20:11 To: [EMAIL PROTECTED] Subject: php-general Digest 6 May 2001 19:11:22 - Issue 670 php-general Digest 6 May 2001 19:11:22 - Issue 670 Topics (messages 51587 through 51649): IIS instead of PWS!!! what else can i do.. 51587 by: Thomas Edison Jr. 51588 by: Zak Greant 51591 by: Thomas Edison Jr. 51592 by: Thomas Edison Jr. 51593 by: Zak Greant 51594 by: Alexander Skwar Re: PHP on PWS not working! 51589 by: Thomas Edison Jr. 51590 by: Thomas Edison Jr. 51600 by: Phil Driscoll 51640 by: Thomas Edison Jr. 51644 by: Phil Driscoll Re: Sorry, what is PWS 51595 by: Alexander Skwar Re: Free Database Design Program 51596 by: Andrzej Swedrzynski Novedades en Gordos.com 51597 by: Gordos.com PHP as apache module and security. 51598 by: Andrzej Swedrzynski 51607 by: Estelle Martin 51609 by: Andrzej Swedrzynski Re: nslookup function ? 51599 by: Tom Carter Complete Newbie 51601 by: biscut What is msvcr70.dll?? 51602 by: Ermanno Iannacci Re: PEAR where should I start? 51603 by: Gyozo Papp Image displaying problem 51604 by: Estelle Martin Re: class (not class instance) variables 51605 by: Gyozo Papp Re: quicker query? 51606 by: Gyozo Papp searching a MySQL database 51608 by: Jamie Saunders 51620 by: bill 51623 by: John Vanderbeck Insert data into mysql table 51610 by: Mohamedou Re: wordwrap 51611 by: Yasuo Ohgaki php4apachi.dll 51612 by: Darren best ide for windows 51613 by: Alexander Bierbrauer 51615 by: Gyozo Papp 51617 by: Geir Eivind Mork 51618 by: John Vanderbeck 51626 by: Henrik Hansen 51628 by: Andrzej Swedrzynski 51629 by: Gyozo Papp 51630 by: Alex Piaz 51633 by: Alexander Skwar 51634 by: Bjorn Sodergren 51635 by: Andrzej Swedrzynski 51637 by: John Vanderbeck 51639 by: Andrzej Swedrzynski php.exe [filename .php] vs. run [filename.php] via webserver 51614 by: Art Install problems with PHP and GD 51616 by: John Vanderbeck if string contains... 51619 by: Jamie Saunders 51621 by: Alvin Tan 51622 by: Gyozo Papp Slightly OT - Backing up mySQL... 51624 by: Nick Terzich 51625 by: Felix Kronlage 51627 by: Henrik Hansen Re: simple database extraction problem :( 51631 by: Manuel Lemos Can php give me row number? 51632 by: Jan Grafstrvm 51636 by: Gyozo Papp 51642 by: Stephan Ahonen Flash/PHP/MySQL 51638
Re: [PHP] HTTP authentication : logout!!!
On 07-May-01 Mauricio Souza Lima wrote: snip And you have to inform the user to clean the password field, click ok, then the pop-up will open again, then user click in cancel. I just know that way to do. If anyone know another way, Postit! create a tmp directory logoff.php3: require('secure.php3'); authuser(Logoff); // validate user (possible Dos attack here) $fname=tmp/$PHP_AUTH_USER; touch($fname); Header(Location: http://www.mydomain.com/index.html;); - secure.php3: function checklogin($user,$pass='',$realm='') { if (! dbInit()) { echo \n\nBODYCENTER; die(PH2Unable to contact database server/H2); } $fname=tmp/$user; if (file_exists($fname)) { unlink($fname); return(false); } $query=select login from users where login='$user' and password=PASSWORD('$pass'); // echo $query .'BR'; $result = mysql_query( $query); $row = mysql_fetch_object($result); if ($row) { return(true); } return(false); } function authheader($realm) { Header('WWW-authenticate: basic realm='.$realm .''); Header('HTTP/1.0 401 Unauthorized'); echo \n\n; } function authuser($realm='Access') { global $PHP_AUTH_USER, $PHP_AUTH_PW; if (! (isset($PHP_AUTH_USER)) ) { authheader($realm); exit; } if (! (checklogin($PHP_AUTH_USER, $PHP_AUTH_PW, $realm)) ) { authheader($realm); echo 'CENTERFailed Login'; exit; } } 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]
Odp: [PHP] MySql vs PostgreSQL
So, I've noticed that most of you talk about PHP/MySQL almost exclusively. Does anyone use PHP and PostgreSQL? What are the advantages of MySQL over PostgreSQL, other than it's easier to pronounce... I'v been using Postgres for some time now and I think I'm going to swicth to MySQL because of the Large Objects in Postgres, which aren't very good. I don't use subqueries so it won't be a big problem. | Tom Wasiluk ( [EMAIL PROTECTED] ) | http://php.pl -- 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]