RE: [PHP] Pb'lm of Regular Expression

2004-11-07 Thread nate
These MIGHT work... I don't know though (not too good with regex). Nate -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Sunday, November 07, 2004 10:29 PM To: [EMAIL PROTECTED] Subject: [PHP] Pb'lm of Regular Expression Hi to all My problem is that i want

Re: [PHP] Big table dump stopping in between

2004-11-07 Thread Ritesh Nadhani
Hello, Here is page that shows phpinfo() in my webserver. http://www.webyog.com/indexsam.php As I can see, the configure command has '--enable-safe-mode' but in the PHP core configuration - safe_mode is set to off. The max_execution_time is given to be 30 by default, but in my PHP i have set se

Re: [PHP] pspell problems

2004-11-07 Thread Noodles
Jason Wong wrote: --with-pspell=/usr is what you want. I tried this and it still didn't help things Execute: find / -name '*[a|p]spell*' | sort | less and see if 'aspell.h'/'pspell.h' and 'libaspell.so'/'libpspell.so' are in there somewhere. I have: /usr/include/aspell.h /usr/lib/libaspell.

[PHP] Pb'lm of Regular Expression

2004-11-07 Thread ankur_os
Hi to all My problem is that i want to create one regular expression which can fatch this image tag from my site "https://abc.com/first.php? site_id=abc&aid=keyin&lid=keyin&ref=&q=\" width=\"1\" height=\"1\">"; http://www.mysite.com";); function print_links($url) { $page_contents = file_g

Re: [PHP] pspell problems

2004-11-07 Thread Jason Wong
On Monday 08 November 2004 01:19, Noodles wrote: > John Nichel wrote: > > If Debian is like Red Hat, you will also need to install some type of > > development package for aspell (aspell-devel in Red Hat), or install > > from source so that the headers are present on your system. You may > > also

Re: [PHP] Sessions with session.use_only_cookies

2004-11-07 Thread Chris Shiflett
--- Don <[EMAIL PROTECTED]> wrote: > What I'm wondering is, is there a test that will tell me a visitor > has blocked cookies, so I can suppress any actions specific to a > session? I have some example code here: http://shiflett.org/books/http-developers-handbook/code It mostly demonstrates HTTP

[PHP] Sessions with session.use_only_cookies

2004-11-07 Thread Don
I'd like to use sessions, but implement a bit of security. As of v4.3, I have the ability to ini_set an option called session.use_only_cookies that will limit sessions to those situations where cookies are enabled, so SID won't automatically be placed in a URL. What I'm wondering is, is there a

Re: [PHP] Recover POST form

2004-11-07 Thread Ligaya Turmelle
Try using the $_POST. Reference: http://www.php.net/language.variables.predefined Respectfully, Ligaya Turmelle Christian Ista wrote: Hello, In a PHP page I use a form with POST method. I'd like in the action page recover all the variable posted. Could you tell me how to do that ? Thanks, Christi

Re: [PHP] OOP, Out of Scope Issue

2004-11-07 Thread Jonathan Chum
Awesome, great tip. It works just fine in PHP 5, but after gooogling more information about references and values, it appears that PHP 5 supports references automatically. I was trying to get it to work under 4.3.8 which I had to use the &. For anyone else, this page goes into more depth: http

Re: [PHP] You know you're a geek when...

2004-11-07 Thread raditha dissanayake
Ryan King wrote: On Sunday, November 07, 2004, at 10:38PM, raditha dissanayake <[EMAIL PROTECTED]> wrote: Murray @ PlanetThoughtful wrote: .You upgrade MySQL from 4.0.x to 4.1.x and you get excited because now you can include subselects in your pages. You know you're a geek when you

RE: [PHP] OOP, Out of Scope Issue

2004-11-07 Thread Zareef Ahmed
Hi, Please visit http://www.phpcertification.com/manual.php/functions.arguments.html#func tions.arguments.by-reference Hope it will be helpful. zareef Ahmed -Original Message- From: Jonathan Chum [mailto:[EMAIL PROTECTED] Sent: Monday, November 08, 2004 9:52 AM To: [EMAIL PROTEC

