Re: [PHP] _POST _GET
Basically your form is going to use one or the other you might be able to do this... form action=file.php?op=submit method=post name=someform /form Then you can use _GET to get the op=submit and use _POST for the form... never tried so i do not know...but in theory it should work... On Mon, 2002-11-11 at 19:26, GC wrote: Hi- Can I use both _GET and _POST in the same php file? Thanks!! -Greg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- .: B i g D o g :. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Mcrypt Under IIS 5 / Win32?
You need to uncomment the dll in the php.ini file...do a search for it and then uncomment it or add it to the php.ini file... That will load it... *Note: i would add that directory to your path that contains the mcrypt dll or all dlls for php and the extension directory to... On Mon, 2002-11-11 at 19:42, Nick Richardson wrote: Yes, there is a DLL for it, but getting PHP to know it is there is where I'm having the problem - I dont know how to get PHP to under windows to do the equivalent of --with-mcrypt in configure under linux. - maybe I havn't registered the mcrypt dll's correctly or something like that... But I just can't get it to work. Everytime I try to do it I get 'call to undefined function . ' //Nick -Original Message- From: .: B i g D o g :. [mailto:bigdog;venticon.com] Sent: Monday, November 11, 2002 4:37 AM To: Nick Richardson Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: [PHP] Mcrypt Under IIS 5 / Win32? is there not a dll for mcrypt? On Mon, 2002-11-11 at 19:34, Nick Richardson wrote: I asked this before, but didn't get a response. Anyone out there have any experience a/o know where I can find information on getting the mcrypt functionality to work under Win32 - I have found a port of mcrypt for Win32, and also learned that you can compile it using cygwin - but I dont know how to register mcrypt w/ PHP and 'turn on' the mcrypt* functions. If anyone has any information or urls / how-tos it would be greatly appreciated! Thanks! //Nick Richardson // [EMAIL PROTECTED] --- Outgoing mail is certified Virus Free. Can McAfee do that? - Hell NO! Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.408 / Virus Database: 230 - Release Date: 10/24/2002 -- .: B i g D o g :. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php --- Outgoing mail is certified Virus Free. Can McAfee do that? - Hell NO! Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.408 / Virus Database: 230 - Release Date: 10/24/2002 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- .: B i g D o g :. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Mcrypt Under IIS 5 / Win32?
is there not a dll for mcrypt? On Mon, 2002-11-11 at 19:34, Nick Richardson wrote: I asked this before, but didn't get a response. Anyone out there have any experience a/o know where I can find information on getting the mcrypt functionality to work under Win32 - I have found a port of mcrypt for Win32, and also learned that you can compile it using cygwin - but I dont know how to register mcrypt w/ PHP and 'turn on' the mcrypt* functions. If anyone has any information or urls / how-tos it would be greatly appreciated! Thanks! //Nick Richardson // [EMAIL PROTECTED] --- Outgoing mail is certified Virus Free. Can McAfee do that? - Hell NO! Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.408 / Virus Database: 230 - Release Date: 10/24/2002 -- .: B i g D o g :. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] problem compiling php
i would always make sure you check the manuals for the information first... http://www.php.net/manual/en/install.apache.php On Fri, 2002-11-08 at 16:52, dk1eng wrote: hi there again, here's the problem: I compiled apache using --enable-modules=so What do i need to do now in order to compile and install php on my machine? Furthermore, how do i add mysql support to apache? Is there a --with-mysql switch? Kind regards, dimitris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- .: B i g D o g :. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] php/html debug
I have used nusphere PHPEd and it works okay...but i do not know what you are really trying to do here... On Fri, 2002-11-08 at 16:31, Anna Gyor wrote: Hi, is there any software on the market with I can test my html/php based web portal? I mean for example the data flow between html forms and php files/scripts. For Example a login form on html site and a check with an other php site and I want begin the test on the html site and check weather the right values goes to the php script. Thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- .: B i g D o g :. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] For ... = max($myArray) vs For ... = $max
Then only problem with doing it like for($x = 1, $max = count($myArray); $x = $max; $x++ ) is that the $max = count( $myArray ) is always verified in each loop...slowing the for loop down... faster to do $max = count( $myArray ); for( $x = 1, $x = $max; $x++ ) just my $0.02...for the day... On Fri, 2002-11-08 at 15:57, Kjartan Mannes wrote: Friday, November 8, 2002, 12:13:01 PM, Daevid Vincent wrote: $max = max($myArray); for( $x = 1; $x = $length; $x++ ) {} -- OR -- for( $x = 1; $x = max($myArray); $x++ ) {} My gut instinct tells me since PHP is interpreted, that the top one is the better way to go, but with the Zend Optimizer, I don't know if PHP handles them the same way or not? The first one is faster, but it depends on the site of the array and how often you call the loop. I prefer doing it like this though: for($x = 1, $max = count($myArray); $x = $max; $x++ ) {} For some good optimization (and other) tips check out: http://phplens.com/lens/php-book/optimizing-debugging-php.php http://www.lerdorf.com/tips.pdf -- Kjartan [EMAIL PROTECTED] (http://natrak.net/) :: Silence is one great art of conversation. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- .: B i g D o g :. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] LDAP + Exchange
Yes, what are you looking for... On Fri, 2002-11-08 at 19:58, Raceeend wrote: Hello, Has anybody tried to connect to Exchange via LDAP? Because i would like some examples of this. kind regards, Martijn -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- .: B i g D o g :. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] For ... = max($myArray) vs For ... = $max
Sorry bro, was thinking that in the initialization section that it would run the count again, but that is not the case... $max is initialized first and never looked at again during the for loop... On Fri, 2002-11-08 at 19:00, Marek Kilimajer wrote: If you reed the code carefully, it first assigns $x=1 and $max=count($myArray), then it compares $x with $max .: B i g D o g :. wrote: Then only problem with doing it like for($x = 1, $max = count($myArray); $x = $max; $x++ ) is that the $max = count( $myArray ) is always verified in each loop...slowing the for loop down... faster to do $max = count( $myArray ); for( $x = 1, $x = $max; $x++ ) just my $0.02...for the day... On Fri, 2002-11-08 at 15:57, Kjartan Mannes wrote: Friday, November 8, 2002, 12:13:01 PM, Daevid Vincent wrote: $max = max($myArray); for( $x = 1; $x = $length; $x++ ) {} -- OR -- for( $x = 1; $x = max($myArray); $x++ ) {} My gut instinct tells me since PHP is interpreted, that the top one is the better way to go, but with the Zend Optimizer, I don't know if PHP handles them the same way or not? The first one is faster, but it depends on the site of the array and how often you call the loop. I prefer doing it like this though: for($x = 1, $max = count($myArray); $x = $max; $x++ ) {} For some good optimization (and other) tips check out: http://phplens.com/lens/php-book/optimizing-debugging-php.php http://www.lerdorf.com/tips.pdf -- Kjartan [EMAIL PROTECTED] (http://natrak.net/) :: Silence is one great art of conversation. -- 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 -- .: B i g D o g :. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] LDAP + Exchange
I followed the instructions for ldap used the windows nt username and password to bind to the exchange ldap server. Then you can allow them to change their attributes...i have never done this, there are some serious risks to exchange if you do this... On Fri, 2002-11-08 at 20:39, Raceeend wrote: Well i need to give some users access to user attributes of exchange to change these. .: B I G D O G :. wrote: Yes, what are you looking for... On Fri, 2002-11-08 at 19:58, Raceeend wrote: Hello, Has anybody tried to connect to Exchange via LDAP? Because i would like some examples of this. kind regards, Martijn -- 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 -- .: B i g D o g :. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] LDAP + Exchange
That is the truth...i cant even imagine allowing user to edit information on the exchange server...its so vulnerable anyways... I highly recommend that you DO NOT allow users to edit info on your exchange server... On Fri, 2002-11-08 at 20:36, Marco Tabini wrote: i have never done this, there are some serious risks to exchange if you do this... Yea, it's dangerous to let Microsoft software come into contact with something that actually works... :-) Sorry, had to come up with my stupid joke of the day. From: .: B i g D o g :. [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: [PHP] LDAP + Exchange Date: 08 Nov 2002 13:41:33 + I followed the instructions for ldap used the windows nt username and password to bind to the exchange ldap server. Then you can allow them to change their attributes...i have never done this, there are some serious risks to exchange if you do this... On Fri, 2002-11-08 at 20:39, Raceeend wrote: Well i need to give some users access to user attributes of exchange to change these. .: B I G D O G :. wrote: Yes, what are you looking for... On Fri, 2002-11-08 at 19:58, Raceeend wrote: Hello, Has anybody tried to connect to Exchange via LDAP? Because i would like some examples of this. kind regards, Martijn -- 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 -- .: B i g D o g :. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- .: B i g D o g :. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] regular expression and exact word search...
Which functions are you using to do the regex stuff... That might help...also check out... On Thu, 2002-11-07 at 15:42, BAROILLER Pierre-Emmanuel wrote: Hi! does someone know how to find an exact word in a content with html tags ? I'm using a regexp like this : $searchRegEx = '\b.$word_search.\b'msi; to get boundary word results, but... if the searched word is like 'word or word. or anything else, the regular expression doesn't work.. if I remove the \b , I've got all words ( but without bound...) Any idea? (the big problem is I'm higlighting found sentences, and .. if the searched word is part of an html tag, it's very auwfull... ) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- .: B i g D o g :. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] regular expression and exact word search...
This should help u out... http://www.php.net/manual/en/pcre.pattern.modifiers.php On Thu, 2002-11-07 at 18:29, BAROILLER Pierre-Emmanuel wrote: I work with preg_match_all to get all matching words and preg_replace_callback to replace found sentences... before runing the php pass, I take results from a mysql table with a query like this : select * from mytable where content REGEXP '[[::]]theword[[::]] But... I can't get all entry where words is in... .: B I G D O G :. [EMAIL PROTECTED] a écrit dans le message de news: [EMAIL PROTECTED] Which functions are you using to do the regex stuff... That might help...also check out... On Thu, 2002-11-07 at 15:42, BAROILLER Pierre-Emmanuel wrote: Hi! does someone know how to find an exact word in a content with html tags ? I'm using a regexp like this : $searchRegEx = '\b.$word_search.\b'msi; to get boundary word results, but... if the searched word is like 'word or word. or anything else, the regular expression doesn't work.. if I remove the \b , I've got all words ( but without bound...) Any idea? (the big problem is I'm higlighting found sentences, and .. if the searched word is part of an html tag, it's very auwfull... ) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- .: B i g D o g :. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- .: B i g D o g :. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] publishing php mysql website on cd-rom
This is where xml and xsl come in handy...you could have all the pages outputed to xml format and then use xslt to transform to html. Then you could do it all on the fly, and each month create a new cd with all the html files... On Thu, 2002-11-07 at 18:29, Roger Lewis wrote: Personally, I like the idea of a static site. I have a dynamic, database-driven site that handles documentation for an engineering project. When the project is over, I would like to archive the entire site, including the database and all document directories, onto a static, html-only, CD. Has anyone done this? Can it be done other than by separately displaying and saving each page as an html page, and then manually creating the links? Roger Lewis On Wednesday, November 06, 2002 1:51 AM, BigDog replied To: ROBERT MCPEAK BD That is going to be very hard to do...you might want to look at doing it BD all static...however, what are u going to do about the database BD connections... BD IMHO, i would take the php site and make it static and then put it on a BD CD-ROM...it might be out of date, however, it might be the fastest way BD for ya. BD Do you want them to access your site from the CD-ROM pages? BD You could create special pages on your site that the CD-ROM pages call. BD But that would require the user of the disc to have internet access. BD But running PHP from a cd-rom will probably not work unless you are BD doing some commandline cgi stuff...and i dont even want to think how BD that would work for ya... BD i would probably do something where static html pages pull data from BD your site... BD HTH... On Wed, 2002-11-06 at 16:44, ROBERT MCPEAK wrote: My organization has a need to publish some of our web content on a CD-ROM. I'm in search of suggestions on how to publish our dynamic content (php/mysql templates) in some sort of runtime configuration that would let users browse the site from cd. What's involved with this? Is there such a thing as runtime mySQL? What would it take to serve PHP from a CD? Help! I don't know where to begin and am looking for advice. Thanks, Bob -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- .: B i g D o g :. -- 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 -- .: B i g D o g :. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] specifying different port for db connections
Not a big mssql guy but if i remember correctly that should be set in your interfaces file...but a valid server name should be used and that is checked in the interfaces file... On Thu, 2002-11-07 at 20:12, heath boutwell wrote: Attempting to access remote db (SQL Server) how do you specify the port? I've tried everything in the hostname paramater of mssql_connect but nothing seems to work. ie none of the following: MSSQL_CONNECT(192.168.10.1,2461,$username,$password) or DIE(DATABASE FAILED TO RESPOND.); or MSSQL_CONNECT(192.168.10.1:2461,$username,$password) or DIE(DATABASE FAILED TO RESPOND.); or MSSQL_CONNECT(192.168.10.1;2461,$username,$password) or DIE(DATABASE FAILED TO RESPOND.); Thanks __ Do you Yahoo!? U2 on LAUNCH - Exclusive greatest hits videos http://launch.yahoo.com/u2 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- .: B i g D o g :. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Getting Newest
Why cant u do a query with some subselects and verify the date from each one or do three queryies for the newest one and then compare them with each other... Should be relatively simple... However, it would be better if the date where a timestamp...MHO On Wed, 2002-11-06 at 21:10, Stephen wrote: I have three tables with certain content in each that's added almost daily. I want to get the most recent, out of those three tables, and then display it. How would I do that without changing the structure of my tables? (My current structure is this: id, date, name, text) Thanks, Stephen Craton http://www.melchior.us Life is a gift from God. Wasting it is like destroying your favorite item you received from the person you love most. -- www.melchior.us -- .: B i g D o g :. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] php
If you compiled php with apache then you need to restart apache (DSO)...if you compiled php into apache as a module that is not dynamic then you need to recompile apache with the new php... Most likely you are using php as a DSO and all you need to do is restart apache... On Thu, 2002-11-07 at 21:02, dk1eng wrote: hi there, I just compiled a new version of php. How do i tell apache to stop using my old version and start using the new one? peace dimitris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- .: B i g D o g :. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] php
It depends if you are compiling php as a DSO for apache...then no you just restart apache... if php is not a DSO then yes u need to recompile php... On Thu, 2002-11-07 at 21:10, dk1eng wrote: i'm in a fresh install of redhat 8 and downloaded and compiled php4.2.3. Do i need to recompile apache? and if yes how? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- .: B i g D o g :. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] specifying different port for db connections
Actually the remote file is used if you are trying to connect to a remote system. Sybase uses remote files and that is how it works...i know oracle does a similar way of connecting... IMHO, i would look into the interface file and change it there... On Thu, 2002-11-07 at 21:55, heath boutwell wrote: --- .: B i g D o g :. [EMAIL PROTECTED] wrote: Not a big mssql guy but if i remember correctly that should be set in your interfaces file...but a valid server name should be used and that is checked in the interfaces file... I think the interfaces file is only used if you are accessing sql server from the same machine. In this case, I am attempting to connect remotely. Hard to believe that changing the connection port would be such a mystery but nothing I've read or tried seems to work. Thanks __ Do you Yahoo!? U2 on LAUNCH - Exclusive greatest hits videos http://launch.yahoo.com/u2 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- .: B i g D o g :. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] publishing php mysql website on cd-rom
You can do a search on google for php and xml and xslt...i wrote a series of articles on it at phpbeginner.com http://www.phpbeginner.com/columns/ray/xml that should get you started... On Thu, 2002-11-07 at 22:26, Roger Lewis wrote: This sounds pretty good, but I know absolutely nothing about xml or xsl. Any literature, articles, links, or other resources you know of that could point me in the right direction. This would be worth researching. Roger -Original Message- From: .: B i g D o g :. [mailto:bigdog;venticon.com] Sent: Thursday, November 07, 2002 5:15 AM To: Roger Lewis Cc: [EMAIL PROTECTED] Subject: RE: [PHP] publishing php mysql website on cd-rom This is where xml and xsl come in handy...you could have all the pages outputed to xml format and then use xslt to transform to html. Then you could do it all on the fly, and each month create a new cd with all the html files... On Thu, 2002-11-07 at 18:29, Roger Lewis wrote: Personally, I like the idea of a static site. I have a dynamic, database-driven site that handles documentation for an engineering project. When the project is over, I would like to archive the entire site, including the database and all document directories, onto a static, html-only, CD. Has anyone done this? Can it be done other than by separately displaying and saving each page as an html page, and then manually creating the links? Roger Lewis On Wednesday, November 06, 2002 1:51 AM, BigDog replied To: ROBERT MCPEAK BD That is going to be very hard to do...you might want to look at doing it BD all static...however, what are u going to do about the database BD connections... BD IMHO, i would take the php site and make it static and then put it on a BD CD-ROM...it might be out of date, however, it might be the fastest way BD for ya. BD Do you want them to access your site from the CD-ROM pages? BD You could create special pages on your site that the CD-ROM pages call. BD But that would require the user of the disc to have internet access. BD But running PHP from a cd-rom will probably not work unless you are BD doing some commandline cgi stuff...and i dont even want to think how BD that would work for ya... BD i would probably do something where static html pages pull data from BD your site... BD HTH... On Wed, 2002-11-06 at 16:44, ROBERT MCPEAK wrote: My organization has a need to publish some of our web content on a CD-ROM. I'm in search of suggestions on how to publish our dynamic content (php/mysql templates) in some sort of runtime configuration that would let users browse the site from cd. What's involved with this? Is there such a thing as runtime mySQL? What would it take to serve PHP from a CD? Help! I don't know where to begin and am looking for advice. Thanks, Bob -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- .: B i g D o g :. -- 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 -- .: B i g D o g :. -- .: B i g D o g :. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Listing a few words from one sentence ??
perl regex to find the ones you want and then print them out... or you could explode then string and put each word in to one array and access the word by the array index... Example: $words = explode( , $sentence ); for( $i = 0; $i 4; $i++ ) { echo {$words[$i]}; } On Thu, 2002-11-07 at 22:29, conbud wrote: Say I have a sentence that contains 8 words, how do I get PHP to list just 4 of those 8 words ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- .: B i g D o g :. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] specifying different port for db connections
Which database are you using? MSSQL is what you said in your first email... Here is the information from php: Description int mssql_connect ( [string servername [, string username [, string password]]]) Returns: A positive MS SQL link identifier on success, or FALSE on error. mssql_connect() establishes a connection to a MS SQL server. The servername argument has to be a valid servername that is defined in the 'interfaces' file. -- this is what i am referring too In case a second call is made to mssql_connect() with the same arguments, no new link will be established, but instead, the link identifier of the already opened link will be returned. On Thu, 2002-11-07 at 23:02, heath boutwell wrote: --- .: B i g D o g :. [EMAIL PROTECTED] wrote: Actually the remote file is used if you are trying to connect to a remote system. Sybase uses remote files and that is how it works...i know oracle does a similar way of connecting... IMHO, i would look into the interface file and change it there... There is no interface file on the system utilizing php. Using MySQL, you can set the mysql.default_port configuration option to specify the port you wish mysql_connect to use. There should be a way to do this in the via the host paramater in the connection string. Thanks __ Do you Yahoo!? U2 on LAUNCH - Exclusive greatest hits videos http://launch.yahoo.com/u2 -- .: B i g D o g :. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] How-to instal GD libary
You need to download the php-version.zip file that contains all of the extensions in it... there is the php_gd.dll and php_gd2.dll that you will need to put in your path... Then in your php.ini file you need to uncomment that dll out so that it can be loaded by php... On Thu, 2002-11-07 at 23:08, Davy Obdam wrote: Hi people,. Can anyone tell me how to install the GD libary. I use Apache 2.0.40 and PHP 4.2.3 on a windows XP machine at home. Thanks already Best regards, Davy Obdam mailto:info;davyobdam.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- .: B i g D o g :. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] How-to instal GD libary
Is c:\program files\PHP\extensions in your path... if not then i would add it...also make sure to edit your php.ini file so that it loads when php is fired up... On Thu, 2002-11-07 at 23:20, Davy Obdam wrote: Hi B i g D o g , You need to download the php-version.zip file that contains all of the extensions in it... Yep i have installed PHP as a apache module(SAPI) there is the php_gd.dll and php_gd2.dll that you will need to put in your path... Where do i move the php_gd.dll and php_gd2.dll files to? There now in C:\Program Files\PHP\extensions. Is that right? I gues not because i get an error if i try this. Do i need copy these files to another directory? Then in your php.ini file you need to uncomment that dll out so that it can be loaded by php... Thanks for your help;-) Best regards, Davy Obdam mailto:info;davyobdam.com -- .: B i g D o g :. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] publishing php mysql website on cd-rom
That is going to be very hard to do...you might want to look at doing it all static...however, what are u going to do about the database connections... IMHO, i would take the php site and make it static and then put it on a CD-ROM...it might be out of date, however, it might be the fastest way for ya. Do you want them to access your site from the CD-ROM pages? You could create special pages on your site that the CD-ROM pages call. But that would require the user of the disc to have internet access. But running PHP from a cd-rom will probably not work unless you are doing some commandline cgi stuff...and i dont even want to think how that would work for ya... i would probably do something where static html pages pull data from your site... HTH... On Wed, 2002-11-06 at 16:44, ROBERT MCPEAK wrote: My organization has a need to publish some of our web content on a CD-ROM. I'm in search of suggestions on how to publish our dynamic content (php/mysql templates) in some sort of runtime configuration that would let users browse the site from cd. What's involved with this? Is there such a thing as runtime mySQL? What would it take to serve PHP from a CD? Help! I don't know where to begin and am looking for advice. Thanks, Bob -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- .: B i g D o g :. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] array()
Try this... $test_arr = test_func( $param1, $param2 ) echo $test_arr; On Tue, 2002-11-05 at 18:01, Francisco Vaucher wrote: Hi people, is there a way to retrieve an array from a function ? like: ?php test_func($param1, $param2) { //code $test = array (ASD = Test1, ASDF = Test2); return $test; } //outiside de function echo $test; // - the array ? This doesn't work. So, any clue ? Regards and tks in advance! f. -- .: B i g D o g :. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] uploading an image in binar
What is your form tag like... try form action=somefile enctype=multipart/form-data method=somemethod On Tue, 2002-11-05 at 18:08, drparker wrote: I'm having trouble with a script to upload images, which is baffling me because a similar script has worked fine on other occasions. I can get the image file uploaded to the correct directory, but it is uploading in ASCII and I obviously need it in binary. The file name on the form is like this: input type=file name=add_imgthumb then the code on the php script looks like this: $uploadpath = 'path/images/'; $source = $_FILES['add_imgthumb']['tmp_name']; $name = $_FILES['add_imgthumb']['name']; $dest = $uploadpath.$name; copy($source, $dest); simple, i know, but that's the way i want it. What do I have to do to get the image to be uploaded in binary? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- .: B i g D o g :. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] LIKE condition in query
I am not up on my MS Access database sql but i would check to see if ms access supports the like condition in the where clause... On Tue, 2002-11-05 at 18:49, Don Hicks wrote: I'm writing an SQL query in a php 4.0 script. The query pulls data from an MS Access '97 database through an ODBC connection. I'm having difficulties creating a condition using LIKE. If I write the following expression, the query works: $Query= SELECT FieldName1, FieldName2 FROM TableName WHERE FieldName1 = '$CriterionRecord' ; But, if I change the Where statement from = to LIKE, the query no longer works, and I can't figure out why. (Could it be punctuation?) Here's an example: $Query= SELECT FieldName1, FieldName2 FROM TableName WHERE FieldName1 LIKE '$CriterionRecord' ; The criterion record is actually chosen in another form and passed through to this script. The criterion record may be a complete record, or it may be a partial record with a wildcard, but the LIKE script is not working in either case. Does anyone have any experience with this they could share with me? Sincerely, Don Hicks Portland, OR -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- .: B i g D o g :. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] session cache limiter
Show some code so we can see what seems to be the problem... From the error you are trying to send header information when it has already been sent. You might want to check on that and make sure your sessions are started correctly... On Tue, 2002-11-05 at 19:34, ROBERT MCPEAK wrote: Could somebody shed some light on this error message I'm getting. Could you point me at the appropriate docs or clue me in somehow. PHP Warning: Cannot send session cache limiter - headers already sent (output started at /usr/local/httpd/htdocs/mmc/results.php:79) in /usr/local/httpd/htdocs/mmc/includes/display_options.php on line 115 Thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- .: B i g D o g :. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Trouble with php-4.2.3, apache-1.3.27, sablotron 0.96
Try specifying the sablot installation directory in the configuration --with-xslt-sablot=/some/dir On Wed, 2002-11-06 at 04:50, Evan Nemerson wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I'm trying to get XSLT working with PHP, and after slowly working my way through several other problems, I've found one that I can't figure out. Software: PHP 4.2.3 Apache 1.3.27 Sablotron 0.96 GCC 3.2 Linux 2.4.19-lsm1 ./configure \ - --enable-xml \ - --enable-xslt \ - --enable-ftp \ - --enable-sockets \ - --enable-pcntl \ - --with-apxs=/usr/local/apache/bin/apxs \ - --with-xslt-sablot \ make \ sudo make install Everything seems to work fine (except for a lot of cc1: warning: changing search order for system directory /usr/local/include cc1: warning: as it has already been specified as a non-system directory 's that appear when using gcc-3.2), but when I try to /usr/local/apache/bin/apachectl restart, I get this: Syntax error on line 205 of /usr/local/apache/conf/httpd.conf: Cannot load /usr/local/apache/libexec/libphp4.so into server: /usr/local/lib/libsablot.so.0: undefined symbol: __gxx_personality_v0 /usr/local/apache/bin/apachectl start: httpd could not be started Any ideas??? -BEGIN PGP SIGNATURE- Version: GnuPG v1.0.7 (GNU/Linux) iD8DBQE9yJ/J/rncFku1MdIRAkhnAKClykcWMUwiWbslAYklx3xm1qsjSQCdFAXh roJ+kMyayqdY1UXxL6S5xuQ= =1Zaw -END PGP SIGNATURE- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- .: B i g D o g :. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Re: PHP XML
I am all for the power of XML, another benefit is the ability to have many themes for your viewer. Plus, if you are writing a CMS or portal of some sort you can have your users create their own themes without ever touching the data layers. They just need to create some XSLT pages and that is it. Another benefit is RSS and allowing users to pull information from your website. Heaven knows that u want your users to frequent ur website. So you can allow them to pull info directly. Also a great way to incorporate a cacheing system as well. On Wed, 2002-10-16 at 00:35, Simon Taylor wrote: To me this is a lot of work and processing for limited benefits, a simple db abstraction layer provides you with a divide between you db queries and the presentation of your site, what benefits do you see in doing this? Cheers Simon -Original Message- From: Alexandru COSTIN [mailto:[EMAIL PROTECTED]] Sent: 15 October 2002 18:50 To: [EMAIL PROTECTED] Subject: [PHP] Re: PHP XML Hello, Most of what you are looking for is already implemented and fully working in our Krysalis Professional platform. We help you create dynamic XML files, we provide you reusable taglibs to avoid rewriting similar code multiple times, wr provide various levels of caching and many more. Please se more details at : http://www.interakt.ro/products/ Alexandru Let me preface this by saying that I know the benefits of using XML with regards to portability and extensibility. Here is the issue I face. I have all of my data stored in a MySQL database. I'm considering reworking my website so that it uses XML (after being converted from resultant records in my DB) to transmit XSLT to transform and display the data to my end user. There are a few benifits I can see in sending XML messages as part of the back end processing. However, that seems to be out- weighed by the amount of processing that's going to need to take place in actually serving the data to the user. First I have to query and pull the records from the database. Then, I need to send those records to a function (or functions) to convert it to XML. Then, I need to take that XML data and have PHP use an XSL stylesheet to transform it to HTML before it, finally, gets sent on to the browser. So that's basically 2 conversions that take place on the back end. How much experience have any of you had with doing that? Does it take significantly longer to serve the pages; is there a noticible performance hit? Do you realize more benifit for the back end processes when using XML that makes any additional time it takes to display a page to the user worth it? I'd love to hear about people's experience with this kind of thing so I can better make a decision wrt whether or not I should even go down this route. thnx, Chris -- 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 -- .: B i g D o g :. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Warning: Failed to write session data ?
When u click on the submit button then u are redirected to the action page. So on this action page you might need to put the session information there. Where is the action page located? (on which server). The problem seems to be that you have 2 sessions. One session in each frame. Idea: You might want to look into to do session handling across mulitple domains. On Wed, 2002-10-16 at 11:45, Jan Grafström wrote: Hi, I get this message when I load my webshopsite into a frame on onother server but not until I press a form button: Warning: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/apachefs/sessions) in Unknown on line 0 I can´t change settings on my webhost. If I load another page first wich start the session and sets a sessionvar, it works fine. Is there a way to workaround this problem. I use input type =hidden name=PHPSESSID value=echo $PHPSESSID.to pass the session in my form. I also noticed that You can´t view source of this frame loaded from another server. I have my mainsite on one server and shopsite on another. Thanks in advance for any help. -- Regards, Jan Grafström Sweden -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- .: B i g D o g :. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PhpMyAdmin Help Needed
What web server are u using? If you are using apache you need to make sure you have the user directive set up properly for this. Plus, in the user directory u need to have the appropriate directory too. By default apache has it set to look for public_html... So in the user directory you would have ~username/public_html On Wed, 2002-10-16 at 16:08, Pushpinder Singh Garcha wrote: Hi I am wanting to use PhpMyAdmin for my project . I am developing using PHP and MySQl and the OS is Jaguar I have downloaded the latest version of phpmyadmin and have made necessary changes in the 'config.inc.php' file When I try to access PhpMyAdmin using http://localhost/~pgarcha/phpmyadmin/index.php; I get the folowing error Not Found The requested URL /~pgarcha/phpmyadmin/index.php was not found on this server. Apache/1.3.26 Server at pushpinder-garchas-computer.local Port 80 This is the list of things that I have changed: 1). $cfg['PmaAbsoluteUri'] = 'http://localhost/~pgarcha/phpmyadmin/'; 2). $cfg['Servers'][$i]['auth_type'] = 'http'; // Authentication method (config, http or cookie based)? 3). $cfg['Servers'][$i]['user'] = 'root'; // MySQL user 4). $cfg['Servers'][$i]['password'] = 'sunny'; // MySQL password (only needed // with 'config' auth_type) I am not sure about the user attribute that I have put above actually pgarcha' is the admin of the system. Please help me out. Thanks in advance Pushpinder Pushpinder Singh Garcha _ Web Developer T. Falcon Napier and Associates, Inc. Off : 704 987 6500 Cell : 704 236 2939 Fax : 704 987 5002 _ -- .: B i g D o g :. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP XML
Chris, Here are some ideas you might want to review these options: 1. Try storing the data in the database as xml files them selves. You then do not have to create the xml file. This will no doubt increase your database size. 2. Store your xml templates in the database for faster retrieval. 3. Have the xml file reference the xslt file for the translation to occur on the client end...they get the HTML and all u really worry about is creating the xml file and having the xslt file. 4. Do the translation of Database - XML - XSLT - HTML all in PHP and save the HTML output for caching. Then u can save a link to that file in your database. This will allow you to have a very good caching system. When a request for a page comes in u can verify if the cached link in the database is too old or not. Then you can either get the link to the cached file or get the data to create the XML file. But, I have a feeling that this will still be extremely sufficient for your speed requirements... On Tue, 2002-10-15 at 08:25, Chris Boget wrote: Let me preface this by saying that I know the benefits of using XML with regards to portability and extensibility. Here is the issue I face. I have all of my data stored in a MySQL database. I'm considering reworking my website so that it uses XML (after being converted from resultant records in my DB) to transmit XSLT to transform and display the data to my end user. There are a few benifits I can see in sending XML messages as part of the back end processing. However, that seems to be out- weighed by the amount of processing that's going to need to take place in actually serving the data to the user. First I have to query and pull the records from the database. Then, I need to send those records to a function (or functions) to convert it to XML. Then, I need to take that XML data and have PHP use an XSL stylesheet to transform it to HTML before it, finally, gets sent on to the browser. So that's basically 2 conversions that take place on the back end. How much experience have any of you had with doing that? Does it take significantly longer to serve the pages; is there a noticible performance hit? Do you realize more benifit for the back end processes when using XML that makes any additional time it takes to display a page to the user worth it? I'd love to hear about people's experience with this kind of thing so I can better make a decision wrt whether or not I should even go down this route. thnx, Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- .: B i g D o g :. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP XML
On Tue, 2002-10-15 at 15:03, Chris Boget wrote: Here are some ideas you might want to review these options: Other people have suggested variations of the below so I'll just respond here to cut down on the bandwidth. 1. Try storing the data in the database as xml files them selves. You then do not have to create the xml file. This will no doubt increase your database size. This, unfortunately, is not a possiblity because the databases get updated too frequently. Plus, I have 2 tables that have in excess of 80k records which also gets updated frequently. File I/O for updating a flat file DB would be atrocious. 2. Store your xml templates in the database for faster retrieval. Please elaborate on this suggestion? sample xml page: ?xml version=1.0? page title/title /page So, then in theory, this is a xml template (contains no data) that can be stored in the database. 3. Have the xml file reference the xslt file for the translation to occur on the client end...they get the HTML and all u really worry about is creating the xml file and having the xslt file. As far as I know, there are several issues with the various browsers processing and executing the XSL. There isn't full compliance, particularly with the actual commands (ie, xsl:copy, xsl:copy-of, etc) and/or if you want to manipulate the tree/DOM. Is this untrue? 4. Do the translation of Database - XML - XSLT - HTML all in PHP and save the HTML output for caching. For the most part, this isn't feasible due to number 1 above. And for those files that I can cache, the data set being retrieved is so small that any performance hit (if any) would certainly be insignificant. So there wouldn't be much point in caching those. Even so, this does give me a few ideas and could possibly be the solution to a very different problem I need to address. Actually you do not have to store the data and xml (together) in the database. Here are the steps to perform: 1. Query database getting desired data. 2. get the xml file into PHP XML parser (either from a database or file.) 3. Parse xml file adding data to the file. Result is a new xml file. (XML template + data) 4. Optional (if xslt is compiled into PHP). You can do the translation of your XML file and XSLT file in PHP which could result in a html file or direct output to the browser. 5. Send the XML file to the browser with the XSLT information information in the XML file (not so much XSL). And let the browser handle the transformation to HTML for ya. Also note that the XSLT file is a great place to put all your themes. U can have one XSLT file for each theme that handles your site. The options are endless... That is relatively all that needs to be done. Thank you all for your ideas and suggestions thus far. Please keep them coming if you haven't chimed in or if you think of anything else. I'm sure this information is helping other people as well! Chris -- .: B i g D o g :. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] $html_code .= include (filetoinclude.txt);
Your email is not 100% totally clear with what you are actually trying to accomplish, however, here is an example of how i like to get html source code into a variable from a file. $html_code = implode( '', file( 'filetoinclude.txt' ) ); or append it... $html_code .= implode( '', file( 'filetoinclude.txt' ) ); Hope that helps you out. On Sat, 2002-10-12 at 09:50, Research and Development wrote: Should this work? $html_code .= include (filetoinclude.txt); I am populating a variable with html to be printred later as usual: $html_code .= html. But I have some static html files that I want included in the html that I am storing in the variable. The HTML is in text files. The above code obviously does not work. I want to know if there is another way. Thanks. -- .: B i g D o g :. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Multiple Return Values from function
I would probably return an array with the multiple values in the array...easier to work with. On Sat, 2002-10-12 at 20:49, Paul Maine wrote: Can I return more than one value from a function? php Thank You Paul -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- .: B i g D o g :. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] File Handler Error
I am getting include errors in php and when I check the apache logs i get out of file handler errors. Has anyone ran into this problem? I am wondering if there is a problem with the image functions. I am doing a lot of image creating and manipulation. Can anyone confirm this? .: B i g D o g :. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP User Group
Is anyone here have any information on the PHP Users Group of Salt Lake City, Utah? Thanks, .: B i g D o g :. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] File Question
I have been looking all over the manual and I have not found anything for __FILE__ does anyone know where I can get more info on its use in PHP? .: B i g D o g :. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] .htaccess file
Is it possible to set register_globals to off in the .htaccess file. If so how do I do that? .: B i g D o g :. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re-directing
Check under header() in the docs... .: B i g D o g :. - Original Message - From: Roberts, Mark [EMAIL PROTECTED] To: PHP Mailing list (E-mail) [EMAIL PROTECTED] Sent: Wednesday, July 24, 2002 8:28 AM Subject: [PHP] Re-directing Is there a way to redirect to a different script in PHP? I call it redirecting, but can't find it in the documentation using that track. I have a script...that if a certain criteria is met, I want to load a different script. Haven't been able to figure that out yet. I have gotten about it by conditionally executing a location.href in javascript. It works, but would like to know how to do it in PHP. ~Thanks. Mark Roberts Sr. Systems Analyst LanApps/Web Development The Williams Information Services Corporation 918-573-1706 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] is php.net down ?
It took me about 30 minutes to get it...just keep trying...some mirrors are really good...i used a canadian mirror and that worked great... .: B i g D o g :. - Original Message - From: Brian V Bonini [EMAIL PROTECTED] To: Jay Blanchard [EMAIL PROTECTED]; 'R'twick Niceorgaw' [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Monday, July 22, 2002 10:05 AM Subject: RE: [PHP] is php.net down ? I can get in. Try a mirror if you having trouble. -Original Message- From: Jay Blanchard [mailto:[EMAIL PROTECTED]] Sent: Monday, July 22, 2002 11:56 AM To: 'R'twick Niceorgaw'; [EMAIL PROTECTED] Subject: RE: [PHP] is php.net down ? [snip] any one else able to get into www.php.net ? [/snip] Nope... :^[ Jay -- 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 General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Comma question
Tried to check the archive, but it is offline... What does the , and {} do in this type of statement? Example: echo trtd{$strName}/td/tr, htmlspecialchars( $teststr ); Thanks, .: B i g D o g :. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Comma question
Thanks all for the info... I figured that the comma was to concatenate but is was wondering if the parser handled it different. I knew the {} helped the parser now which was the variable...but i have never seen it like that... I have only seen it like ${var}... Just wondering the difference... .: B i g D o G :. - Original Message - From: Kevin Stone [EMAIL PROTECTED] To: B i g D o g [EMAIL PROTECTED]; PHP GEN [EMAIL PROTECTED] Sent: Monday, July 22, 2002 5:00 PM Subject: Re: [PHP] Comma question Curly braces {} are sometimes required for PHP to properly parse variables within quoted strings. Good example might be defining variable-variables within a quoted string ${$myvarvar}. However I do not believe that curly braces are required in this particular string. As for the comma I believe it does the same thing as the period. It will concatonate the quoted string with the output of the htmlspecialchars() function within the echo statement. -Kevin - Original Message - From: B i g D o g [EMAIL PROTECTED] To: PHP GEN [EMAIL PROTECTED] Sent: Monday, July 22, 2002 4:34 PM Subject: [PHP] Comma question Tried to check the archive, but it is offline... What does the , and {} do in this type of statement? Example: echo trtd{$strName}/td/tr, htmlspecialchars( $teststr ); Thanks, .: B i g D o g :. -- 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] No text in form submission
Tell your web hosting company to do an upgrade...or find a different hosting co... .: B i g D o g :. - Original Message - From: Dean Ouellette [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, July 21, 2002 2:20 PM Subject: RE: [PHP] No text in form submission PHP Version 3.0.16 -Original Message- From: Jason Wong [mailto:[EMAIL PROTECTED]] Sent: Sunday, July 21, 2002 2:26 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] No text in form submission On Monday 22 July 2002 01:52, Dean Ouellette wrote: Been working on trying to get form submission to work. Now have it so when click enter it e-mails me, but there is no text subitted in the e-mail What version of php are you using? ? $MailToAddress = [EMAIL PROTECTED]; $MailSubject = Group volunteer list; if (!$MailFromAddress) { $MailFromAddress = $email; } $Header = ; $Footer = ; foreach($_POST as $key = $val) { $val = stripslashes($val); $Message .= $key = $val\n; } What do you see when you: print_r($_POST) -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * /* JALH regex are more than some crappy posix thing JALH they are an art form - Marc Zealey on #kernelnewbies */ -- 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 General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Submitting to cgi script
In your example you are using the method of POST to pass the form data to the cgi script. However, when you pass the data to the cgi script from the php script you are using the GET method to pass the data. Check and see if the cgi can accept with METHOD=GET .: B i g D o g :. - Original Message - From: [EMAIL PROTECTED] To: php-general [EMAIL PROTECTED] Sent: Sunday, July 21, 2002 5:46 PM Subject: [PHP] Submitting to cgi script How can I do this I have a form that I want to submit to a second php script that in turn submits to a cgi script but I can not get it to work. If I submit from the form to the cgi script it works just fine. But there are something that I need to do with the data besides submitting to the cgi script. Could you look at the sample code below and see if I am doing something wrong. I hope this makes sense I am not quit sure how to ask what I want to know If I was submitting directly to the cgi script the form action would look like this FORM ACTION=/cgi-bin/siteUserEmail/siteUserEmail.cgi METHOD=POST FORM ACTION=siteUserEmail.php METHOD=POST INPUT TYPE=TEXT NAME=forwardaddr SIZE=32 VALUE= TEXTAREA NAME=aliases ROWS=5 COLS=32/TEXTAREA INPUT TYPE=CHECKBOX NAME=vacationmode VALUE=on TEXTAREA NAME=vacationmsg ROWS=5 COLS=32/TEXTAREA INPUT TYPE=HIDDEN NAME=name SIZE=-1 VALUE=tester54321 INPUT TYPE=HIDDEN NAME=group SIZE=-1 VALUE=site53 INPUT TYPE=HIDDEN NAME=page SIZE=-1 VALUE=siteuseremail input type=submit name=Submit value=submit /FORM The siteUserEmail.php file ? $cmd=/cgi-bin/siteUserEmail/siteUserEmail.cgi?forwardaddr=$forwardaddr aliases=$aliasesvacationmode=$vacationmodevacationmsg=$vacationmsg name=$namegroup=$grouppage=$page; exec($cmd); ? -- Best regards, rdkurth mailto:[EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Exchange LDAP Authentication
Has anyone done LDAP auth with PHP on an Exchange 5 server? I need help finding the values to authenticate with... B i g D o g -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Development Tools
PHPED is really good if you have the money to spend... B i g D o g - Original Message - From: Mark McCulligh [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, July 10, 2002 9:42 AM Subject: [PHP] Development Tools I am looking for a good Development tool to write my PHP in and was wondering what people are using out there. I have been looking at Dreamweaver MX, Zend Studio 2.5 and phpEdit. I know UltraDev 4 well with ASP, but the new MX now supports PHP. This MX/PHP any good? Zend looks good with the integrated documentation and debugging tools. Thanks, Mark. _ Mark McCulligh, Application Developer / Analyst Sykes Canada Corporation www.SykesCanada.com (888)225-6824 ex. 3262 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Accessing multiple List/Menu values
Search the archives...this has been answered by me and many others... B i g D o g - Original Message - From: Joseph Szobody [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, July 10, 2002 12:02 PM Subject: [PHP] Accessing multiple List/Menu values This is sorta OT, but involves PHP. I have a fairly large List/Menu on a form, which allows for multiple selections. I want users to be able to use cntrl/shift-click to select a bunch of items. Let's say this List is called 'list'. Now when I submit the form, how does the processing script access all these different values in 'list'? If I try to echo '$list' it only show *one* of the selected items from the list. I've tried treating it as an array ($list[0], $list[1], etc), but that doesn't work either. How do I get at the different values? Thanks, -- : Joseph Szobody : Computers are like airconditioners: They stop working properly if you open windows. -- 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] snmpwalk
try ?php with no space... B i g D o g - Original Message - From: MAAS [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, July 08, 2002 2:24 AM Subject: [PHP] snmpwalk Hi Iam trying to use snmpwalk but I get this: Parse error: parse error, unexpected T_VARIABLE in c:\inetpub\wwwroot\alarm.php on line 7 This Is my code: HTML HEAD TITLEALARM ???/TITLE ? php $a = snmpwalk(192.168.10.8, pub_likt, 1.3.6.1.2.1.1); ? /HEAD /HTML -- 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] Stored Procedures
Try http://techdocs.postgresql.org or techdoc.postgresql.org B i g D o g - Original Message - From: David Busby [EMAIL PROTECTED] To: php-general [EMAIL PROTECTED] Sent: Friday, July 05, 2002 1:30 PM Subject: [PHP] Stored Procedures List, I'm using a postgres datbase for my PHP project, how do I make stored procedures? Or if no SPs then what would be recomendation for building simple/reuseable Put and Get procedures for my data? /B -- 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] Re: Stored Procedures
Actually, Postgres supports stored procedures, triggers and views to name a few where mysql does not... B i g D o g - Original Message - From: Mark McCulligh [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, July 05, 2002 1:45 PM Subject: [PHP] Re: Stored Procedures I think postgres doesn't support store procedure / triggers. Just like MySQL doesn't. Mark. -- _ Mark McCulligh, Application Developer / Analyst Sykes Canada Corporation www.SykesCanada.com [EMAIL PROTECTED] David Busby [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... List, I'm using a postgres datbase for my PHP project, how do I make stored procedures? Or if no SPs then what would be recomendation for building simple/reuseable Put and Get procedures for my data? /B -- 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] Stored Procedures + Answer
also not the use of the procedural language plpgsql. This needs to be installed in the database that you are using. If you want it for all databases that you create you can do this... template1 = createlang plpgsql template1; This then allow all subsequently created databases to have plpgsql... B i g D o g - Original Message - From: David Busby [EMAIL PROTECTED] To: php-general [EMAIL PROTECTED] Sent: Friday, July 05, 2002 2:16 PM Subject: Re: [PHP] Stored Procedures + Answer List, I read the documentation on postgres site (http://techdocs.postgres.sql) and then also the Google search and came up with this: The way PostgreSQL usees stored procedures is like this: A stored procedure is really a function It just does more...like INSERT/UPDATE/DELETE, multiple DELETE or whatever. So to write them use a function but just call it stored procedure fancy... Heres some code that I've never tested or run before: CREATE FUNCTION putData (char, varchar, varchar) RETURNS int AS ' DECLARE x ALIAS FOR $1; y ALIAS FOR $2; z ALIAS FOR $3; BEGIN INSERT INTO tableA (colX, colY, colZ) VALUES (x, y, z); RETURN 1; END ' LANGUAGE 'plpgsql'; Good Luck David Busby wrote: List, I'm using a postgres datbase for my PHP project, how do I make stored procedures? Or if no SPs then what would be recomendation for building simple/reuseable Put and Get procedures for my data? /B -- 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] Survey: MySQL vs PostgreSQL for PHP
I am there with you on PostgreSQL. B i g D o g - Original Message - From: Lazor, Ed [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, July 05, 2002 2:59 PM Subject: [PHP] Survey: MySQL vs PostgreSQL for PHP How many here feel PostgreSQL has surpassed MySQL as the better backend for PHP? This would be based on performance (speed, scalability, etc.) and features. -Ed This message is intended for the sole use of the individual and entity to whom it is addressed, and may contain information that is privileged, confidential and exempt from disclosure under applicable law. If you are not the intended addressee, nor authorized to receive for the intended addressee, you are hereby notified that you may not use, copy, disclose or distribute to anyone the message or any information contained in the message. If you have received this message in error, please immediately advise the sender by reply email and delete the message. Thank you very much. -- 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] Dealing with XML charsets
Peter, What OS are you running this on...if you are on windows then uncomment the php_iconv.dll in your php.ini file and then you can see if you can run the iconv functions. If you are running under unix/linux then you need to compile php with the iconv functions. Example ./configure --with-iconv=/location/of/iconv Iconv is a gnu app that you use for the conversions. You can get more info GNU's website about iconv... B i g D o g - Original Message - From: Peter [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, July 03, 2002 12:46 AM Subject: Re: [PHP] Dealing with XML charsets On Tue, 2 Jul 2002 15:23:38 -0600, [EMAIL PROTECTED] (Ray Hunter) wrote: Check here: http://www.chilkatsoft.com/ChilkatXml.asp Doesn't look as if it'll run under Unix? Google search: http://www.google.com/search?sourceid=navclientq=convert+xml+charset I've been googling ont he topic for the past couple of days, and had no luck :-( -- 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] cURL in an exec() . more
Check out setuid and sticky bits for the file permissions. Remember that if you are running php under apache and you try the exec with a command php is running with apaches permissions. So apache needs to be able to run what ever you are trying to run with the exec command. B i g D o g - Original Message - From: Jay Blanchard [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, July 03, 2002 8:49 AM Subject: RE: [PHP] cURL in an exec() . more OK, here is where I am (between handling other pre-holiday/long weekend processese here); I have the PHP script create a shell script containing the needed code for the cURL process. Of course the shell script will execute from the command line with me as 'root'. But the exec() that calls the shell script will not execute the script because of improper permissions. (Has to do with the permissions on the topmost directory for where the file lives, changing that could be dangerous from a security standpoint). So I have tried to change those (I am on a Linux box) via the PHP, no luck. It will let me chmod the shell script via the PHP script. So I tried to move the script to /usr/local/bin; rename(getlist.sh, /usr/local/bin/getlist.sh); Permission denied exec(mv getlist.sh /usr/local/bin/getlist.sh); Permissiion denied exec(cp getlist.sh /usr/local/bin/getlist.sh); Permissiion denied I am looking into posix_setuid() to change the permissions for the time needed, but I've a feeling, after a couple of tests, that this is not going to be the way to do this either. I wish permissions in Linux were more straigtforward. Anyone have an idea how to do this with opening the server wide? Thanks for all your help. Jay -- 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] PHP and Apache
Has anyone had a problem where PHP created to many open files and crashed apache? B i g D o g -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP and Apache
Sorry bro...doing to many things at once. Apache 1.3.23 Linux 7.2 PHP 4.1.2 Configuration: ./configure --with-apxs=/usr/local/apache/bin/apxs --with-sybase-ct=/sybase --with-mysql' '--enable-exif --with-gd --with-jpeg-dir=/usr/lib --with-png-dir=/usr/local/lib --with-zlib --with-config-file-path=/etc --with-freetype-dir=/usr/local/lib My webserver keeps crashing: error log entry [Tue Jul 2 15:12:07 2002] [error] [client 164.214.4.59] (24)Too many open files I am just wondering if this a php issue or something else... B i g D o G - Original Message - From: Michael Sweeney [EMAIL PROTECTED] To: B i g D o g [EMAIL PROTECTED] Cc: PHP GEN [EMAIL PROTECTED] Sent: Tuesday, July 02, 2002 12:04 PM Subject: Re: [PHP] PHP and Apache No. Only you. :-) Platform? Environment? Configuration information? ..mike.. On Tue, 2002-07-02 at 11:01, B i g D o g wrote: Has anyone had a problem where PHP created to many open files and crashed apache? B i g D o g -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] DBX Functions
Has anyone tested the dbx functions with huge results 1+ records returned? How does the performance handle? Thanks, B i g D o g -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Have you seen this host?
He is looking for a web hosting company that has what he has listed below... B i g D o g - Original Message - From: Lazor, Ed [EMAIL PROTECTED] To: 'Tony Harrison' [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Tuesday, July 02, 2002 2:29 PM Subject: RE: [PHP] Re: Have you seen this host? Are you not promoting a hosting service? What is your inquiry? -Original Message- I think calling it spam is a bit harsh! Offtopic maybe, but it is a genuine enquiry Hi, if you can find a web host that offers ALL these services, i will eat my hat on my webcam to the whole club: Usenet Newsgroup. at least 200MB space Perl/CGI support (optional) PHP - note: must have GD library installed! MySQL SHOUTcast web radio Reseller account option at least 300MB per month bandwidth ASP (optional) This message is intended for the sole use of the individual and entity to whom it is addressed, and may contain information that is privileged, confidential and exempt from disclosure under applicable law. If you are not the intended addressee, nor authorized to receive for the intended addressee, you are hereby notified that you may not use, copy, disclose or distribute to anyone the message or any information contained in the message. If you have received this message in error, please immediately advise the sender by reply email and delete the message. Thank you very much. -- 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] Help - I'm New
I hate to sound like an ass, but the best thing would to really read the php manual @ php.net or buy a PHP programming book... There are many great books out there on PHP that you can get. 1. Check under php.net for installation and configuration 2. Review include(), include_once(), require() and require_once() for your forms. B i g D o g - Original Message - From: admin [EMAIL PROTECTED] To: PHP List [EMAIL PROTECTED] Sent: Tuesday, July 02, 2002 3:14 PM Subject: [PHP] Help - I'm New Hi, first let me introduce myself... My name is Kit, and I own the domain below and host sites from off that domain. I'm new to using PHP...and need some help. 1. I have apache for win32 1.3.26 setup on my w2k pro at home, and need to know how to enable PHP in the config. 2. I also have a PHP website, and need to know how to include FORMS for subscribing to newletters in a file called header.php *** http://www.myispnet.net *** Administrator My ISP Network [EMAIL PROTECTED] *** http://www.myispcentral.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] Re: PHP and OOP
You also need to remember that these tests need to be run 100s of times and then calculate the avg. However, as we can assume there is really not going to be a big difference between the two. Its not like they are whole seconds apart. B i g D o g - Original Message - From: Remy Dufour [EMAIL PROTECTED] To: SP [EMAIL PROTECTED]; Kondwani Spike Mkandawire [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Thursday, June 27, 2002 11:34 AM Subject: Re: [PHP] Re: PHP and OOP I've tested thecode and there is what i've got Proceduraltook 1.24408602715 seconds OOtook 1.24240803719 seconds Here is the code. Test it by yourself ?phpfunction getmicrotime(){list($usec, $sec) = explode( ,microtime());return ((float)$usec + (float)$sec);} function icount($vs) {$var=0;while($count $vs) { $count++;}}$time_start = getmicrotime(); icount(100); echo Proceduralbr took . (getmicrotime() - $time_start) . secondsbr; class count {function icount($vs) {$var=0; while($count $vs) {$count++;}}} $time_start = getmicrotime();$icount = new count; $icount-icount(100);echo brOObr took . (getmicrotime() - $time_start) . seconds;? OO is slower then procedural. You can test that out yourself or look at this article where the guy did a very basic test. Maybe they will fix the speed problem by the time php5 comes around. http://www.phpbeginner.com/columns/demitrious/objects/8 -- 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] grabbing content of a web page...
You can also do this: ?php // get a web page into an array and print it out $fcontents = file ('http://www.example.com/'); while (list ($line_num, $line) = each ($fcontents)) { echo bLine $line_num:/b; , htmlspecialchars ($line), br\n; } // get a web page into a string $fcontents = implode ('', file ('http://www.example.com/')); ? PHP.net example always RTM... B i g D o g - Original Message - From: Kelly Meeks [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, June 27, 2002 1:53 PM Subject: [PHP] grabbing content of a web page... Howdy, I know there has to be a way to grab output of an url on another site? Let's say you wanted to get the output of yahoo.com (just for example)? Is there any way you can stick that into a variable, and then manipulate it? Thanks, Kelly -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP sockets/daemon problem
Some great articles for sockets...might help out... http://www.phpbeginner.com/columns/demitrious/sockets http://www.phpbeginner.com/columns/demitrious/sockets-connection B i g D o g - Original Message - From: Josh Levine [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, June 26, 2002 11:32 AM Subject: [PHP] PHP sockets/daemon problem I'm trying to write a simple PHP script that communicates with a daemon running on the same server. Basically, the daemon just accepts an integer and returns an integer: [josh@jlevine-research josh]$ telnet 127.0.0.1 60324 Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. 9 25Connection closed by foreign host. When I try doing this with PHP, however, the output is 2[]5 (where [] == a small square symbol). Here is the script: ?php $fp = fsockopen(127.0.0.1, 60324, $errno, $errstr); if (!$fp) { echo ERROR: $errno - $errstrbr\n; } else { socket_set_blocking ($fp, 1); socket_set_timeout($fp, 200); fwrite($fp,9\n); $return = fread($fp,4); echo $return; fclose($fp); } ? I've tried various string format and type-casting functions with no results (usually just returns nothing after formatted). Any ideas? Thanks in advance, Josh Levine -- 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] debugger
There are some IDE's that support debugging or you can just use the parser. It will tell you the problem and spit out a warning or error depending on how you have your php.ini set up. I usually have display_errors on so that I can use that as my debugger. Then when I go on a live server I have it turned off and I have errors being logged to a file. Debugger for poor developers... B i g D o g - Original Message - From: Anil Garg [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, June 26, 2002 2:47 PM Subject: [PHP] debugger hi, in perl i used perldb for debugging. whats to be used in php!! thanx anil -- 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] multiple webserver
You can set apache to listen on multiple ports or you can have different web servers listening on ports that you configure it to listen on. For example: I have apache on port 80 and throttle webserver listening on 8080... B i g D o g - Original Message - From: Anil Garg [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, June 25, 2002 9:20 AM Subject: [PHP] multiple webserver hi, This is a bit off topic but can anyone please point me to a link where i can find a tutorial for setting multiple web server(by listening on different ports) on one machine. thanx anil -- 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] Easy Date MySQL Question...
Try looking at the date functions gmdate in the php.net manual B i g D o g - Original Message - From: Doug Coning [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, June 25, 2002 9:06 AM Subject: [PHP] Easy Date MySQL Question... Hi everyone, I have searched the php.net and don't know where to look for the code I need. I have a MySQL date column that reads this way: 2002-06-25. However, in PHP I want to show it this way 06/25/2002. Any assistance is greatly appreciated!!! Thanks in advance. Doug Coning Coning Consulting www.coning.com -- 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] multiple webserver
You can visit www.apache.org or any other webserver that you want to use. You need to read the manual for configuring the ports that they use. So which ever webserver(s) you want to use read their manual on configuration. For apache you can configure the ports in the httpd.conf file. B i g D o g - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, June 25, 2002 9:46 AM Subject: Re: [PHP] multiple webserver thanx for ur prompt reply can u plz tell be some website where i can find the steps to do that. thanx B I G D O G wrote in message news:03d401c21c5c$4501a5a0$[EMAIL PROTECTED]... You can set apache to listen on multiple ports or you can have different web servers listening on ports that you configure it to listen on. For example: I have apache on port 80 and throttle webserver listening on 8080... B i g D o g- Original Message - From: Anil Garg To: Sent: Tuesday, June 25, 2002 9:20 AM Subject: [PHP] multiple webserver hi, This is a bit off topic but can anyone please point me to a link where i can find a tutorial for setting multiple web server(by listening on different ports) on one machine. thanx anil -- 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] Sybase Fetch Array Question
Can someone let me know when you call sybase_fetch_array that the internal row pointer of the sybase result is increased. So that subsequent calls using sybase_fetch_array will return a result 1 more than the previous result return? Okay that was weird B i g D o g -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php