[PHP] what's the matter?
index.php: choice your gender male female x.php: but at last it said that the gender had not been defined??? help me! thank u!~
[PHP] how to get time cost for MySQL query
Hi, Is there any MySQL lib function which can provide time cost for last query? Since we can see the time cost each time we query MySQL through MySQL console (such as 75 rows in set (0.01 sec)), so I am wondering there is already an existing function which will return the value... Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] how to get time cost for MySQL query
I did checked both of them and it seems they do not provide such info... thanks "Philip Hallstrom" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] >> Hi, Is there any MySQL lib function which can provide time cost for last >> query? >> > > Maybe... > > http://us2.php.net/manual/en/function.mysql-info.php > http://us2.php.net/manual/en/function.mysql-stat.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] how to get time cost for MySQL query
I did checked both of them and it seems they do not provide such info... thanks "Philip Hallstrom" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] >> Hi, Is there any MySQL lib function which can provide time cost for last >> query? >> > > Maybe... > > http://us2.php.net/manual/en/function.mysql-info.php > http://us2.php.net/manual/en/function.mysql-stat.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Good Book?
What is a good beginners book for PHP? I would like a little depth on security. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Getting information of a client
how can i get a variable posted from a form by a user whitout having register_globals set On? Nick - Original Message - From: "Saci" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, August 09, 2002 1:08 PM Subject: [PHP] Re: Getting information of a client > $mensagem = $mensagem."Remote_addr : ".$_SERVER['REMOTE_ADDR']."\n"; > $mensagem = $mensagem."Remote_host : ".$_SERVER['REMOTE_HOST']."\n"; > $mensagem = $mensagem."Remote_agent : ".$_SERVER['HTTP_USER_AGENT']."\n"; > $mensagem = $mensagem."Host : ".$_SERVER['HTTP_HOST']."\n"; > echo $mensagem; > ?> > > > > "Jan Souman" <[EMAIL PROTECTED]> escreveu na mensagem > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > I would like to get information of a person who is browsing my site. Does > > anyone know how to get this information? > > > > Kind regards, > > > > Jan > > > > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] cgi error
I receive this when I try to send an e-mail. All works fine until yesterday and my script is the same. Could u tell what is the problem? CGI Error The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are:
[PHP] and this is the script
$fp = fopen("msg1.dat", "r"); while (!feof($fp)) { $data = fgetcsv ($fp, 4096, ":"); $subiect_email="Important to all my users!!!"; $design=" bla blablaaa"; @mail ($data[4],$subiect_email, $design, "From: [EMAIL PROTECTED]\n"); } fclose ($fp);
[PHP] ###PLEASE HELP### - delete a line from a text file
i have a text file with some of this elements: name:adress:telephone:email:password i want to delete this line using for identifier the 'name' only. // $sterge_user="name"; this is the value sent by form witch will be the identifier // $path="some_of_my_files"; the file used here allready set with 777 chmod function delete_user($sterge_user, $path){ $i = 0; $fisierul = file($path); $fp = fopen($path, "w"); while (!sizeof($fisierul)) { $data = fgetcsv ($fisierul, 4096, ":"); if ($data[0]==$sterge_user) { for ($i=0; $i<=sizeof($data);){$data[i]="";++$i;} } fwrite($fp, $data); } fclose($fp); } I am waiting for an answer, please Nick
[PHP] URL / slash reduction
this url is the one that i want for my users: http://user.tuned-belgium.be/junni but go's now to http://www.tuned-belgium.com/user/?id=/junni (slash junni) but must go to http://www.tuned-belgium.com/user/?id=junni (without slash) how can i prevent or filter the slash away? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] URL / slash reduction
the nickname 'junni' was an example.. i have this now but its not working :( http://www.tuned-belgium.com/user/?id=/$_GET['id ']'); ?> http://tuned-belgium.com/main/modules.php?name=user&op=userinfo&uname="> gives: Parse error: parse error in /usr/home/v1/a0016905/html/user/filter.php on line 2 the meaning of it is that http://user.tuned-belgium.be/nickname goes to http://tuned-belgium.com/main/modules.php?name=user&op=userinfo&uname=nickna me --- --- --- --- --- --- Connecting Tuners @ http://www.Tuned-Belgium.com Xbox talk @ http://www.X-power.be Gamecube @ http://www.cube-power.be "Dave" <[EMAIL PROTECTED]> schreef in bericht [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > >this url is the one that i want for my users: > > > >http://user.tuned-belgium.be/junni > > > > > >but go's now to > > > >http://www.tuned-belgium.com/user/?id=/junni (slash junni) > > > >but must go to > > > >http://www.tuned-belgium.com/user/?id=junni (without slash) > > > >how can i prevent or filter the slash away? > > without getting eloquent... and assuming your url string is static each time > ($id doesn't move withing your url string). > > $url = > str_replace('?id=/','?id=','http://www.tuned-belgium.com/user/?id=/junni'); > > Dave > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: URL / slash reduction
gone start again.. because a can't get trough this stuff :( al i want is a forward of http://user.tuned-belgium.be/NICKNAME http://tuned-belgium.com/main/modules.php?name=user&op=userinfo&uname=NICKNA ME what is the best to do? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] What's the difference ?
What's the difference between : $_SERVER["COMPUTERNAME"] and $_ENV["COMPUTERNAME"] ?
[PHP] XML DOM: encoding attribute problems and namespaces
hi ;) Recently I've been using the DOM module of php and I have encountered a few problems. I am working on a quite advanced XML application and I am forced to use the PHP technology. I need to dynamically create XML documents. There's no problem with that when i simply use this statement: $doc = xmldoc(''); but when i use this: $doc = xmldoc(''); php doesn't parse my document! it doesn't even give me an error message ;( does anyone have an idea what to do with it? also is there a way to declare a document without a root element, but with the "encoding" attribute set? it's possible to do it like this: $doc = new_xmldoc('1.0'); but i can't set the encoding attribute then. if i try something like this: $doc = xmldoc(''); i get this after $doc->dumpmem(): '?> i'm also wondering about the use of namespaces in PHP DOM. is it possible? where can i get some infos about it? sorry if this post repeats some threads, but i'm new to this group ;) Chris Jarecki ps: sorry for possible language mistakes ;) -- PHP General Mailing List (http://www.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] XML DOM: encoding attribute problems and namespaces
hi ;) Recently I've been using the DOM module of php and I have encountered a few problems. I am working on a quite advanced XML application and I am forced to use the PHP technology. I need to dynamically create XML documents. There's no problem with that when i simply use this statement: $doc = xmldoc(''); but when i use this: $doc = xmldoc(''); php doesn't parse my document! it doesn't even give me an error message ;( does anyone have an idea what to do with it? also is there a way to declare a document without a root element, but with the "encoding" attribute set? it's possible to do it like this: $doc = new_xmldoc('1.0'); but i can't set the encoding attribute then. if i try something like this: $doc = xmldoc(''); i get this after $doc->dumpmem(): '?> i'm also wondering about the use of namespaces in PHP DOM. is it possible? where can i get some infos about it? sorry if this post repeats some threads, but i'm new to this group ;) Chris Jarecki ps: sorry for possible language mistakes ;) -- PHP General Mailing List (http://www.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] Odp: Returning a specific 'record' from an XML file
hi ;) it's pretty simple to do something like this using the DOM functions that handle XPath expressions. when you have that xml loaded in a variable $xml_source all you have to do is: $doc=xmldoc($xmlsource); $xpath_ctx = xpath_new_context($doc ); // show all objects echo "Xpath All"; $result = xpath_eval($xpath_ctx, '//child::*'); print_r($result); // this will show you the structure of the output // all books objects $result = xpath_eval($xpath_ctx, '//book::*'); print_r($result); // book number one: $result = xpath_eval($xpath_ctx, '//book[1]'); print_r($result); xpath is much more powerful than that and i'm pretty sure you can use it the way you want it. some more info about XPath is available here: http://www.zvon.org/xxl/XPathTutorial/General/examples.html Good Luck with that ;) ZeNDeR-X -=> www.ipro.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]
[PHP] merging XML documents
hi all ;) is there a way to merge two XML documents in php using DOM or SAX? For example we have an XML like this: I want to insert a document into (instead of?) the tag. Is that possible using some simple PHP instructions? or will i have to parse the XML on my own and do an ordinary text-based solution? Thanx :) ZeNDeR-X -- PHP General Mailing List (http://www.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] Signing text in PHP using GPG
I have a set of data, that needs to be GPG signed before sending the data to a remote server. Has anyone already done something like this in PHP, that I could use for reference? -- Best regards, William X Walsh <[EMAIL PROTECTED]> -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Signing text in PHP using GPG
Tuesday, April 16, 2002, 4:07:02 PM, William X Walsh wrote: > I have a set of data, that needs to be GPG signed before sending the > data to a remote server. > Has anyone already done something like this in PHP, that I could use > for reference? If this is not possible, I have written a perl script using GPG::Interface to sign the text, and return the signed text. I presume I can use passthru to call this script, but is there a way to pass the multi-line text to the perl script using stdin rather than being forced to write out a file and import the file into the perl script? All the examples I've found write out the data to a file, and then have the called program read in the file, I'd prefer to just pass it on STDIN if possible. -- Best regards, William X Walsh <[EMAIL PROTECTED]> -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Unable to load Dynamic Link Library
Hi I have installed Apache2Triad Apache2Triadversion 1.5.4 Apache version 2.2.0 MySQL version 5.0.18 PostgreSQL version 8.1.2 Openssl version 0.9.8a Slimftpdversion 3.18 Xmail version 1.22 The php.ini file has the extension=php_curl.dll line enabled (uncommented) and the file is available in the windows installation directory. When starting PHP from command-line with PHP.exe, I get the following error. Please help, as I'm a PHP newbie. Regards, Viquar R. Shaikh ( Phone: +91 22 6695 3770 |) GDP: 695 3770 |) Mob: +91 9867611123 | + [EMAIL PROTECTED] - This transmission may contain information that is privileged, confidential, legally privileged, and/or exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein (including any reliance thereon) is STRICTLY PROHIBITED. Although this transmission and any attachments are believed to be free of any virus or other defect that might affect any computer system into which it is received and opened, it is the responsibility of the recipient to ensure that it is virus free and no responsibility is accepted by JPMorgan Chase & Co., its subsidiaries and affiliates, as applicable, for any loss or damage arising in any way from its use. If you received this transmission in error, please immediately contact the sender and destroy the material in its entirety, whether in electronic or hard copy format. Thank you.
Re: [PHP] Unable to load Dynamic Link Library
Hi I have installed Apache2Triad Apache2Triadversion 1.5.4 Apache version 2.2.0 MySQL version 5.0.18 PostgreSQL version 8.1.2 Openssl version 0.9.8a Slimftpdversion 3.18 Xmail version 1.22 The php.ini file has the extension=php_curl.dll line enabled (uncommented) and the file is available in the windows installation directory. When starting PHP from command-line with PHP.exe, I get the following error. The first ScreenShot Runtime Error Program: C:\apache2triad\php\bin\php.exe R6034 An application has attempted to load the C runtime library incorrectly. Please contact the application's support team for more information The Second Screenshot PHP Startup : Unable to load dynamic link library 'C:\Apache2Triad\php\extensions\php_curl.dll' - A dynamic link library (DLL) initialization routine failed. Please help, as I'm a PHP newbie. Regards, Viquar R. Shaikh ( Phone: +91 22 6695 3770 |) GDP: 695 3770 |) Mob: +91 9867611123 | + [EMAIL PROTECTED] - This transmission may contain information that is privileged, confidential, legally privileged, and/or exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein (including any reliance thereon) is STRICTLY PROHIBITED. Although this transmission and any attachments are believed to be free of any virus or other defect that might affect any computer system into which it is received and opened, it is the responsibility of the recipient to ensure that it is virus free and no responsibility is accepted by JPMorgan Chase & Co., its subsidiaries and affiliates, as applicable, for any loss or damage arising in any way from its use. If you received this transmission in error, please immediately contact the sender and destroy the material in its entirety, whether in electronic or hard copy format. Thank you.
[PHP] executing external php script
hi! what I want to do is execute php script and don't wait for output. found something like this - > /dev/null 2>&1 &`; ?> text - it works but I 'm curious about php syntax ,is it correct way to do that? or maybe there is better solution. Thanks for any advice. Best regards, Albert -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] PHP Web Hosting
Why don't you two just email each other instead of including us all in your little pissing contest? Stanley G. Martin -Original Message- From: -{ Rene Brehmer }- [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 20, 2004 4:59 PM To: PHP Mailing List Subject: Re: [PHP] PHP Web Hosting According to historical records, on Tue, 20 Apr 2004 10:39:33 -0400 John Nichel <[EMAIL PROTECTED]> wrote about "Re: [PHP] PHP Web Hosting": >-{ Rene Brehmer }- wrote: >> At 21:19 19-04-2004, John Nichel wrote: >> >>> Greg Donald wrote: >>> Your signature is twice the rfc1855 suggested limit. http://www.faqs.org/rfcs/rfc1855.html - If you include a signature keep it short. Rule of thumb is no longer than 4 lines. >>> >>> >>> And the RFC1885 'guidelines' are also almost 10 years old. I think >>> most people today have a fast enough connection to handle the 500+/- >>> bytes of my signatureeven if they're still on dial-up. Of course, >>> I could be mistaken and there may still be someone out there using >>> 900baud. ;) >> >> >> Most usenet netiquette guidelines I've read suggest max. 4-6 lines of >> sig content, with "permitted" divider lines at either end ... and in >> this case a line is 75 chars ... > >A, but the almost 10 year old RFC says this... > >"Limit line length to fewer than 65 characters and end a line with a >carriage return." > >;) Hmm ... why the heck 65 characters ??? ... Old EGA screens were 80x34 characters, VGA is 80x43 characters ... The reason Usenet standard is 76 chars wide messages (today anyways) is that text-mode readers need the last 4 characters to display window borders and control chars along the message lines ... But "end a line with carriage" return is Mac standard ... in DOS an endline is NL\CR, while in Unix it's NL, and on old Mac CR ... I took a peak at that RFC ... and I think most of it is in the 10 year old 1200 page Internet book I have ... That book also throughly describes the hazards of using 8 bit characters because of the old 7 bit servers ... (AFAIK, Africa and rural China are the only places today where you can expect to find 7 bit servers) In most Usenet groups I've participated in, you generally only get pounded by a long sig if it's very long or longer than the actual message ... these days 4 or 8 lines makes the difference of 1/10 second for most of the users on slow 56K connections ... for anyone else it's not noticeable... Rene -- Rene Brehmer aka Metalbunny ~ If you don't like what I have to say ... don't read it ~ http://metalbunny.net/ References, tools, and other useful stuff... Check out the new Metalbunny forums @ http://forums.metalbunny.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] URL / slash reduction
:) :) great help thx mate!!! now can everyone create a account with a userpage!! look at MY car: http://user.tuned-belgium.be/yla look at the beatyyy greetz --- --- --- --- --- --- Connecting Tuners @ http://www.Tuned-Belgium.com Xbox talk @ http://www.X-power.be Gamecube @ http://www.cube-power.be - Original Message - From: "Martin Towell" <[EMAIL PROTECTED]> To: "'YLA G - X-power.be'" <[EMAIL PROTECTED]> Sent: Tuesday, June 11, 2002 2:42 AM Subject: RE: [PHP] URL / slash reduction > let's start from scratch: > > in coming url: http://www.tuned-belgium.com/user/?id=/nickname > needs to be: > http://tuned-belgium.com/main/modules.php?name=user&op=userinfo&uname=nickna > me > > $ndx = strrpos($REQUEST_URI, "/"); > $uname = substr($REQUEST_URI, $ndx + 1); > $url = > "http://tuned-belgium.com/main/modules.php?name=user&op=userinfo&uname="; . > $uname; > ?> > > how about that - I haven't tested it > > -Original Message- > From: YLA G - X-power.be [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, June 11, 2002 10:39 AM > To: Martin Towell > Subject: Re: [PHP] URL / slash reduction > > > i did this now: > > $url = > str_replace('?id=/','?id=','http://www.tuned-belgium.com/user/?id=/'.$_GET[' > id']); > ?> > http://tuned-belgium.com/main/modules.php?name=user&op=userinfo&uname= print $url ?>"> > > now i getting the full url http://www.tuned-belgium.com/user/?id=/junni as > the nickname (with the slash to) > > > --- --- --- --- --- --- > Connecting Tuners @ http://www.Tuned-Belgium.com > Xbox talk @ http://www.X-power.be > Gamecube @ http://www.cube-power.be > > - Original Message - > From: "Martin Towell" <[EMAIL PROTECTED]> > To: "'YLA G - X-power.be'" <[EMAIL PROTECTED]> > Sent: Tuesday, June 11, 2002 2:32 AM > Subject: RE: [PHP] URL / slash reduction > > > > John Holmes just reminded me that variables inside single quotes don't get > > evaluated... > > > > so try this instead > > > > > str_replace('?id=/','?id=','http://www.tuned-belgium.com/user/?id=/'.$_GET[' > > id']); > > > > -Original Message- > > From: YLA G - X-power.be [mailto:[EMAIL PROTECTED]] > > Sent: Tuesday, June 11, 2002 10:19 AM > > To: Martin Towell > > Subject: Re: [PHP] URL / slash reduction > > > > > > no it must be a bether url of: > > > > http://tuned-belgium.com/user/?id=Junni > > > > wana get rid of the ?id= > > > > > > --- --- --- --- --- --- > > Connecting Tuners @ http://www.Tuned-Belgium.com > > Xbox talk @ http://www.X-power.be > > Gamecube @ http://www.cube-power.be > > > > - Original Message - > > From: "Martin Towell" <[EMAIL PROTECTED]> > > To: "'YLA G - X-power.be'" <[EMAIL PROTECTED]> > > Sent: Tuesday, June 11, 2002 2:11 AM > > Subject: RE: [PHP] URL / slash reduction > > > > > > > This is, hopefully, a silly question - are you sure it's "id" you're > after > > > and not "uname"? > > > > > > In both urls you have "uname" being passed in and not "id". > > > > > > -Original Message- > > > From: YLA G - X-power.be [mailto:[EMAIL PROTECTED]] > > > Sent: Tuesday, June 11, 2002 10:11 AM > > > To: Martin Towell > > > Subject: Re: [PHP] URL / slash reduction > > > > > > > > > ok error gone but ID is empty now.. > > > > > > sugestions > > > > > > thx for your help! > > > > > > --- --- --- --- --- --- > > > Connecting Tuners @ http://www.Tuned-Belgium.com > > > Xbox talk @ http://www.X-power.be > > > Gamecube @ http://www.cube-power.be > > > > > > - Original Message - > > > From: "Martin Towell" <[EMAIL PROTECTED]> > > > To: "'X-power.be'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> > > > Sent: Tuesday, June 11, 2002 2:06 AM > > > Subject: RE: [PHP] URL / slash reduction > > > > > > > > > > it's because you've got single quotes inside single quotes... > > > > change $_GET['id'] > > > >
Re: [PHP] URL / slash reduction
sorry now was i my short nickname its http://user.tuned-belgium.be/yla%20G --- --- --- --- --- --- Connecting Tuners @ http://www.Tuned-Belgium.com Xbox talk @ http://www.X-power.be Gamecube @ http://www.cube-power.be - Original Message - From: "YLA G - X-power.be" <[EMAIL PROTECTED]> To: "Martin Towell" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Tuesday, June 11, 2002 2:49 AM Subject: Re: [PHP] URL / slash reduction > :) :) great help thx mate!!! > > > now can everyone create a account with a userpage!! > > look at MY car: http://user.tuned-belgium.be/yla > > look at the beatyyy > > > greetz > > --- --- --- --- --- --- > Connecting Tuners @ http://www.Tuned-Belgium.com > Xbox talk @ http://www.X-power.be > Gamecube @ http://www.cube-power.be > > - Original Message - > From: "Martin Towell" <[EMAIL PROTECTED]> > To: "'YLA G - X-power.be'" <[EMAIL PROTECTED]> > Sent: Tuesday, June 11, 2002 2:42 AM > Subject: RE: [PHP] URL / slash reduction > > > > let's start from scratch: > > > > in coming url: http://www.tuned-belgium.com/user/?id=/nickname > > needs to be: > > > http://tuned-belgium.com/main/modules.php?name=user&op=userinfo&uname=nickna > > me > > > > > $ndx = strrpos($REQUEST_URI, "/"); > > $uname = substr($REQUEST_URI, $ndx + 1); > > $url = > > "http://tuned-belgium.com/main/modules.php?name=user&op=userinfo&uname="; . > > $uname; > > ?> > > > > how about that - I haven't tested it > > > > -Original Message- > > From: YLA G - X-power.be [mailto:[EMAIL PROTECTED]] > > Sent: Tuesday, June 11, 2002 10:39 AM > > To: Martin Towell > > Subject: Re: [PHP] URL / slash reduction > > > > > > i did this now: > > > > > $url = > > > str_replace('?id=/','?id=','http://www.tuned-belgium.com/user/?id=/'.$_GET[' > > id']); > > ?> > > http://tuned-belgium.com/main/modules.php?name=user&op=userinfo&uname= > print $url ?>"> > > > > now i getting the full url http://www.tuned-belgium.com/user/?id=/junni as > > the nickname (with the slash to) > > > > > > --- --- --- --- --- --- > > Connecting Tuners @ http://www.Tuned-Belgium.com > > Xbox talk @ http://www.X-power.be > > Gamecube @ http://www.cube-power.be > > > > - Original Message - > > From: "Martin Towell" <[EMAIL PROTECTED]> > > To: "'YLA G - X-power.be'" <[EMAIL PROTECTED]> > > Sent: Tuesday, June 11, 2002 2:32 AM > > Subject: RE: [PHP] URL / slash reduction > > > > > > > John Holmes just reminded me that variables inside single quotes don't > get > > > evaluated... > > > > > > so try this instead > > > > > > > > > str_replace('?id=/','?id=','http://www.tuned-belgium.com/user/?id=/'.$_GET[' > > > id']); > > > > > > -Original Message- > > > From: YLA G - X-power.be [mailto:[EMAIL PROTECTED]] > > > Sent: Tuesday, June 11, 2002 10:19 AM > > > To: Martin Towell > > > Subject: Re: [PHP] URL / slash reduction > > > > > > > > > no it must be a bether url of: > > > > > > http://tuned-belgium.com/user/?id=Junni > > > > > > wana get rid of the ?id= > > > > > > > > > --- --- --- --- --- --- > > > Connecting Tuners @ http://www.Tuned-Belgium.com > > > Xbox talk @ http://www.X-power.be > > > Gamecube @ http://www.cube-power.be > > > > > > - Original Message - > > > From: "Martin Towell" <[EMAIL PROTECTED]> > > > To: "'YLA G - X-power.be'" <[EMAIL PROTECTED]> > > > Sent: Tuesday, June 11, 2002 2:11 AM > > > Subject: RE: [PHP] URL / slash reduction > > > > > > > > > > This is, hopefully, a silly question - are you sure it's "id" you're > > after > > > > and not "uname"? > > > > > > > > In both urls you have "uname" being passed in and not "id". > > > > > > > > -Original Message- > > > > From: YLA G - X-power.be [mailto:[EMAIL PROTEC
RE: [PHP] SESSIONS in javascript
might be a solution: don't use a javascript includepage, instead use the "inline code" method in a php.includefile, something like this include "javascript.inc"; where the javascript.inc (js.inc, js.php, javascript.php - your name, your choice) contains <!-- hide code // javascript code and functions function exampleFuncWithPHPSess() { var=<?$Session["thingie"];?>; } //-- end hiding --> the code would then appear "inline" in the php-file put out by the server (to the client), but you could still have it in a separate file.. and you get to use php sessions. Note: I'm new myself to php, so this might be a no-go, but i've done it with asp, and it's worked in the past.. /morpheo --- --- --- --- --- --- --- --- --- --- --- --- --- --- Alfonso Orion X Allende | [EMAIL PROTECTED] Interface Developer | Kasuar Form & Funktion http://www.allende.nu/ --- --- --- --- --- --- --- --- --- --- --- --- --- --- -Original Message- From: Morten Nielsen [mailto:[EMAIL PROTECTED]] Sent: den 10 april 2002 22:31 To: [EMAIL PROTECTED] Subject: [PHP] SESSIONS in javascript Hi, I got a PHP page where I define a SESSION. I then include a javascript page where I would like to use the value which is stored in the SESSION. The problem is that the php tags doesn't work in javascript. Can anyone tell me how to do that? Regards, Morten -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] session data vs cookie data
On Wed, 30 Jan 2002, Michael Kimsal wrote: > > a cookie. So I always store the IP, HTTP_X_FORWARD and USER_AGENT in the > Do you null the user if the IP changes? IPs can change during a user's > session, so I wouldn't base the validity of the session solely based on IP. Also, sometimes there are issues with caches (despite of the HTTP_X_FORWARD)... Regards. -- PHP General Mailing List (http://www.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] rename failes if file name contains single quotes
when i try to rename a file with single quote(s) in the (Bfile name, e.g. (B (Brename("/tmp/foo 'n bar", "/tmp/foobar"); (B (Brename fails with "there is no such file". (Bwhats wrong? (B (Bthanx, (B (Bakagisan (B (B__ (BDo You Yahoo!? (BYahoo! BB is Broadband by Yahoo! http://bb.yahoo.co.jp/ (B (B (B-- (BPHP General Mailing List (http://www.php.net/) (BTo unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP httpd debug question
Hello, phpMyAdmin crashes when access is attempted each time, and I need to run an httpd backtrace. I have a question though. There is another httpd instance running on the same host. If I run httpd -X will it interfere with the other httpd process running, or will it be a separate process? Thanks -John
RE: [PHP] PHP httpd debug question
Hi Devendra That’s sounds like what I’m looking for. I don’t want to interfere with the current httpd process serving content while running the debug. Thanks -John From: Devendra Jadhav [mailto:devendra...@gmail.com] Sent: Tuesday, November 17, 2009 5:57 AM To: John Beaulaurier -X (jbeaulau - Advanced Network Info at Cisco) Cc: php-general@lists.php.net Subject: Re: [PHP] PHP httpd debug question Hi, I am not getting what are you asking but if you want to run two httpd then you have to run those on different ports. For this you can change "Listen 80" to "Listen 2020" from httpd.conf file. So that one server will run on 80 and other will run on 2020. you can change 2020 to whatever port you want .. but check if that port is not already assigned to some other application. On Tue, Nov 17, 2009 at 5:35 AM, John Beaulaurier -X (jbeaulau - Advanced Network Info at Cisco) wrote: Hello, phpMyAdmin crashes when access is attempted each time, and I need to run an httpd backtrace. I have a question though. There is another httpd instance running on the same host. If I run httpd -X will it interfere with the other httpd process running, or will it be a separate process? Thanks -John -- Devendra Jadhav देवेंद्र जाधव