Re: [PHP] Mysql query and PHP loops

2003-08-01 Thread Nicholas Robinson
I think this does what you want. You can probably extend it to do the final check for val3 vs. val2 select distinct t1.val1, max( t1.id ), t1.val2 from table as t1, table as t2 where t1.val2 = t2.val2 group by t1.val1; HTH On Thursday 31 Jul 2003 3:22 pm, Petre Agenbag wrote: Hi List

Re: [PHP] Opinions on Micro$oft .NET

2003-08-01 Thread Joel Rees
I hate to rain on this parade, but, I'm a pretty good PHP programmer, and things I could knock out in a couple of hours seem to be WAY more difficult to do in .Net. This is the pith of the question. If you knew what you're doing, anything from Microsoft takes longer to do than doing it the

[PHP] Please Help

2003-08-01 Thread Sathiyabama
Dear PHP Team, I request your help to sort some issues in using PHP. 1.Chennai IIT has developed one recorder.We can record our voice and video.Its user defined extenion is MV4. My requirement is 1.I want to send video file using mail() function in PHP.So how to send it.What is the procedure?

Re: [PHP] Please Help

2003-08-01 Thread John Manko
umm... ok. www.google.com www.php.net that should get you started. Sathiyabama wrote: Dear PHP Team, I request your help to sort some issues in using PHP. 1.Chennai IIT has developed one recorder.We can record our voice and video.Its user defined extenion is MV4. My requirement is 1.I

Re: [PHP] PHP or CGI in C/C++

2003-08-01 Thread Decapode Azur
I would expect compiled C/C++ to be faster as there is no need for the code to be interperated and compiled on each request. Is it possible to compile PHP to improve the speed execution ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] eval

2003-08-01 Thread Decapode Azur
Is it possible to put PHP code in eval ? Or just vars ? ?php $string = 'The result of ?php $a=2; $b=3; $c=$a+$b; echo $a + $b is $c; ?'; eval ($string); ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP or CGI in C/C++

2003-08-01 Thread John Manko
i did a quick google, and found the following. hope it helps http://phpcomplete.com/articles.php?sec=readArticleid=306 http://www.php-accelerator.co.uk plus, there is something called PHP bcompiler (byte compiler). I dont know the details of any of these, but should help. maybe others can

Re: [PHP] Please Help

2003-08-01 Thread Joona Kulmala
My requirement is 1.I want to send video file using mail() function in PHP.So how to send it.What is the procedure? http://fi2.php.net/manual/en/ref.mail.php Check out the templates, there is described how to build mail headers with attachments. PHPs own mail function doesn't support this by

Re: [PHP] eval

2003-08-01 Thread Adrian
PHP-Code: eval('?'.$string) Vars: eval('$string='.str_replace('','\\',$string).';'); Is it possible to put PHP code in eval ? Or just vars ? ?php $string = 'The result of ?php $a=2; $b=3; $c=$a+$b; echo $a + $b is $c; ?'; eval ($string); ?

Re: [PHP] eval

2003-08-01 Thread Joona Kulmala
Decapode Azur wrote: Is it possible to put PHP code in eval ? Or just vars ? ?php $string = 'The result of ?php $a=2; $b=3; $c=$a+$b; echo $a + $b is $c; ?'; eval ($string); ? It should go like: [code] eval('$var = The result of; $a=2; $b=3; $c = $a + $b; $var .= $a + $b is $c;'); [/code]

RE: [PHP] Please Help

2003-08-01 Thread Joseph Blythe
Sathiyabama, Is always a good idea to read the manual, search google and the list archives before posting to this list, the below links should help you get started. http://www.php.net/manual/en/function.mail.php and: http://www.php.net/manual/en/function.rmdir.php Regards, Joseph

Re: [PHP] jabber - chmod on files

2003-08-01 Thread desa15
To change the rights from a php script put the following lines define('CHMOD_FILES', 0666); //define('CHMOD_DIRS', 0777); @chmod(Your file name, CHMOD_FILES); Un saludo, Danny

Re: [PHP] PHP or CGI in C/C++

2003-08-01 Thread desa15
You can install Zend Optimizer from www.zend.com is free but with comercial license. Perform some optimizations in your code to not compile the same code in each request. Un saludo, Danny

Re: [PHP] Mysql query and PHP loops

