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, Nicholas

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

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 refresh

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

[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 house2

[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 solution?

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 PROTE

[PHP] Re: howto set variablevalue with link?

2003-08-01 Thread Craig Roberts
Yeah - 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 message news:[EMAIL

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: $_GE

[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]

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: > > http://www.ex

[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 "..." tags and I'm usign $a = fscanf($fp, "%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 questio

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)) { > >

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: You could even do this: HTH Bogdan Decapode Azur wrote: Is it possible to put PHP code in eval ? Or just vars ? $string = 'The result of '; eval ($string); ?> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.

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 softwa

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 > hous

[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 Mai

[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"; $va

[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 databas

[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 "..." tags and I'm usign $a = fscanf($fp, "%s"). the problem is, that if I use this, I get only the first word in the he

Re: [PHP] Multiple targets with fscanf

2003-08-01 Thread Marek Kilimajer
Try (untested) $a = fscanf($fp,"%s"); 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 "..."

Re: [PHP] Multiple targets with fscanf

2003-08-01 Thread Dan Anderson
Is there any reason you couldn't do something like: "); { $li_tag_start_position = strpos($buffer,""); $li_tag_end_position = strpos($buffer,""); $data = substr($buffer,(4 + $li_tag_start_position),(4 + $li_tag_end_position)); $buffer = substr($buffer, (4 + $li_tag_end_position)); } ?> Note that

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 min

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, "imr

[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 "always_popul

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, visit:

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 Mailing

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 écr

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 p

[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 sc

[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 li

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 a

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 a

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: Ev

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 ... -- 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 curren

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 old

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 = $UserI

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] > > >$Day

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 P

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 Maili

[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

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 b

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 do

[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 fo

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

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 = $UserI

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 tags around it? i mean, it's no big deal, and you don't really need it forma

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;

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: . Regards, TR

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 --

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",$

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\htdoc

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 t

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

Re: [PHP] Using eregi_replace()

2003-08-01 Thread Anthony Ritter
However, this works using: preg_replace() . Thank you all. Is there a way I can be sure of the syntax? "!.*?(hello.*going).*!", // the pattern which - I think - reads as follows: !.*? // do not use any character or characters before the grouping of hello

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 tags around > it? i mean

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 o

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; > ?> > ..

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 th

RE: [PHP] Please Help

2003-08-01 Thread Chris W. Parker
John Manko 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 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 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: http://www.php.net

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 b

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 l

RE: [PHP] Please Help

2003-08-01 Thread Chris W. Parker
Jay Blanchard 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 thei

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 > director

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 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, visi

Re: [PHP] Trouble getting $HTTP_RAW_POST_DATA

2003-08-01 Thread Philip Olson
Your script should work fine, and to fix claims made in this thread: a) $HTTP_RAW_POST_DATA is NOT an array, it's a string. b) It does not live in $_SERVER, or rely on register_globals. Your code is wrong because you don't provide names for your fields, so there is no POST data. Assign your

Re: [PHP] Multiple targets with fscanf

2003-08-01 Thread Denis 'Alpheus' Cahuk
Dan Anderson wrote: Is there any reason you couldn't do something like: "); { $li_tag_start_position = strpos($buffer,""); $li_tag_end_position = strpos($buffer,""); $data = substr($buffer,(4 + $li_tag_start_position),(4 + $li_tag_end_position)); $buffer = substr($buffer, (4 + $li_tag_end_positio

[PHP] using mail()

2003-08-01 Thread Amanda McComb
If I am using this code: mail("[EMAIL PROTECTED]", "test", "testbody"); and want to add a From: line, how do I do it? Also, is this an excepted way of sending mail from a web page? Thanks, Amanda -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsu

Re: [PHP] Re: Search Engine

2003-08-01 Thread John W. Holmes
DvDmanDT wrote: 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

RE: [PHP] using mail()

2003-08-01 Thread Jay Blanchard
[snip] If I am using this code: mail("[EMAIL PROTECTED]", "test", "testbody"); and want to add a From: line, how do I do it? Also, is this an excepted way of sending mail from a web page? [/snip] Read http://us4.php.net/manual/en/function.mail.php Example 2 (How's that Chris?) And yes, it is a

Re: [PHP] Re: Search Engine

2003-08-01 Thread John W. Holmes
John W. Holmes wrote: DvDmanDT wrote: 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

[PHP] Re: using mail()

2003-08-01 Thread Kevin Stone
"Amanda McComb" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > If I am using this code: > > mail("[EMAIL PROTECTED]", "test", "testbody"); > > and want to add a From: line, how do I do it? > > Also, is this an excepted way of sending mail from a web page? > > Thanks, > Amanda The m

[PHP] _GET question

2003-08-01 Thread Pushpinder Singh Garcha
Hello All, My application has a search / query feature where in the user selects the search criteria and is displayed a page containing the reults. The user must also be allowed to edit these results and save them later on. On the results page I use the following logic, // // START OF P

[PHP] Globals

2003-08-01 Thread Chris Boget
I'm curious if someone could explain to me why this is occuring: function blah() { //global $GLOBALS; echo 'Globals: '; print_r( $GLOBALS ); echo ''; } As it is shown above, with the 'global $GLOBALS' line commented out, the print_r() works and shows all the currently defined variables and the

[PHP] FDF Library Issues

2003-08-01 Thread Richard Lynch
Please Cc: me directly, if possible. Thanks! [This got long, but a search for "Synopsis:" (two of them) should give the gist.] Originally, the machine (Linux 2.4.19-16mdk) had Mandrake 8 RPM's of PHP 4.2.3 and Apache 1.2.26 I was able to install LIBFDFTK.SO 5.0 and the .h file, symlinked to low

Re: [PHP] Globals

2003-08-01 Thread Jim Lucas
I can't speek about the first problem, but about the second one. You are not setting the variable $blah as a global variable. Try this instead $GLOBALS['blah'] = 'bob'; and that should work. You need to look into scope when refering to variables and functions. Jim Lucas - Original Messag

  1   2   >