php-general Digest 25 Jan 2006 14:52:57 -0000 Issue 3926

2006-01-25 Thread php-general-digest-help
php-general Digest 25 Jan 2006 14:52:57 - Issue 3926 Topics (messages 229203 through 229234): Re: Google using PHP @ spam 229203 by: Peter Hoskin 229208 by: Robert Cummings Re: $_SESSION saves all values but Class -- works on one server butnot another?! [second plead for

Re: [PHP] Google using PHP @ Google Store

2006-01-25 Thread Dan Lowe
On Jan 24, 2006, at 9:41 PM, Peter Hoskin wrote: Its hosted from 85.13.206.209.reverse.coreix.net - somehow I don't think this is a google owned site. It's implied right on the front page it's not directly run by Google. Produced for Google Inc. by Merchandise Mania Limited My guess is

[PHP] E-Mail Filter/Parser

2006-01-25 Thread Sascha Braun - immosky AG
Hi, I started to write an E-Mail Parser so E-Mails from different Internet Plattforms can be sorted automatically into an customer database. Everything is working pretty fine, but only if all expected fields appear in the Mail from the sending plattform. But sometimes the Mails send out by a

Re: [PHP] Google using PHP @ Google Store

2006-01-25 Thread Angelo Zanetti
Dan Lowe wrote: On Jan 24, 2006, at 9:41 PM, Peter Hoskin wrote: Its hosted from 85.13.206.209.reverse.coreix.net - somehow I don't think this is a google owned site. It's implied right on the front page it's not directly run by Google. Produced for Google Inc. by Merchandise Mania

Re: [PHP] How to check if an object exists

2006-01-25 Thread David Grant
Derrick, Derrick Shoemake wrote: It appears that the error I was getting wasn't really related to my problem. I'm getting a error in httpd-error.log httpd in free(): error: junk pointer, too high to make sense [Tue Jan 24 17:11:32 2006] [notice] child pid 22665 exit signal Abort trap (6)

[PHP] PHP / Apache + Error 500

2006-01-25 Thread Thomas
Hi there! I am sitting with something of a mystery and was wondering if there is someone out that might have dealt with this before: I have developed a site that runs well and fine on my machine (XP/Apache2/PHP5/MySQL5). I am using PEAR::HTML_Template_Flexy as well as Cache_Lite. The site has

Re: [PHP] E-Mail Filter/Parser

2006-01-25 Thread Sascha Braun - immosky AG
But how can i get the next key in a foreach loop? Can't see how i can use a continue statement in that circumstance? Am Mittwoch, den 25.01.2006, 11:28 +0200 schrieb Geoff: Possibly the continue statement would help you? Geoff. On 25 Jan 2006 at 10:12, Sascha Braun - immosky AG wrote:

RE: [PHP] PHP / Apache + Error 500

2006-01-25 Thread Albert
Thomas wrote: I had a look at the Apache log file I got from the SP ... no clue. All I know is that they use Apache 1.x/PHP5/Linux/MySQL(v4?). Did you look at the access_log or error_log? The error_log should give you an indication of why it is happening. Do you try to access system files or

Re: [PHP] php5.0.5 include() terminates script BUGBUGBUGBUG

2006-01-25 Thread alex
thanks all for your help.. i have upgraded to php5.1.2 and the problem has resolved itself...as it stands for me php5.0.5 cannot handle multiple include statments.. regards alex Jochem Maas [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] David Hall wrote: Jochem Maas wrote: the

Re: [PHP] upload_max_filesize

2006-01-25 Thread Richard Correia
check MAX_FILE_SIZE attribute of file tag. Also does your webserver impose any file upload limit? Thanks Richard On 1/25/06, Daniel Lahey [EMAIL PROTECTED] wrote: A client has started experiencing problems with uploading files larger than the default 2M set in php.ini. The problem only

Re: [PHP] PHP / Apache + Error 500

2006-01-25 Thread Jochem Maas
Thomas wrote: Hi there! I am sitting with something of a mystery and was wondering if there is someone out that might have dealt with this before: I have developed a site that runs well and fine on my machine (XP/Apache2/PHP5/MySQL5). I am using PEAR::HTML_Template_Flexy as well as

Re: [PHP] $_SESSION saves all values but Class -- works on one server but not another?! [second plead for help]

2006-01-25 Thread Jochem Maas
Daevid Vincent wrote: No no no. I'm NOT passing data between servers. It's just two pages on the same server. One that sets up the session/class and the other page just re-loads the session. When I talk about two different servers, I copy the entire source/db schema from one server to the

Re: [PHP] forwarding from virtual email account to real email account

2006-01-25 Thread Jochem Maas
Binay wrote: Hi All, Is it possible that we create a virtual email account(no physical existence) e.g [EMAIL PROTECTED] which will be associated with a real email account e.g. [EMAIL PROTECTED] so that if any body sends the email to virtual email account [EMAIL PROTECTED] will be

[PHP] absolute vs relative path?

2006-01-25 Thread William Stokes
Hello, I Have a web site on one server and a test site on another. How can I build the hyperlinks so that they work on both servers without modification. For example build this link dynamically: http://www.domain.com/www/test.php In test server the same should be:

Re: [PHP] forwarding from virtual email account to real email account

2006-01-25 Thread Angelo Zanetti
Binay wrote: Hi All, Is it possible that we create a virtual email account(no physical existence) e.g [EMAIL PROTECTED] which will be associated with a real email account e.g. [EMAIL PROTECTED] so that if any body sends the email to virtual email account [EMAIL PROTECTED] will be

RE: [PHP] absolute vs relative path?

2006-01-25 Thread Jim Moseby
Hello, I Have a web site on one server and a test site on another. How can I build the hyperlinks so that they work on both servers without modification. For example build this link dynamically: http://www.domain.com/www/test.php In test server the same should be:

RE: [PHP] PHP / Apache + Error 500

2006-01-25 Thread Thomas
Hi Jochem, PHP5.0.4, on both systems. I suspect that either of the PEAE modules cause some server id10t error (if indeed the issue is on my side). Thomas -Original Message- From: Jochem Maas [mailto:[EMAIL PROTECTED] Sent: 25 January 2006 03:00 PM To: Thomas Cc:

Re: [PHP] Google using PHP @ http://www.google-store.com

2006-01-25 Thread tedd
Looks like google are using PHP and oscommerce for their web store: http://www.google-store.com Nice to see :) James It would be nice to see them being w3c compliant, but they aren't. tedd --

Re: [PHP] absolute vs relative path?

2006-01-25 Thread Geoff
On 25 Jan 2006 at 15:19, William Stokes wrote: Hello, I Have a web site on one server and a test site on another. How can I build the hyperlinks so that they work on both servers without modification. For example build this link dynamically: http://www.domain.com/www/test.php In test

Re: [PHP] absolute vs relative path?

2006-01-25 Thread Barry
Geoff wrote: On 25 Jan 2006 at 15:19, William Stokes wrote: Hello, I Have a web site on one server and a test site on another. How can I build the hyperlinks so that they work on both servers without modification. For example build this link dynamically: http://www.domain.com/www/test.php

Re: [PHP] absolute vs relative path?

2006-01-25 Thread Geoff
On 25 Jan 2006 at 15:22, Barry wrote: Geoff wrote: On 25 Jan 2006 at 15:19, William Stokes wrote: Hello, I Have a web site on one server and a test site on another. How can I build the hyperlinks so that they work on both servers without modification. For example build this

Re: [PHP] forwarding from virtual email account to real email account

2006-01-25 Thread Binay\(Local\)
Hi I think i've been misunderstood here. I meant whether this is achievable using PHP or not? I know and can be done very easily on server with either control panel or manual intervene but its integration with PHP is my main concern. I hope you understand what i mean. Thanks, Binay -

Re: [PHP] forwarding from virtual email account to real email account

2006-01-25 Thread Duncan Hill
On Wednesday 25 January 2006 15:04, Binay(Local) wrote: Hi I think i've been misunderstood here. I meant whether this is achievable using PHP or not? I know and can be done very easily on server with either control panel or manual intervene but its integration with PHP is my main concern. I

RE: [PHP] forwarding from virtual email account to real email account

2006-01-25 Thread Albert
Binay wrote: Is it possible that we create a virtual email account(no physical existence) e.g [EMAIL PROTECTED] which will be associated with a real email account e.g. [EMAIL PROTECTED] so that if any body sends the email to virtual email account [EMAIL PROTECTED] will be automatically

Re: [PHP] forwarding from virtual email account to real email account

2006-01-25 Thread John Nichel
Binay wrote: Hi All, Is it possible that we create a virtual email account(no physical existence) e.g [EMAIL PROTECTED] which will be associated with a real email account e.g. [EMAIL PROTECTED] so that if any body sends the email to virtual email account [EMAIL PROTECTED] will be

[PHP] function preg_match()

2006-01-25 Thread Denyl Meneses Guillén
When I try to use preg_match(), I get this... Fatal error: Call to undefined function preg_match() in /usr/home/www/library/defines.php on line 25 I have php5.0.4 ,web server Apache (Linux) . as I can solve it? Thanks, Denyl. -- This message has been scanned for viruses and dangerous

Re: [PHP] forwarding from virtual email account to real email account

2006-01-25 Thread Jochem Maas
John Nichel wrote: Binay wrote: Hi All, Is it possible that we create a virtual email account(no physical existence) e.g [EMAIL PROTECTED] which will be associated with a real email account e.g. [EMAIL PROTECTED] so that if any body sends the email to virtual email account [EMAIL

Re: [PHP] function preg_match()

2006-01-25 Thread Denyl Meneses Guillén
sorry , what is PCRE ? I looking my configuration with phpinfo() and not exist PCRE or similar . I'm using PHPmailer and and inside it calls to function preg_match , but i want to run a simple example ...:: denyl.php ?php $subject = abcdef; $pattern = '/^def/'; preg_match($pattern, $subject,

Re: [PHP] forwarding from virtual email account to real email account

2006-01-25 Thread Jochem Maas
Binay(Local) wrote: Hi I think i've been misunderstood here. I meant whether this is achievable using PHP or not? I know and can be done very easily on server with either control panel or manual intervene but its integration with PHP is my main concern. I hope you understand what i mean.

RE: [PHP] forwarding from virtual email account to real email acc ount

2006-01-25 Thread Jim Moseby
Hey, I want to change the oil in my car, is this possible in PHP? if($accumulated_miles3000){ keep_driving; }else{ purchase_supplies('oil', 'filter'); drain_crankcase; replace_filter; oil_fill(15); $accumulated_miles=0; } -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] function preg_match()

2006-01-25 Thread David Grant
Denyl, You need to call the person responsible for maintaining your box. Denyl Meneses Guillén wrote: sorry , what is PCRE ? Regular Expression Functions (Perl-Compatible) I looking my configuration with phpinfo() and not exist PCRE or similar . That's because someone disabled it in the

Re: [PHP] Google using PHP @ http://www.google-store.com

2006-01-25 Thread ben johnson
They are using oscommerce specifically. An open source PHP shopping cart. I have also come accross php errrors when accessing googles suggest feature, some strange reaction with greesemonkey. On 1/25/06, tedd [EMAIL PROTECTED] wrote: Looks like google are using PHP and oscommerce for their web

Re: [PHP] forwarding from virtual email account to real email account

2006-01-25 Thread David Grant
Binay, I guess you could set up PHP to listen on port 25 and rewrite the headers of mail messages containing aliases, but that seems like a lot of work for what could easily be handled by a (much quicker) MTA. David -- David Grant http://www.grant.org.uk/ -- PHP General Mailing List

Re: [PHP] function preg_match()

2006-01-25 Thread John Nichel
Denyl Meneses Guillén wrote: sorry , what is PCRE ? I looking my configuration with phpinfo() and not exist PCRE or similar . http://us2.php.net/pcre I'm using PHPmailer and and inside it calls to function preg_match , but i want to run a simple example ...:: denyl.php ?php $subject =

Re: [PHP] Google using PHP @ Google Store

2006-01-25 Thread Chris Shiflett
Dan Lowe wrote: It's implied right on the front page it's not directly run by Google. I'm not sure why it matters, but the real Google store appears to use ASP: http://www.googlestore.com/home.asp Chris -- Chris Shiflett Brain Bulb, The PHP Consultancy http://brainbulb.com/ -- PHP General

Re: [PHP] wrapping anchor tags around a URL

2006-01-25 Thread Ahmed Saad
On 1/23/06, Richard K Miller [EMAIL PROTECTED] wrote: function link_the_links($s) { return preg_replace('@(http://[^\s]+)@sm', 'a href=$1$1/a', $s); } I've got to somehow ignore the trailing period if it is present. if ($s[strlen($s)-1] == '.'){ $s = substr($s, 0, -1); } -ahmed

Re: [PHP] wrapping anchor tags around a URL

2006-01-25 Thread Ahmed Saad
On 1/25/06, Ahmed Saad [EMAIL PROTECTED] wrote: On 1/23/06, Richard K Miller [EMAIL PROTECTED] wrote: function link_the_links($s) { return preg_replace('@(http://[^\s]+)@sm', 'a href=$1$1/a', $s); } if ($s[strlen($s)-1] == '.'){ $s = substr($s, 0, -1); } oops! sorry i

Re: [PHP] Google using PHP @ Google Store

2006-01-25 Thread Chris Shiflett
I'm not sure why it matters, but the real Google store appears to use ASP: http://www.googlestore.com/home.asp My mistake. Apparently there are different sites for different countries. Chris -- Chris Shiflett Brain Bulb, The PHP Consultancy http://brainbulb.com/ -- PHP General Mailing List

Re: [PHP] wrapping anchor tags around a URL

2006-01-25 Thread Ahmed Saad
On 1/25/06, Ahmed Saad [EMAIL PROTECTED] wrote: On 1/25/06, Ahmed Saad [EMAIL PROTECTED] wrote: On 1/23/06, Richard K Miller [EMAIL PROTECTED] wrote: function link_the_links($s) { return preg_replace('@(http://[^\s]+)@sm', 'a href=$1$1/a', $s); } try looking ahead in the

Re: [PHP] function preg_match()

2006-01-25 Thread Richard Correia
Hey Denyl, Simple workaround ... you can use ereg_replace insted of preg_replace http://www.weberdev.com/get_example.php3?Function=ereg-replace You can sort out your PCRE installation/configuration later. Thanks, Richard On 1/26/06, Denyl Meneses Guillén [EMAIL PROTECTED] wrote: When I try

Re: [PHP] forwarding from virtual email account to real email account

2006-01-25 Thread Richard Correia
Are you looking for something like this? SMTP using PHP? http://www.weberdev.com/get_example-4295.html Thanks Richard On 1/25/06, Binay [EMAIL PROTECTED] wrote: Hi All, Is it possible that we create a virtual email account(no physical existence) e.g [EMAIL PROTECTED] which will be

Re: [PHP] absolute vs relative path?

2006-01-25 Thread Richard Correia
I would suggest to keep a simple variable $HOSTNAME in your config file. Thanks Richard On 1/25/06, William Stokes [EMAIL PROTECTED] wrote: Hello, I Have a web site on one server and a test site on another. How can I build the hyperlinks so that they work on both servers without

Re: [PHP] function preg_match()

2006-01-25 Thread Denyl Meneses Guillén
now already I can see the light thanks for your help, Denyl. - Original Message - From: John Nichel [EMAIL PROTECTED] To: php-general@lists.php.net Sent: Wednesday, January 25, 2006 8:30 AM Subject: Re: [PHP] function preg_match() Denyl Meneses Guillén wrote: sorry , what is

[PHP] Directory permissions

2006-01-25 Thread Sugrue, Sean
Does anyone know if there is a way to change permission on a directory on a Solaris OS through php? And if there is a way authenticate the owner of the directory through an rlogin or su. Sean -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Google using PHP @ http://www.google-store.com

2006-01-25 Thread tedd
They are using oscommerce specifically. An open source PHP shopping cart. ben: Not that you said or implied otherwise. soapbox PHP or not, there's no reason I know of for not complying with w3c -- especially if you're high profile like Google. It's clear that they are not concerned with

[PHP] problem with parse_str

2006-01-25 Thread dalini
version: 4.3.2 the example from: http://de2.php.net/manual/en/function.parse-str.php $str = first=valuearr[]=foo+bararr[]=baz; parse_str($str); echo $first; // value echo $arr[0]; // foo bar echo $arr[1]; // baz parse_str($str, $output); echo $output['first']; // value echo $output['arr'][0];

[PHP] Get timestamp?

2006-01-25 Thread Jay Paulson
For some reason my brain isn't working correctly today. How would I go about getting the timestamp of a day of the week from 7 weeks ago? In my case I'm getting the timestamp of last Sunday (no matter what day of the week it is currently) and I want to get the timestamp of the Sunday that

Re: [PHP] PHP / Apache + Error 500

2006-01-25 Thread Gerry Danen
Interestingly, I installed mod_security the other day and noticed error 500 show up. As it turns out, mod_security generates those when they block nasties. Gerry On 1/25/06, Thomas [EMAIL PROTECTED] wrote: Hi there! I am sitting with something of a mystery and was wondering if there is

[PHP] Counting files in directory and subdirectory!

2006-01-25 Thread Nicholas Couloute
I want a script where it will count all the amrs in a folder and it's sub folders like this setup: amrs 50 cent amrs nitty amrs bob amrs How would I do this? ~Nick Couloute co-owner/Web Designer Sidekick2Music.Com -- PHP General Mailing List (http://www.php.net/) To

[PHP] Please Help!

2006-01-25 Thread S Yang
Dear Sir/Madam: I am trying to split a DSA signature that is generated by openssl_sign() function in PHP, which should be made up of 2 numbers: r and s, but I don't know how to build the structure of the signature generated by PHP and then to split it into two numbers (r,s). Which method

Re: [PHP] Get timestamp?

2006-01-25 Thread Philip Hallstrom
How would I go about getting the timestamp of a day of the week from 7 weeks ago? In my case I'm getting the timestamp of last Sunday (no matter what day of the week it is currently) and I want to get the timestamp of the Sunday that happened 7 weeks ago. $lastSunday = strtotime(last Sunday);

Re: [PHP] Counting files in directory and subdirectory!

2006-01-25 Thread tomasz abramowicz
start here: http://www.php.net/readdir check out as well: 'string functions' for finding 'amrs' and loops to make recursive search... t. Nicholas Couloute wrote: I want a script where it will count all the amrs in a folder and it's sub folders like this setup: amrs 50 cent amrs

Re: [PHP] Get timestamp?

2006-01-25 Thread Max Schwanekamp
Jay Paulson wrote: How would I go about getting the timestamp of a day of the week from 7 weeks ago? $lastSunday = strtotime(last Sunday); $Sunday7Weeks = $lastSunday - ???; $lastsunday = strtotime(last Sunday); $sunday7weeks = $lastsunday - (86400 * 49); // 7 weeks = 49 days Test: echo

Re: [PHP] Get timestamp?

2006-01-25 Thread Max Schwanekamp
Max Schwanekamp wrote: Jay Paulson wrote: How would I go about getting the timestamp of a day of the week from 7 weeks ago? $lastsunday = strtotime(last Sunday); $sunday7weeks = $lastsunday - (86400 * 49); // 7 weeks = 49 days Oops, that would be the sunday 7 weeks prior to _last_

RE: [PHP] Counting files in directory and subdirectory!

2006-01-25 Thread Weber Sites LTD
You can start with looking at some code examples that do similar things : Directory browser http://www.weberdev.com/get_example-1539.html How to get a dir listing of the current dir of php script in an array http://www.weberdev.com/get_example-1855.html filesystem Show Files Script

Re: [PHP] Re: $_SESSION saves all values but Class -- works on one server butnot another?! [second plead for help]

2006-01-25 Thread James Benson
Daevid Vincent wrote: Thank you, but again, not the problem. The same code is on both servers. I'm not transfering from one server to another. Only from page to page ON THE SAME SERVER. This has to be a configuration problem IMHO. -Original Message- From: James Benson

[PHP] Re: forwarding from virtual email account to real email account

2006-01-25 Thread Dan Baker
Binay [EMAIL PROTECTED] wrote: Hi All, Is it possible that we create a virtual email account(no physical existence) e.g [EMAIL PROTECTED] which will be associated with a real email account e.g. [EMAIL PROTECTED] so that if any body sends the email to virtual email account [EMAIL

Re: [PHP] Please Help!

2006-01-25 Thread Michael Crute
On 1/25/06, S Yang [EMAIL PROTECTED] wrote: Dear Sir/Madam: I am trying to split a DSA signature that is generated by openssl_sign() function in PHP, which should be made up of 2 numbers: r and s, but I don't know how to build the structure of the signature generated by PHP and then to split

Re: [PHP] Please Help!

2006-01-25 Thread Steve Clay
Wednesday, January 25, 2006, 2:52:21 PM, S Yang wrote: Which method might I use to split the signature I have built in PHP into (r,s)? How can I know what the signature looks like? Run the function http://us2.php.net/openssl_sign and pass it a $signature. According to the manual, if

Re: [PHP] Counting files in directory and subdirectory!

2006-01-25 Thread Nicholas Couloute
I have used these functions but how would I count them! here is my attempt that doesn't work!: $count = 0; $dir = /amrs; $files1 = scandir($dir); if ($files1 !== '.' $files1 !== '..') { foreach ($files1 as $files2){ $dir2 = /amrs/$files2; $files3 = scandir($dir2); if ($files3 !== '.' $files3

[PHP] way to write mysqli result set to disk

2006-01-25 Thread jonathan
is there a way to write a mysqli result set to disk via file_put_contents or fwrite. it looks like we'd have to convert it to an array and then handle the array upon bringing it back in. I'm interested in writing a simple caching mechanism where sql results would be cached. thanks,

[PHP] Does file_exists() 'honour' open_basedir?

2006-01-25 Thread DRYALLS
I have 2 different PHP installs, each are slightly different versions, and each have different open_basedir restictions. I have a PHP script that fails on ONE of the installs but NOT the other. The line that fails is $foo = file_exists(/proc/loadavg); What I don't understand is why one script

[PHP] News

2006-01-25 Thread dd
Your archive is attached. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Use VAR string value AS VAR Name

2006-01-25 Thread Fernando Anchorena
I'm stuck trying to get work this : This is an example page1.php === form action=/page2.php?form=yes method=post $sql_pro =SELECT Sid FROM table; $res_pro = @mysql_query( $sql_pro); while ($campo_pro = @mysql_fetch_array($res_pro)) { $sid_pro =

[PHP] usr VAR value as a VAR Name

2006-01-25 Thread Fernando Anchorena
I'm stuck trying to get work this : This is an example page1.php === form action=/page2.php?form=yes method=post $sql_pro =SELECT Sid FROM table; $res_pro = @mysql_query( $sql_pro); while ($campo_pro = @mysql_fetch_array($res_pro)) { $sid_pro =

RE: [PHP] Use VAR string value AS VAR Name

2006-01-25 Thread Mark Steudel
Either try: $sid_pro = p.$sid_pro; or try: input name='.$p{$sid_pro}.' type= 'radio' value='SOLVE_ME'/ -Original Message- From: Fernando Anchorena [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 25, 2006 4:12 PM To: php-general@lists.php.net Subject: [PHP] Use VAR string value AS

RE: [PHP] usr VAR value as a VAR Name

2006-01-25 Thread Daevid Vincent
This is an example page1.php === form action=/page2.php?form=yes method=post $sql_pro =SELECT Sid FROM table; $res_pro = @mysql_query( $sql_pro); while ($campo_pro = @mysql_fetch_array($res_pro)) { $sid_pro = $campo_pro[Sid]; // *sid_pro = 4*

RE: [PHP] Use VAR string value AS VAR Name

2006-01-25 Thread Mark Steudel
Sorry I totally didn't read the question fully -Original Message- From: Mark Steudel [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 25, 2006 4:28 PM To: php-general@lists.php.net Subject: RE: [PHP] Use VAR string value AS VAR Name Either try: $sid_pro = p.$sid_pro; or try:

Re: [PHP] way to write mysqli result set to disk

2006-01-25 Thread Curt Zirzow
On Wed, Jan 25, 2006 at 03:39:38PM -0800, jonathan wrote: is there a way to write a mysqli result set to disk via file_put_contents or fwrite. it looks like we'd have to convert it to an array and then handle the array upon bringing it back in. I'm interested in writing a simple caching

Re: [PHP] way to write mysqli result set to disk

2006-01-25 Thread jonathan
hmm is this a mysql 5 feature. could be interesting but haven't heard much about it. -j On Jan 25, 2006, at 5:24 PM, Curt Zirzow wrote: On Wed, Jan 25, 2006 at 03:39:38PM -0800, jonathan wrote: is there a way to write a mysqli result set to disk via file_put_contents or fwrite. it looks

[PHP] Re: usr VAR value as a VAR Name

2006-01-25 Thread James Benson
if(isset($_POST['NAME_OF_FORM_VALUE'])) { // radio button was selected } Fernando Anchorena wrote: I'm stuck trying to get work this : This is an example page1.php === form action=/page2.php?form=yes method=post $sql_pro =SELECT Sid FROM table;

Re: [PHP] way to write mysqli result set to disk

2006-01-25 Thread James Benson
jonathan wrote: hmm is this a mysql 5 feature. could be interesting but haven't heard much about it. You cannot see the mysql 5 plastered all over the page? I can see at least 5 different sections that say MySQL 5 James -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] way to write mysqli result set to disk

2006-01-25 Thread David Hall
James Benson wrote: jonathan wrote: hmm is this a mysql 5 feature. could be interesting but haven't heard much about it. You cannot see the mysql 5 plastered all over the page? I can see at least 5 different sections that say MySQL 5 you obviously don't use the mysql website

[PHP] php -w causes a parse error

2006-01-25 Thread Bom Demais
I wanted to run php -w on my include files on the live server to reduce overhead. But php -w causes parse errors in the include files. Here's an example of what happens: tanner /php_files % php -l misc.inc No syntax errors detected in misc.inc tanner /php_files % php -w misc.inc

Re: [PHP] way to write mysqli result set to disk

2006-01-25 Thread PHP Superman
couldn't you serialize the data and store it? On 1/25/06, David Hall [EMAIL PROTECTED] wrote: James Benson wrote: jonathan wrote: hmm is this a mysql 5 feature. could be interesting but haven't heard much about it. You cannot see the mysql 5 plastered all over the page?

Re: [PHP] Counting files in directory and subdirectory!

2006-01-25 Thread Nicholas Couloute
here is what I tried but it doesn't work! any advice suggestions or something? $count = 0; $dir = /amrs; $files1 = scandir($dir); if ($files1 !== '.' $files1 !== '..') { foreach ($files1 as $files2){ $dir2 = /amrs/$files2; $files3 = scandir($dir2); if ($files3 !== '.' $files3 !== '..') {

[PHP] Re: php -w causes a parse error

2006-01-25 Thread Greg Beaver
Bom Demais wrote: I wanted to run php -w on my include files on the live server to reduce overhead. But php -w causes parse errors in the include files. Here's an example of what happens: tanner /php_files % php -l misc.inc No syntax errors detected in misc.inc tanner /php_files % php

Re: [PHP] way to write mysqli result set to disk

2006-01-25 Thread Russell Jones
It may be better to go ahead and convert it to an array, or something that can be handled more quickly when the cache is pulled than interpreting the result again and again and again... Really dont know, just a thought. On 1/25/06, jonathan [EMAIL PROTECTED] wrote: is there a way to write a

Re: [PHP] wrapping anchor tags around a URL

2006-01-25 Thread Richard K Miller
On Jan 25, 2006, at 10:01 AM, Ahmed Saad wrote: On 1/25/06, Ahmed Saad [EMAIL PROTECTED] wrote: On 1/25/06, Ahmed Saad [EMAIL PROTECTED] wrote: On 1/23/06, Richard K Miller [EMAIL PROTECTED] wrote: function link_the_links($s) { return preg_replace('@(http://[^\s]+)@sm', 'a href=$1

Re: [PHP] Counting files in directory and subdirectory!

2006-01-25 Thread David Tulloh
That is some nasty code... Anything that has repitition like that needs a substantial rewrite, but I'm guessing that you know that, hence the e-mail. I just knocked up the following function, powered by the magic of recursion. It should be close to what you were trying to do. function

Re: [PHP] way to write mysqli result set to disk

2006-01-25 Thread Curt Zirzow
On Wed, Jan 25, 2006 at 09:51:15PM -0500, PHP Superman wrote: couldn't you serialize the data and store it? you could, but the purpose of my reply to the OT is that there are other solutions to caching instead of inventing your own Caching things isn't the simplest of things, consider how much

Re: [PHP] way to write mysqli result set to disk

2006-01-25 Thread Curt Zirzow
On Thu, Jan 26, 2006 at 02:11:02AM +, James Benson wrote: jonathan wrote: hmm is this a mysql 5 feature. could be interesting but haven't heard much about it. You cannot see the mysql 5 plastered all over the page? The link i gave is designed to give information about the

Re: [PHP] way to write mysqli result set to disk

2006-01-25 Thread Curt Zirzow
On Wed, Jan 25, 2006 at 05:22:35PM -0800, jonathan wrote: hmm is this a mysql 5 feature. could be interesting but haven't heard much about it. No, the link i gave just does a redirect to the current stable release documentation, mysql has docs for the major releases and what each one