2003-08-01 Thread Nicholas Robinson
On further reflection, my first attempt works for the specific example but may not in the general case. Try using a combination of max( ...id ) and min( ...val2 ) and add t1.val2 to the group by clause. This might work, but I've deleted my test files now! On Friday 01 Aug 2003 7:04 am,

Re: [PHP] Re: include help please

2003-08-01 Thread LoonySalmon
nope, it doesn't work. it'll only call up the variables that were specified in my files.inc.php...well so far at least Curt Zirzow [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] * Thus wrote LoonySalmon ([EMAIL PROTECTED]): i want to call up my contact page, but how do i do

Re: [PHP] load the PHP script last on the page

2003-08-01 Thread Sek-Mun Wong
I agree with Chris' method, but if you don't have cron, then what I do is a page-based cache. Since weather does not change with every page hit, you could store the parsed page inside a database, or even write it to a flat file, so if the page is hit 100 times an hour, and you do an hourly

RE: [PHP] learning php - problem already

2003-08-01 Thread Ford, Mike [LSS]
-Original Message- From: CPT John W. Holmes [mailto:[EMAIL PROTECTED] Sent: 31 July 2003 15:54 you basically have this: list($k,$v,$key,$value) = array(1='abc', 'value'='abc', 0='a', 'key'='a'); So, how this works is that list starts with $value. $value is at position

[PHP] Display question

2003-08-01 Thread John T. Beresford
Hi All, I'm having a hard time wrapping my head around this. I have a query that returns the following (Sorted by col2): col1col2 - house1 Com1 house2 Com1 house3 Com2 house4 Com2 house5 Com3 house6 Com3 I would like to display it as shown below: Com 1 house1 - Com1

[PHP] Redirect to HTTPS

2003-08-01 Thread desa15
I have a stupid question. I need if i be in a http make a redirect to https. Http is a 80 port and ssl is a 443 port if ($HTTP_SERVER_VARS['SERVER_PORT']==80) { header(Location: https://mynet.com/pay.php;); exit; } Is the correct way to do this ??? Exist any function to make this

[PHP] howto set variablevalue with link?

2003-08-01 Thread Kalle Saarinen
Hello, I was wondering is it possible to set a variable value with html link? I would like to have link button in my page that changes the language. I thought to set $lang variable with the button and later use it to detedmine what to fetch from the database. What wound be the smartest

Re: [PHP] Redirect to HTTPS

2003-08-01 Thread Richard Baskett
This is how I do it: if ($_SERVER['HTTPS']!='on') { header(Location: https://mynet.com/pay.php;); exit; } It is my ambition to say in ten sentences; what others say in a whole book. - Friedrich Nietzsche From: [EMAIL PROTECTED] Date: Fri, 1 Aug 2003 10:20:58 +0200 To: [EMAIL PROTECTED]

[PHP] Re: howto set variablevalue with link?

2003-08-01 Thread Craig Roberts
Yeah - a href=page.php?lang=en then access the variable in page.php - $_GET['lang'] == en; You could then store the language variable in a cookie, session or just pass it from page to page by calling each page with page.php?lang=xx. Craig Roberts Kalle Saarinen [EMAIL PROTECTED] wrote in

Re: [PHP] howto set variablevalue with link?

2003-08-01 Thread Richard Baskett
yeah you can set a variable this way: http://www.example.com/test.php?var=something This sets the variables $var equal to something and you can use them accordingly within your script. If you have safe mode on then you'll need to access the $var variable by using the $_GET array like so:

[PHP] COUNT(*)

2003-08-01 Thread Yury B .
Hi I used to use old fashioned mysql quieries but moderm mysql apparently became more flexible so. I want to understand how to use some of the new features like COUNT(*) Let's say I have $result=SELECT COUNT(*) FROM pet; $sql=mysql_query($result); while ($row=mysql_fetch_array($sql)){

[PHP] Re: COUNT(*)

2003-08-01 Thread Craig Roberts
use mysql_fetch_rows(); $result=SELECT COUNT(*) FROM pet; $sql=mysql_query($result); $number_of_rows = mysql_fetch_rows($sql); while ($row=mysql_fetch_array($sql)){ $pet_name=$row['pet_name']; echo ..; } Craig Roberts Yury B . [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi

Re: [PHP] howto set variablevalue with link?

2003-08-01 Thread Kalle Saarinen
Jep, that did it Thanks! -Kalle - Original Message - From: Richard Baskett [EMAIL PROTECTED] To: PHP General [EMAIL PROTECTED] Sent: Friday, August 01, 2003 11:28 AM Subject: Re: [PHP] howto set variablevalue with link? yeah you can set a variable this way:

[PHP] Multiple targets with fscanf

2003-08-01 Thread Denis 'Alpheus' Cahuk
Hello! I'll get strait to the point: I want to include a header from another site ($fp = fopen(www.something.info/news.html, r)) using the fscanf command, The headers are in li... tags and I'm usign $a = fscanf($fp, li%s). the problem is, that if I use this, I get only the first word in the

Re: [PHP] COUNT(*)

2003-08-01 Thread Richard Baskett
Actually that does retrieve the number of rows.. // Query $query = SELECT COUNT(*) AS count FROM pet; // Execute Query $result = mysql_query($query); // Get the result of query named count $count = mysql_result($result,0); echo $count. is the number of rows; Cheers! Rick In order to seek

RE: [PHP] Deleteing one session

2003-08-01 Thread Ford, Mike [LSS]
-Original Message- From: Ryan A [mailto:[EMAIL PROTECTED] Sent: 31 July 2003 00:34 have around 20 sessions setup and want to delete one of them... eg: I have the following sessions: Can I just make a little correction to your terminology, as every time I read your questions

RE: [PHP] Re: include help please

2003-08-01 Thread Ford, Mike [LSS]
-Original Message- From: Jennifer Goodie [mailto:[EMAIL PROTECTED] Sent: 31 July 2003 22:42 if (isset($page)) { include $$_GET['page']; } else { $page = $home; include $page; } would that be right? or should i use if (isset($page)) { include $$_GET['page']; }

Re: [PHP] Redirect to HTTPS

2003-08-01 Thread Nicholas Robinson
It might also be worth making sure that your web server is configured to force https on this page if this is what you want. Otherwise a user could type the URL in without the HTTPS and still get the page. On Friday 01 Aug 2003 9:20 am, [EMAIL PROTECTED] wrote: I have a stupid question. I

[PHP] Re: eval

2003-08-01 Thread Bogdan Stancescu
You can put whatever you want in eval: ? $foo='foo'; $bar='bar'; echo(foo is $foo; bar is $bar); $myCode='$foo=checking eval statements; '; $myCode.='$bar=str_replace( ,--,$foo);'; eval($myCode); echo(foo is $foo; bar is $bar); ? You could even do this: ? $foo='$i++;';

RE: [PHP] Re: Opinions on Micro$oft .NET

2003-08-01 Thread Adrian Teasdale
I'd just like to say that I've found this discussion to be very interesting and enlightning. It also makes a change to see people not microsoft bashing but taking an objective view on everything. We keep getting more and more requests to develop products for .net because our clients want

Re: [PHP] Display question

2003-08-01 Thread messju mohr
On Fri, Aug 01, 2003 at 03:00:23AM -0500, John T. Beresford wrote: Hi All, I'm having a hard time wrapping my head around this. I have a query that returns the following (Sorted by col2): col1 col2 - house1Com1 house2Com1 house3Com2 house4

[PHP] reading variables in other script files

2003-08-01 Thread Kalle Saarinen
Hello I was just wondering how can I get value of a variable in php code located in a different file? ie. I have file1.php wich stores $var1 how can I read the value of $var1 in file2.php I have database and I can put it in there (I quess) but is that the only way? -Kalle -- PHP General

[PHP] Re: reading variables in other script files

2003-08-01 Thread Craig Roberts
2 ways come to mind - one's messy one isnt! Non-Messy: You could put $var1 into an include file, and include it in both file1.php and file2.php, eg: //Inc.php $var1 = some value; //file1.php include('Inc.php'); $var1 == some value; //file2.php include('inc.php'); $var1 == some value; $var1

[PHP] force load of ldap.conf

2003-08-01 Thread Turbo Fredriksson
It seems like the OpenLDAP libs is forcing a load of the ldap.conf file... In that there's the BASE option (which tells the clients where/what the base is). In my development systems, I use LDAP as database for users etc (together with Kerberos). The problem is that I also run development

[PHP] Search Engine

2003-08-01 Thread imran
Hi, Does anyone know any free search engine for web application imee

[PHP] Multiple targets with fscanf

2003-08-01 Thread Denis 'Alpheus' Cahuk
Hello! I'll get strait to the point: I want to include a header from another site ($fp = fopen(www.something.info/news.html, r)) using the fscanf command, The headers are in li... tags and I'm usign $a = fscanf($fp, li%s). the problem is, that if I use this, I get only the first word in the

Re: [PHP] Multiple targets with fscanf

2003-08-01 Thread Marek Kilimajer
Try (untested) $a = fscanf($fp,li%sli); if that does not work use regular expresions Denis 'Alpheus' Cahuk wrote: Hello! I'll get strait to the point: I want to include a header from another site ($fp = fopen(www.something.info/news.html, r)) using the fscanf command, The headers are in li...

Re: [PHP] Multiple targets with fscanf

2003-08-01 Thread Dan Anderson
Is there any reason you couldn't do something like: ?php $buffer = implode(\n,file($somesite)); while (strstr($buffer,li); { $li_tag_start_position = strpos($buffer,li); $li_tag_end_position = strpos($buffer,/li); $data = substr($buffer,(4 + $li_tag_start_position),(4 + $li_tag_end_position));

Re: [PHP] What is $$

2003-08-01 Thread Ryan A
Hi all, thanks for replying. I guess i have to read the manaul in a little more detail now and also update the manualam using last years one, i didnt think there was a big differience but i guess there is. Thanks again. Cheers, -Ryan We will slaughter you all! - The Iraqi (Dis)information

RE: [PHP] Search Engine

2003-08-01 Thread Jay Blanchard
[snip] Does anyone know any free search engine for web application [/snip] Google for web application? It's free. Oh, I get it! Google for free search engine for web application. HTH! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

FW: [PHP] Search Engine

2003-08-01 Thread Ryan Gibson
Hi, http://www.conceptx.co.uk/rpgproducts/index.php?pid=1 I made this some time ago, it could do with some work (if I remember rightly, it doesn't cut off after X amount of results, what can I say I'm lazy) id does order by relevance but requires indexing after changes. On 2/8/03 12:14 am,

[PHP] Trouble getting $HTTP_RAW_POST_DATA

2003-08-01 Thread Balazs Halasy
I need to have the contents of $HTTP_RAW_POST_DATA because of non-regular uploads (from browser to my home-made WevDAV server implementation (done in PHP)). However, no matter what I do, it is always NULL. I guess the following script should return SOMETHING in $HTTP_RAW_POST DATA if

Re: [PHP] Trouble getting $HTTP_RAW_POST_DATA

2003-08-01 Thread John W. Holmes
Balazs Halasy wrote: I need to have the contents of $HTTP_RAW_POST_DATA because of non-regular uploads (from browser to my home-made WevDAV server implementation (done in PHP)). However, no matter what I do, it is always NULL. I guess the following script should return SOMETHING in $HTTP_RAW_POST

[PHP] Frames and variables

2003-08-01 Thread Kalle Saarinen
Hi, I have a site that uses frames. On one frame i have buttons to select the language. When user hits the button to select the language it is supposed to change in both frames. Any idea how to do this? Thanks -Kalle -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] Upload scripts timing out

2003-08-01 Thread Marek Kilimajer
check php.ini for max_input_time Josh Abernathy wrote: My current upload script times out too quickly when users are uploading large files. How can I stop this from happening? Thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Frames and variables

2003-08-01 Thread Jay Blanchard
[snip] I have a site that uses frames. On one frame i have buttons to select the language. When user hits the button to select the language it is supposed to change in both frames. Any idea how to do this? [/snip] Please read http://www.w3.org/TR/html4/present/frames.html -- PHP General

Re: [PHP] Trouble getting $HTTP_RAW_POST_DATA

2003-08-01 Thread Baroiller Pierre-Emmanuel
Hi, $HTTP_RAW_POST_DATA is an array... with echo you'll only get array.. To get something into $HTTP_RAW_POST_DATA, you need to submit your form before... Your script will only display something if you post the form before. Regards, P.E. Baroiller John W. Holmes [EMAIL PROTECTED] a écrit dans

RE: [PHP] Trouble getting $HTTP_RAW_POST_DATA

2003-08-01 Thread Donald Tyler
You should encase the $HTTP_RAW_POST_DATA in print_r() or you will just get the word Array printed. But I doubt that will solver your problem because it seems that $HTTP_RAW_POST_DATA is empty. Also, print_r() does not include any HTML formatting, so you will need to look at the source for the

[PHP] Purging old files from directories

2003-08-01 Thread Verdon vaillancourt
Hi :) I need to write a script that will scan/read a given directory's contents and delete files older than a certain date. Ideally, this will be a script that runs via cron once a week and deletes all files it finds in the directory older than 2 weeks from the current date. I do currently have

[PHP] Undefined variable problem

2003-08-01 Thread Ryan A
Hi, This is the following code given to me by Jenniffer Goodie (thank you) which is working great but is throwing this notice: Notice: Undefined variable: email1 in c:\phpdev\www\bwh\project\compare.php on line 117 Notice: Undefined variable: address1 in c:\phpdev\www\bwh\project\compare.php on

Re: [PHP] Undefined variable problem

2003-08-01 Thread David Nicholson
Hello, This is a reply to an e-mail that you wrote on Fri, 1 Aug 2003 at 14:47, lines prefixed by '' were originally written by you. Notice: Undefined variable: email1 in c:phpdevwwwbwhprojectcompare.php on line 117 $$tmp.= $value; /* This is the error line 117*** */ You are

Re: [PHP] Undefined variable problem

2003-08-01 Thread Joona Kulmala
Hello This is the code: $m = 1; while ($line = mysql_fetch_assoc($rs)) { //dumping into an array foreach ($line as $field = $value) { $tmp = $field.$m; $$tmp.= $value; /* This is the error line 117*** */ } $m++; } This is basically so that i can use the

Re: [PHP] Undefined variable problem

2003-08-01 Thread Ryan A
IT WORKS!!! Thanks for replying and the solution. Cheers, -Ryan Hello, This is a reply to an e-mail that you wrote on Fri, 1 Aug 2003 at 14:47, lines prefixed by '' were originally written by you. Notice: Undefined variable: email1 in c:phpdevwwwbwhprojectcompare.php on line 117 $$tmp.=

Re: [PHP] [PHP-WIN] http://www.zend.com/manual/function.memory-get-usage.php(fwd)

2003-08-01 Thread Miha Nedok
The function doesn't exist but it should since 4.3.2, i'm using the official win32 builds from PHP. Yes, win32 :) Hmmm... we have to do what we have to do to pay the bills, don't you agree ? :)) -Mike On Wed, 30 Jul 2003, Evan Nemerson wrote: Date: Wed, 30 Jul 2003 19:32:11 -0700 From:

Re: [PHP] Trouble getting $HTTP_RAW_POST_DATA

2003-08-01 Thread skate
Also, print_r() does not include any HTML formatting, so you will need to look at the source for the page in the browser to make it readable. or your could use pre.../pre -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Purging old files from directories

2003-08-01 Thread Marek Kilimajer
Verdon vaillancourt wrote: Hi :) I need to write a script that will scan/read a given directory's contents and delete files older than a certain date. Ideally, this will be a script that runs via cron once a week and deletes all files it finds in the directory older than 2 weeks from the

Re: [PHP] Purging old files from directories

2003-08-01 Thread Jason Wong
On Friday 01 August 2003 21:40, Verdon vaillancourt wrote: I need to write a script that will scan/read a given directory's contents and delete files older than a certain date. Ideally, this will be a script that runs via cron once a week and deletes all files it finds in the directory older

Re: [PHP] Purging old files from directories

2003-08-01 Thread Verdon vaillancourt
Thank you :) On 8/1/03 10:06 AM, Marek Kilimajer [EMAIL PROTECTED] wrote: Begin in the manual: Directory functions Filesystem functions - filemtime() -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Simple Math Calculation Problem....

2003-08-01 Thread Scott Fletcher
Hi! I'm a little stuck with this simple math problem. I'm trying to get a number of days in integer, not float. --snip-- $input_date = 12/16/2002; $UserInput = explode(/, $input_date); $UserInputMonth = $UserInput[0]; $UserInputDay = $UserInput[1]; $UserInputYear =

Re: [PHP] Simple Math Calculation Problem....

2003-08-01 Thread skate
$Days = (($clockDate - $inputDate) / (24 * 3600)); $Days = int(($clockDate - $inputDate) / (24 * 3600)); you tried that? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Simple Math Calculation Problem....

2003-08-01 Thread Buntin, Seth - KATE
I used your snip you just posted and changed the $Days = round(Days) to $Days = round($Days) and got 228. -Original Message- From: Scott Fletcher [mailto:[EMAIL PROTECTED] Sent: Friday, August 01, 2003 9:18 AM To: [EMAIL PROTECTED] Subject: [PHP] Simple Math Calculation Problem Hi!

Re: [PHP] Simple Math Calculation Problem....

2003-08-01 Thread Scott Fletcher
The int() function is for C/C++ programming only. This Int() function is not supported in PHP. In PHP it would be Intval(). For float, Floatval(). For double, DoubleVal(). Etc. But beware of the Octual numbers. Skate [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] $Days =

Re: [PHP] Simple Math Calculation Problem....

2003-08-01 Thread Scott Fletcher
Gee! I forgot the '$'. It's been right there in my face. Thanks! I hope the round() function work without a problem because I saw in some posting that some people have this problem where if 3.51 is rounded, it return a 3. Seth - Kate Buntin [EMAIL PROTECTED] wrote in message news:[EMAIL

Re: [PHP] Simple Math Calculation Problem....

2003-08-01 Thread skate
The int() function is for C/C++ programming only. This Int() function is not supported in PHP. In PHP it would be Intval(). For float, Floatval(). For double, DoubleVal(). Etc. But beware of the Octual numbers. sorry, confusing my flash action script again :( -- PHP General Mailing

[PHP] Using eregi_replace()

2003-08-01 Thread Anthony Ritter
Using eregi_replace(), is there a way to take out a piece of a sentence - which has spaces - and then return the new sentence? For example, to return the new sentence: hello I must be going from the original sentence: blah blah blah hello I must be going blah blah. I tried:

[PHP] Re: Search Engine

2003-08-01 Thread DvDmanDT
I use to write my own search engines... That way they get customized easier... You can write one that spiders like google... Hell, it even found my private server... And there's not a single link ther afaik.. Now, is it for web or site search? If site, just get a MySQL table with a longtext in it

[PHP] Re: What is $$

2003-08-01 Thread DvDmanDT
Well, it's a variable that tells php what variable to use... so it's like if $var is hello, then $$var is the same as $hello... -- // DvDmanDT MSN: [EMAIL PROTECTED] Mail: [EMAIL PROTECTED] Ryan A [EMAIL PROTECTED] skrev i meddelandet news:[EMAIL PROTECTED] Hi, I have just found this in my

Re: [PHP] Using eregi_replace()

2003-08-01 Thread messju mohr
On Fri, Aug 01, 2003 at 10:33:50AM -0400, Anthony Ritter wrote: Using eregi_replace(), is there a way to take out a piece of a sentence - which has spaces - and then return the new sentence? For example, to return the new sentence: hello I must be going from the original sentence:

Re: [PHP] Trouble getting $HTTP_RAW_POST_DATA

2003-08-01 Thread Curt Zirzow
* Thus wrote Donald Tyler ([EMAIL PROTECTED]): Also, print_r() does not include any HTML formatting, so you will need to look at the source for the page in the browser to make it readable. This is a problem I run into all the time, I am curious of how many people have run into this. I've

Re: [PHP] Using eregi_replace()

2003-08-01 Thread Curt Zirzow
* Thus wrote messju mohr ([EMAIL PROTECTED]): On Fri, Aug 01, 2003 at 10:33:50AM -0400, Anthony Ritter wrote: i would suggest preg_replace in favour to ereg_replace: $newtext= preg_replace(!.*?(hello.*going).*!,$1,$text); Doesn't the $1 need to be escaped or in single quotes so php doesn't

[PHP] XmlRPC Extension in Apache 4.2.3

2003-08-01 Thread Donald Tyler
Hi Everyone, I posted this on the PHP install list but didn't get a reply. I hope you guys/gals can be more helpful. I am having trouble getting the XmlRpc extension working with PnP 4.2.3. SYSTEM: Windows XP Pro PHP 4.2.3 (Running as Apache module) Apache 2.0.44 When Apache starts I get the

Re: [PHP] Using eregi_replace()

2003-08-01 Thread Marek Kilimajer
And besides ereg_replace would not work becase it's greedy, .* would match going, than going would not be found and the whole match would fail. messju mohr wrote: you mean $newtext= ereg_replace(.*?(hello.*going).*,\\1,$text); ?? i would suggest preg_replace in favour to ereg_replace:

Re: [PHP] Simple Math Calculation Problem....

2003-08-01 Thread Curt Zirzow
* Thus wrote Scott Fletcher ([EMAIL PROTECTED]): The int() function is for C/C++ programming only. This Int() function is not supported in PHP. In PHP it would be Intval(). For float, Floatval(). For double, DoubleVal(). Etc. But beware of the Octual numbers. You can cast like you can in

Re: [PHP] Simple Math Calculation Problem....

2003-08-01 Thread Curt Zirzow
* Thus wrote Scott Fletcher ([EMAIL PROTECTED]): Hi! I'm a little stuck with this simple math problem. I'm trying to get a number of days in integer, not float. --snip-- $input_date = 12/16/2002; $UserInput = explode(/, $input_date); $UserInputMonth = $UserInput[0];

Re: [PHP] Trouble getting $HTTP_RAW_POST_DATA

2003-08-01 Thread skate
Since print_r is usually used for debugging, it would be nice that php does this for you. Any comments on this before i throw the idea to the php-dev list? if it's just used for debugging, can't you just use the pre tags around it? i mean, it's no big deal, and you don't really need it

Re: [PHP] Undefined variable problem

2003-08-01 Thread Curt Zirzow
* Thus wrote Ryan A ([EMAIL PROTECTED]): Notice: Undefined variable: email1 in c:\phpdev\www\bwh\project\compare.php on line 117 [...] $m = 1; while ($line = mysql_fetch_assoc($rs)) { //dumping into an array foreach ($line as $field = $value) { $tmp = $field.$m; $$tmp.=

Re: [PHP] Using eregi_replace()

2003-08-01 Thread Anthony Ritter
Messju Mohr [EMAIL PROTECTED] writes: you mean $newtext= ereg_replace(.*?(hello.*going).*,\\1,$text); ?? .. Thank you but I get: Warning: REG_BADRPT: in c:\apache\htdocs\string.php on line 3 Using: . ? $text=blah blah blah hello I must be

Re: [PHP] Search Engine

2003-08-01 Thread Curt Zirzow
* Thus wrote Jay Blanchard ([EMAIL PROTECTED]): Google for free search engine for web application. I always find it hard to search for the term 'free'. I'd like to see the day when you can do this in google: free search engine for web application -ignore_stupid_sites cheers, Curt -- I

Re: [PHP] Using eregi_replace()

2003-08-01 Thread messju mohr
On Fri, Aug 01, 2003 at 03:13:53PM +, Curt Zirzow wrote: * Thus wrote messju mohr ([EMAIL PROTECTED]): On Fri, Aug 01, 2003 at 10:33:50AM -0400, Anthony Ritter wrote: i would suggest preg_replace in favour to ereg_replace: $newtext= preg_replace(!.*?(hello.*going).*!,$1,$text);

Re: [PHP] XmlRPC Extension in Apache 4.2.3

2003-08-01 Thread Marek Kilimajer
If I remember well this error is output even if the php_*.dll is found, but php fails to load it, possibly because of missing library/dll. Maybe xmlrpc.dll? Donald Tyler wrote: Hi Everyone, I posted this on the PHP install list but didn't get a reply. I hope you guys/gals can be more helpful.

Re: [PHP] Using eregi_replace()

2003-08-01 Thread messju mohr
On Fri, Aug 01, 2003 at 11:25:07AM -0400, Anthony Ritter wrote: Messju Mohr [EMAIL PROTECTED] writes: you mean $newtext= ereg_replace(.*?(hello.*going).*,\\1,$text); ?? .. Thank you but I get: Warning: REG_BADRPT: in c:\apache\htdocs\string.php on

Re: [PHP] Trouble getting $HTTP_RAW_POST_DATA

2003-08-01 Thread Chris Shiflett
--- Curt Zirzow [EMAIL PROTECTED] wrote: Since print_r is usually used for debugging, it would be nice that php does this for you. Any comments on this before i throw the idea to the php-dev list? As of 4.3.0, you can store the output of print_r() in a variable, so that allows developers to do

Re: [PHP] Using eregi_replace()

2003-08-01 Thread messju mohr
On Fri, Aug 01, 2003 at 05:13:05PM +0200, Marek Kilimajer wrote: And besides ereg_replace would not work becase it's greedy, .* would match going, than going would not be found and the whole match would fail. nope, it would backtrace then. but the first .* ist greedy so it would match the

Re: [PHP] Using eregi_replace()

2003-08-01 Thread Anthony Ritter
However, this works using: preg_replace() . ? $text=blah blah blah hello I must be going blah blah; $newtext= preg_replace(!.*?(hello.*going).*!,$1,$text); echo $newtext; ? Thank you all. Is there a way I can be sure of the syntax? !.*?(hello.*going).*!,

Re: [PHP] Trouble getting $HTTP_RAW_POST_DATA

2003-08-01 Thread Curt Zirzow
* Thus wrote skate ([EMAIL PROTECTED]): Since print_r is usually used for debugging, it would be nice that php does this for you. Any comments on this before i throw the idea to the php-dev list? if it's just used for debugging, can't you just use the pre tags around it? i mean, it's

Re: [PHP] Trouble getting $HTTP_RAW_POST_DATA

2003-08-01 Thread Curt Zirzow
* Thus wrote Chris Shiflett ([EMAIL PROTECTED]): --- Curt Zirzow [EMAIL PROTECTED] wrote: Since print_r is usually used for debugging, it would be nice that php does this for you. Any comments on this before i throw the idea to the php-dev list? As of 4.3.0, you can store the output of

Re: [PHP] Using eregi_replace()

2003-08-01 Thread messju mohr
On Fri, Aug 01, 2003 at 11:36:29AM -0400, Anthony Ritter wrote: However, this works using: preg_replace() . ? $text=blah blah blah hello I must be going blah blah; $newtext= preg_replace(!.*?(hello.*going).*!,$1,$text); echo $newtext; ? Thank you

Re: [PHP] Using eregi_replace()

2003-08-01 Thread skate
you could also use different delimiters and write for example: '/.*?(hello.*going).*/' or '[.*?(hello.*going).*]' the regular expression itself is merely .*?(hello.*going).* which matches the whole string and replaces it by the first matching expression sourrounded in by ()s (thats the

RE: [PHP] Please Help

2003-08-01 Thread Chris W. Parker
John Manko mailto:[EMAIL PROTECTED] on Thursday, July 31, 2003 11:26 PM said: umm... ok. www.google.com www.php.net that should get you started. It's always funny how people think these kinds of posts are helpful. c. -- PHP General Mailing List (http://www.php.net/) To

RE: [PHP] Please Help

2003-08-01 Thread Jay Blanchard
[snip] John Manko mailto:[EMAIL PROTECTED] on Thursday, July 31, 2003 11:26 PM said: umm... ok. www.google.com www.php.net that should get you started. It's always funny how people think these kinds of posts are helpful. [/snip] They're not? -- PHP General Mailing List

RE: [PHP] Please Help

2003-08-01 Thread Chris W. Parker
Jay Blanchard mailto:[EMAIL PROTECTED] on Friday, August 01, 2003 8:54 AM said: It's always funny how people think these kinds of posts are helpful. [/snip] They're not? Yes, they are not. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Using eregi_replace()

2003-08-01 Thread messju mohr
On Fri, Aug 01, 2003 at 04:51:38PM +0100, skate wrote: you could also use different delimiters and write for example: '/.*?(hello.*going).*/' or '[.*?(hello.*going).*]' the regular expression itself is merely .*?(hello.*going).* which matches the whole string and replaces it by the first

RE: [PHP] Please Help

2003-08-01 Thread Jay Blanchard
[snip] It's always funny how people think these kinds of posts are helpful. [/snip] They're not? Yes, they are not. [/snip] Hmmm, let's see. The post had no clarity in the subject line, the post showed no sense of I tried to look it up, the post was vague, shall I go on? Folks on the list

RE: [PHP] Please Help

2003-08-01 Thread Chris W. Parker
Jay Blanchard mailto:[EMAIL PROTECTED] on Friday, August 01, 2003 9:02 AM said: Hmmm, let's see. The post had no clarity in the subject line, the post showed no sense of I tried to look it up, the post was vague You have three options: 1. Explain to them how they could have made their

Re: [PHP] Purging old files from directories

2003-08-01 Thread Curt Zirzow
* Thus wrote Verdon vaillancourt ([EMAIL PROTECTED]): Hi :) I need to write a script that will scan/read a given directory's contents and delete files older than a certain date. Ideally, this will be a script that runs via cron once a week and deletes all files it finds in the directory

RE: [PHP] Please Help

2003-08-01 Thread Jay Blanchard
[snip] 1. Which do you think is most helpful and benefits the list the most? [/snip] Give a man a program, frustrate him for a day, teach a man to program, frustrate him for a lifetime. IOW send a person to start learning. The question was so vague that the answers given were appropriate. [snip]

RE: [PHP] Please Help

2003-08-01 Thread Chris W. Parker
Jay Blanchard mailto:[EMAIL PROTECTED] on Friday, August 01, 2003 9:24 AM said: Sigh. What happened to the two *'s? I'm going to take this opportunity to be the bigger man and say I respect your opinion. ;) Chris. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

  1   2   >