Re: [PHP] You know you're a geek when...

2004-11-07 Thread Ryan King
On Sunday, November 07, 2004, at 10:38PM, raditha dissanayake <[EMAIL PROTECTED]> wrote: >Murray @ PlanetThoughtful wrote: > >>.You upgrade MySQL from 4.0.x to 4.1.x and you get excited because now you >>can include subselects in your pages. >> >> >You know you're a geek when you know which l

Re: [PHP] You know you're a geek when...

2004-11-07 Thread raditha dissanayake
Murray @ PlanetThoughtful wrote: .You upgrade MySQL from 4.0.x to 4.1.x and you get excited because now you can include subselects in your pages. You know you're a geek when you know which list deals with which top and when you know that subselects in mysql is not much faster than the nested

RE: [PHP] loking for a item in string?

2004-11-07 Thread Murray @ PlanetThoughtful
> You've just hijacked this thread. > > Please start a new message instead of replying to a message and > changing the subject to talk about something else.\ Hi Curt, It would have been helpful if you'd included a little of the post you are concerned about. The last reply I have in this thread

[PHP] OOP, Out of Scope Issue

2004-11-07 Thread Jonathan Chum
I have a class called FrontEnd which extends a TemplateManager class. The purpose of the TemplateManager class is to initate Smarty. So my FrontEnd constructor looks like this: function FrontEnd() { $db = new DatabaseConnection(); $this->db = $db->initDatabase(); $this->sm = $this->

[PHP] You know you're a geek when...

2004-11-07 Thread Murray @ PlanetThoughtful
.You upgrade MySQL from 4.0.x to 4.1.x and you get excited because now you can include subselects in your pages. Much warmth, Murray http://www.planetthoughtful.org Building a thoughtful planet, One quirky comment at a time. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visi

Re: [PHP] pspell problems

2004-11-07 Thread Noodles
John Nichel wrote: Well, the header file is in /usr/include, so try ./configure --with-pspell=/usr Still the same message =/ I tried it with --with-pspell=/usr and then --with-pspell=/usr/include but no luck Nick -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http:/

Re: [PHP] pspell problems

2004-11-07 Thread John Nichel
Noodles wrote: John Nichel wrote: If Debian is like Red Hat, you will also need to install some type of development package for aspell (aspell-devel in Red Hat), or install from source so that the headers are present on your system. You may also need to point the php configure script to the loc

RE: [PHP] Automatic Execution of Function

2004-11-07 Thread Mike
Yes, you could very easily create a Windows Scheduled Task to call php.exe with the path to the script you write. -M -Original Message- From: Matthew Davey [mailto:[EMAIL PROTECTED] Sent: Sunday, November 07, 2004 10:50 PM To: 'Kevin Javia' Cc: [EMAIL PROTECTED] Subject: RE: [PHP] Automa

RE: [PHP] Automatic Execution of Function

2004-11-07 Thread Matthew Davey
Execute the script with a cron'd event. (assuming this is nix based) If its not, I am pretty sure there is a similar system for windows. -Original Message- From: Kevin Javia [mailto:[EMAIL PROTECTED] Sent: November 7, 2004 22:28 To: [EMAIL PROTECTED] Subject: [PHP] Automatic Execution of

Re: [PHP] Automatic Execution of Function

2004-11-07 Thread Ryan King
On Sunday, November 07, 2004, at 09:38PM, Kevin Javia <[EMAIL PROTECTED]> wrote: >Hi, > >I need to make a function that will execute "automatically" at some regular >intervals. > >Is it possible? If yes, can any give me some hint how can I make such thing? > >Thanks. >Kevin. > I presume you're

[PHP] Automatic Execution of Function

2004-11-07 Thread Kevin Javia
Hi, I need to make a function that will execute "automatically" at some regular intervals. Is it possible? If yes, can any give me some hint how can I make such thing? Thanks. Kevin. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] FW by MAILER-DAEMON@pb1.pair.com : *****SPAM_sub***** failure notice

2004-11-07 Thread Curt Zirzow
* Thus wrote Michelle Konzack: > Hello, > > Whats going on with the ListServer of php.net ? > > For every Message I send I get an error Message... > But the E-Mails was correctly delivered... > This is rather new.. I'm looking into why this is occuring. Curt -- Quoth the Raven, "Nevermore."

[PHP] apache 2, mysql 5.0.1.rpm and php 5.0.2 on RH9

2004-11-07 Thread Haseeb Iqbal
using >> apache 2, mysql 5.0.1 rpm install, php 5.0.2 i want to install php with both mysql and mysqli support. but everytime i get this error. help please. configure command == ./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql=/usr --with-mysqli=/u

[PHP] Search engine for my unicode site

2004-11-07 Thread Sadeq Naqashzade
Hi, What search engine script you recommend to use for my Unicode web site (English/Persian/Arabic at least) ?. It must able crawel my html files too. and I prefer to able index my database driven pages too. - Sadeq -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://

RE: [PHP] Search engine : build a new one or use an alreadry existing one ?

2004-11-07 Thread Nick Le Mouton
I believe swish-e does Unicode, but I'm not 100% sure Nick -Original Message- From: Sadeq Naqashzade [mailto:[EMAIL PROTECTED] Sent: Monday, 8 November 2004 2:57 p.m. To: Noodles Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Search engine : build a new one or use an alreadry existing one ?

Re: [PHP] Search engine : build a new one or use an alreadry existing one ?

2004-11-07 Thread Sadeq Naqashzade
Hi Can I use them (swish-e & HtDig) for unicode scripts? Sadeq On Mon, 08 Nov 2004 13:49:32 +1300, Noodles <[EMAIL PROTECTED]> wrote: > Curt Zirzow wrote: > > > > * Thus wrote robert mena: > > > >>Hi, > >> > >>I need to improve my current "search mecanism" but got stuck in a > >>dilema : build

Re: [PHP] pspell problems

2004-11-07 Thread Noodles
John Nichel wrote: If Debian is like Red Hat, you will also need to install some type of development package for aspell (aspell-devel in Red Hat), or install from source so that the headers are present on your system. You may also need to point the php configure script to the location of your

Re: [PHP] Search engine : build a new one or use an alreadry existing one ?

2004-11-07 Thread Noodles
Curt Zirzow wrote: * Thus wrote robert mena: Hi, I need to improve my current "search mecanism" but got stuck in a dilema : build one or use an existing engine? My site, that uses php/smarty allows my users to browse products in a category listing or search. Currently my search only performs a 'se

Re: [PHP] pspell problems

2004-11-07 Thread Noodles
John Nichel wrote: Noodles wrote: I tried it with just aspell (including the aspell-en dictionary package) and whenever I tried to configure php to use pspell it couldn't find pspell (./configure --with-pspell) If Debian is like Red Hat, you will also need to install some type of development pa

Re: [PHP] Syntax Limitation - dynamic static member access

2004-11-07 Thread Curt Zirzow
* Thus wrote Jake Press: > Oops, sorry :( > I accidentally hi-jacked another thread. Thanks for taking notice :) > Here are the relevant posts for anyone thats reading: > - http://news.php.net/php.general/201395 > - http://news.php.net/php.general/201403 > - http://news.php.net/php.general/201

[PHP] Re: Search engine : build a new one or use an alreadry existing one ?

2004-11-07 Thread Manuel Lemos
Hello, On 11/07/2004 09:10 PM, Robert Mena wrote: > I need to improve my current "search mecanism" but got stuck in a > dilema : build one or use an existing engine? > > My site, that uses php/smarty allows my users to browse products in a > category listing or search. Currently my search only per

Re: [PHP] Search engine : build a new one or use an alreadry existing one ?

2004-11-07 Thread Curt Zirzow
* Thus wrote robert mena: > Hi, > > I need to improve my current "search mecanism" but got stuck in a > dilema : build one or use an existing engine? > > My site, that uses php/smarty allows my users to browse products in a > category listing or search. Currently my search only performs a > 'sel

Re: [PHP] Array_Walk error messages

2004-11-07 Thread Curt Zirzow
* Thus wrote Stuart Felenstein: > Can anyone give me a clue what I have done wrong here. > > //These would be passed as ints: > array_walk($l_industry, 'mysql_escape_string'); > Warning: Wrong parameter count for > mysql_escape_string() in > /xxx//public_html/Test2.php on line 104 > The call

Re: [PHP] pspell problems

2004-11-07 Thread John Nichel
Noodles wrote: I tried it with just aspell (including the aspell-en dictionary package) and whenever I tried to configure php to use pspell it couldn't find pspell (./configure --with-pspell) If Debian is like Red Hat, you will also need to install some type of development package for aspell (as

[PHP] Syntax Limitation - dynamic static member access

2004-11-07 Thread Jake Press
Oops, sorry :( I accidentally hi-jacked another thread. Here are the relevant posts for anyone thats reading: - http://news.php.net/php.general/201395 - http://news.php.net/php.general/201403 - http://news.php.net/php.general/201405 - http://news.php.net/php.general/201410 - http://news.php.net/php

Re: [PHP] Extension help

2004-11-07 Thread Curt Zirzow
* Thus wrote Kevin: > Hello all, > I have the source code for a C library who's functions i wish to > expose to php. Ideally i'd like to be able to use dl() or put the > library file location into php.ini to allow use of the functions. Look at http://pecl.php.net, it is dedicated to pro

Re: [PHP] Is that something like perldoc in PHP ?

2004-11-07 Thread Curt Zirzow
You've just hijacked this thread. Please start a new message instead of replying to a message and changing the subject to talk about something else. Curt -- Quoth the Raven, "Nevermore." -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Syntax problem - dynamic static member access

2004-11-07 Thread Curt Zirzow
You've just hijacked this thread. Please start a new message instead of replying to a message and changing the subject to talk about something else. Curt -- Quoth the Raven, "Nevermore." -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] loking for a item in string?

2004-11-07 Thread Curt Zirzow
You've just hijacked this thread. Please start a new message instead of replying to a message and changing the subject to talk about something else. Curt -- Quoth the Raven, "Nevermore." -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Search engine : build a new one or use an alreadry existing one ?

2004-11-07 Thread robert mena
Hi, I need to improve my current "search mecanism" but got stuck in a dilema : build one or use an existing engine? My site, that uses php/smarty allows my users to browse products in a category listing or search. Currently my search only performs a 'select xxx from where field like ' and show t

[PHP] Array_Walk error messages

2004-11-07 Thread Stuart Felenstein
Can anyone give me a clue what I have done wrong here. //These would be passed as ints: array_walk($l_industry, 'mysql_escape_string'); Warning: Wrong parameter count for mysql_escape_string() in /xxx//public_html/Test2.php on line 104 //These would be passed as ints: array_walk($l_tterm, 'my

Re: [PHP] Re: Syntax problem - dynamic static member access

2004-11-07 Thread Jake Press
Thanks Tul, Okay, so its a limitation :( I cant find the line of posts, any idea on it - or possible keywords i can google with ? I'd like to find out the reasons behind why this a fixed limitation Best Regards Jake Press M. Sokolewicz wrote: hi, it's a limitation, and not allowed

[PHP] FW by MAILER-DAEMON@pb1.pair.com : *****SPAM_sub***** failure notice

2004-11-07 Thread Michelle Konzack
Hello, Whats going on with the ListServer of php.net ? For every Message I send I get an error Message... But the E-Mails was correctly delivered... Greetings Michelle -- Linux-User #280138 with the Linux Counter, http://counter.li.org/ Michelle Konzack Apt. 917 ICQ #3284

[PHP] Re: Is there an HTTP server that parses PHP that will run on the Axim x3i?

2004-11-07 Thread Megiddo
[EMAIL PROTECTED] (Megiddo) wrote in message news:<[EMAIL PROTECTED]>... > Is there an HTTP server that parses PHP that will run on the Axim x3i? > > I'd really like to know the answer to this question. > > I'm a big PHP programmer, and would love to be able to test my scripts on my > Axim. Any

[PHP] [SOLVED] Re: Wirred problem with "500 Internal Server Error"

2004-11-07 Thread Michelle Konzack
Hello all, it was realy stupid... One of my VirtualHosts had AddHandler cgi-script .php .cgi .sh .pl but NOT inside the directive... ...and has blocked all Greetings Michelle -- Linux-User #280138 with the Linux Counter, http://counter.li.org/ Michelle Konzack Apt. 917

Re: [PHP] Auto Form Fill on option select

2004-11-07 Thread Jonel Rienton
This can be done with javascript or you can use an event-driven solution like PRADO > Hi all, > I have a question that I can't get my head around and was hoping > someone > could answer for me. > > I have a form with a number of fields. > > Field one is a > The option fields are built from a

[PHP] Re: [PHP-I18N] How to get WIN-1255 encoded string

2004-11-07 Thread Fredrik Tolf
On Sun, 2004-11-07 at 20:42 +0100, Fredrik Tolf wrote: > On Sun, 2004-11-07 at 13:57 +0200, Marina Markus wrote: > > Is there a possibility in PHP allowing to encode a string > > with WIN-1255 character set encoding? The result should look like: > > > > =?windows-1255?B?Rlc6IOz26eHl+CDk8uXj6e0=?=

[PHP] Re: [PHP-I18N] How to get WIN-1255 encoded string

2004-11-07 Thread Fredrik Tolf
On Sun, 2004-11-07 at 13:57 +0200, Marina Markus wrote: > Hello, Hi! > I need a PHP script to create an email message in a way that a subject line > in Hebrew will be readable in all mail clients. Some mail clients cannot > cope with Hebrew if they don't have character set explicitly denoted.

Re: [PHP] pspell problems

2004-11-07 Thread Noodles
I tried it with just aspell (including the aspell-en dictionary package) and whenever I tried to configure php to use pspell it couldn't find pspell (./configure --with-pspell) John Nichel wrote: Noodles wrote: I've spent the last 6 hours or so trying to get pspell going on my php install, vers

RE: [PHP] Re: recursive function not returning anything..

2004-11-07 Thread nate
Of course! Thank you. Nate -Original Message- From: M. Sokolewicz [mailto:[EMAIL PROTECTED] Sent: Sunday, November 07, 2004 11:03 AM To: [EMAIL PROTECTED] Subject: [PHP] Re: recursive function not returning anything.. [EMAIL PROTECTED] wrote: >function recursePathLookup($CatID, $Pat

[PHP] Re: Question: array_walk

2004-11-07 Thread M. Sokolewicz
Stuart Felenstein wrote: This array_walk() looks like a good function Would this be a legitimate call: array_walk($myarray, 'mysql_real_escape_string'); ? Thank you, Stuart array_map() is faster :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Is that something like perldoc in PHP ?

2004-11-07 Thread M. Sokolewicz
Exile wrote: Thanks in advise, Exile is what like perldoc? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: recursive function not returning anything..

2004-11-07 Thread M. Sokolewicz
[EMAIL PROTECTED] wrote: function recursePathLookup($CatID, $Path = array()) { //Get the catid for this subcat $sql = "SELECT SubCategoryID, Name FROM categories WHERE CategoryID = '".$CatID."'"; $query = mysql_query($sql); if(mysql_num_rows($query) == 1) { $data

[PHP] recursive function not returning anything..

2004-11-07 Thread nate
function recursePathLookup($CatID, $Path = array()) { //Get the catid for this subcat $sql = "SELECT SubCategoryID, Name FROM categories WHERE CategoryID = '".$CatID."'"; $query = mysql_query($sql); if(mysql_num_rows($query) == 1) { $data = mysql_fetch_array

[PHP] Re: Wirred problem with "500 Internal Server Error"

2004-11-07 Thread Michelle Konzack
Forgotten to post the error.log: [Sun Nov 7 18:45:13 2004] [error] (13)Permission denied: exec of /home/ onlinstore/public_html/pest.php failed [Sun Nov 7 18:45:15 2004] [error] [client 65.222.145.42] Premature end of script headers: /home/onlinestore/public_html/pest.php and access.log: onli

[PHP] Auto Form Fill on option select

2004-11-07 Thread Kevin Dell
Hi all, I have a question that I can't get my head around and was hoping someone could answer for me. I have a form with a number of fields. Field one is a The option fields are built from an sql statement and a where clause builds the options fields ...

[PHP] Re: How to get WIN-1255 encoded string

2004-11-07 Thread Manuel Lemos
Hello, On 11/07/2004 09:57 AM, Marina Markus wrote: I am desperately looking for a solution of a problem that seems quite simple. I need a PHP script to create an email message in a way that a subject line in Hebrew will be readable in all mail clients. Some mail clients cannot cope with Hebrew i

[PHP] Is that something like perldoc in PHP ?

2004-11-07 Thread Exile
Thanks in advise, Exile -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Question: array_walk

2004-11-07 Thread Stuart Felenstein
This array_walk() looks like a good function Would this be a legitimate call: array_walk($myarray, 'mysql_real_escape_string'); ? Thank you, Stuart -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Wirred problem with "500 Internal Server Error"

2004-11-07 Thread Michelle Konzack
Hello all, I was working on my OnlineStore up to 04:30 in the morning and all was working fine. Now for 20 minutes a friend has called me, my OnlineStore give an error. After checking I do not know, so I have echo "" >pest.php and called it with

RE: [PHP] loking for a item in string?

2004-11-07 Thread Murray @ PlanetThoughtful
> I'd rather suggest using strpos(), seen as it's quite a bit faster than > using a regular expression engine (especially when you don't need one) > > Greg Donald wrote: > > On Sat, 6 Nov 2004 21:58:49 -0600, Dustin Wish with INDCO Networks > > <[EMAIL PROTECTED]> wrote: > > > >>I am opening a fil

Re: [PHP] images doesn't seem to cache

2004-11-07 Thread anders thoresson
it won't be a php-parameter. Seen as the script isn't executed when the server decides it is the same as the cached version. So only if it deems not to be, then it runs the script, and when it does that, the script doesn't need to know anything about modified-since, because that checks has long

Re: [PHP] pspell problems

2004-11-07 Thread John Nichel
Noodles wrote: I've spent the last 6 hours or so trying to get pspell going on my php install, version 4.3.9. I've searched all over the net, but haven't found a solution. I'm using debian so I'm using the packaged version of php4 and apache. I installed aspell using apt-get and then downloaded

Re: [PHP] loking for a item in string?

2004-11-07 Thread M. Sokolewicz
I'd rather suggest using strpos(), seen as it's quite a bit faster than using a regular expression engine (especially when you don't need one) Greg Donald wrote: On Sat, 6 Nov 2004 21:58:49 -0600, Dustin Wish with INDCO Networks <[EMAIL PROTECTED]> wrote: I am opening a file and then have to look

Re: [PHP] CONGRATULATION (YOU JUST WON LOTTERY)

2004-11-07 Thread John Nichel
-{ Rene Brehmer }- wrote: Spam message reported, original sender added to permanent blacklist Have a nice day Rene At 02:56 06-11-2004, floydjeffers wrote: [skip spam] Butbutbutwhat if we really won? ;) -- By-Tor.com It's all about the Rush http://www.by-tor.com -- PHP General Mailing

Re: [PHP] loking for a item in string?

2004-11-07 Thread Kevin
On Sun, Nov 07, 2004 at 08:32:53AM -0600, Greg Donald wrote: > On Sat, 6 Nov 2004 21:58:49 -0600, Dustin Wish with INDCO Networks > preg_match() can do that. > > php.net/preg_match > Easiest possible way to do this ( for you the programmer ) is to slurp the whole file in as a string and search

Re: [PHP] loking for a item in string?

2004-11-07 Thread Greg Donald
On Sat, 6 Nov 2004 21:58:49 -0600, Dustin Wish with INDCO Networks <[EMAIL PROTECTED]> wrote: > I am opening a file and then have to look for a value inside the string. Is > there an easy way to do this? > > I need the value in this string for the var djLast = '45.11'; preg_match() can do th

[PHP] Extension help

2004-11-07 Thread Kevin
Hello all, I have the source code for a C library who's functions i wish to expose to php. Ideally i'd like to be able to use dl() or put the library file location into php.ini to allow use of the functions. Is there a tutorial on how to do this? I've read over the Zend API stuff, an

Re: [PHP] Help:escape_string and stripslashes

2004-11-07 Thread Stuart Felenstein
--- Jason Wong <[EMAIL PROTECTED]> wrote: > 2) Lookup array_map() and understand what it does. > > 3) stripslashes_deep() is a recursive function (ie. > it calls itself). You > should find a good tutorial on recursive functions > to learn exactly what it > does. Thank you Jason. Another thi

Re: [PHP] Help:escape_string and stripslashes

2004-11-07 Thread Jason Wong
On Sunday 07 November 2004 13:03, Stuart Felenstein wrote: > On second thought, I have a question. What is the > $value in the example ? $_POST, then $_GET, then $_COOKIE > Does that mean I put in my own values ? 1) No. 2) Lookup array_map() and understand what it does. 3) stripslashes_deep(

Re: [PHP] Help:escape_string and stripslashes

2004-11-07 Thread Stuart Felenstein
--- Stuart Felenstein <[EMAIL PROTECTED]> wrote: On second thought, I have a question. What is the $value in the example ? Does that mean I put in my own values ? Stuart -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Help:escape_string and stripslashes

2004-11-07 Thread Stuart Felenstein
--- Jordi Canals <[EMAIL PROTECTED]> wrote: > In the manual > http://es2.php.net/manual/en/function.get-magic-quotes-gpc.php > you have an example just for that. Take a look to > the Example 2. > Ok, that makes sense. Thank you . Stuart -- PHP General Mailing List (http://www.php.net/) To u

Re: [PHP] Help:escape_string and stripslashes

2004-11-07 Thread Jordi Canals
On Sun, 7 Nov 2004 03:52:28 -0800 (PST), Stuart Felenstein <[EMAIL PROTECTED]> wrote: > I asked a question yesterday about this but I think my > question is now more fine tuned: > > Right now I have about 50+ session variables that will > be inserted into my mysql database in a transaction. > I n

[PHP] How to get WIN-1255 encoded string

2004-11-07 Thread Marina Markus
Hello, I am desperately looking for a solution of a problem that seems quite simple. I need a PHP script to create an email message in a way that a subject line in Hebrew will be readable in all mail clients. Some mail clients cannot cope with Hebrew if they don't have character set explicitly

[PHP] Help:escape_string and stripslashes

2004-11-07 Thread Stuart Felenstein
I asked a question yesterday about this but I think my question is now more fine tuned: Right now I have about 50+ session variables that will be inserted into my mysql database in a transaction. I need to do the mysql_real_escape_string and because magic_quotes_gpc is turned on stripslashes as w

RE: [PHP] Javascript and php

2004-11-07 Thread Reinhart Viane
Thank you very much, After some small adjustements to make it work with the rest of the javascript it works like a charm!! Have a nice Sunday :) Greetings, Reinhart -Original Message- From: Bruno B B Magalhães [mailto:[EMAIL PROTECTED] Sent: zondag 7 november 2004 12:33 To: [EMAIL PROT

Re: [PHP] Javascript and php

2004-11-07 Thread Bruno B B Magalhães
Reinhart, picture_url.'"'; if($i <= mysql_num_rows($result)-2) { echo ','; } } ?> Here is how I do in my developments. Regards, Bruno B B Magalhães On Nov 7, 2004, at 8:44 AM, Reinhart Viane wrote: Hey all, Hope some of you also work on sundays :) I

Re: [PHP] Javascript and php

2004-11-07 Thread Jordi Canals
On Sun, 7 Nov 2004 11:44:33 +0100, Reinhart Viane <[EMAIL PROTECTED]> wrote: > Hope some of you also work on sundays :) > > I have a little javascript which displays a images (with previous / next > thing) > Now, i populate the javascript array with an php array: > > > >