Re: [PHP] Variables not passed to next page

2004-08-01 Thread Jason Wong
On Sunday 01 August 2004 02:28, Andre Dubuc wrote: > Yes the first page has the appropriate tags: > > {edit-news.php] > . . . Good. > The second and third pages [edit-news-x.php/ edit-submit.php] are pure php > (a pass-through page) -- I wasn't aware they needed these tags as well. Hmm > . .

Re: [PHP] Still need help with regex function

2004-08-01 Thread Jason Wong
On Sunday 01 August 2004 08:07, C.F. Scheidecker Antunes wrote: > In order to get the filenames from the output below I have tried the > following: > > preg_match_all('/inflating:"(.*?)"/', $stdout, $matches); > print_r($matches); > return $matches[1]; > > But I only get empty arrays with it. Try

[PHP] [Newbie Guide] For the benefit of new members

2004-08-01 Thread Ma Siva Kumar
=== Please feel free to add more points and send to the list. === 1. If you have any queries/problems about PHP try http://www.php.net/manual/en first. You can download a copy and use it offline also. Please also try htt

Re: [PHP] regex help needed

2004-08-01 Thread Wudi
On Sun, 1 Aug 2004 10:38:06 -0700 (PDT) Kathleen Ballard <[EMAIL PROTECTED]> wrote: > Sorry, > Here is the code I am using to match the tags: > > .* > > I have removed all the NL and CR chars from the string > I am matching to make things easier. Also, I have run > tidy on the code so the tags

Re: [PHP] Upgrade PHP?

2004-08-01 Thread Support
I've dealt with a similar problem with Mandrake. Some distros have their own idea of where things should go. I prefer to install major applications like apache, perl, mysql, php myself and never install from rpm or accept default distro packages when installing an os from scratch. IMHO: Although h

Re: [PHP] php4.3.7 + phpBB 2.0.10 + Apache - zero sized replies with

2004-08-01 Thread Jason Wong
On Sunday 01 August 2004 23:38, ADFH wrote: > Even if it isn't, how could this stop Apache from logging even an error? If you're positive that none of the Apache logs shows anything (but that seems *very* unlikely) then I suggest you taking this up with phpBB support. Another thing you could do

Re: [PHP] Upgrade PHP?

2004-08-01 Thread Curt Zirzow
* Thus wrote Will Collins: > I'm having problems upgrading PHP from 4.2.2 to 4.3.8 on RedHat 9. I've > tried simply making the 4.3.8 from source, but RedHat didn't use the default > PHP folder structure is seems, since there has been no change in my PHP > version. I also tried the "./configure" s

RE: [PHP] Upgrade PHP?

2004-08-01 Thread bruce
i've successfully built php5 on rh8 with no issues... if you search through the achives of this mailing list you'll see what i did. look for mysqli/php. what issues are you haveing when you build from source...??? let us know, and i'm sure someone can help -Original Message- From:

[PHP] Upgrade PHP?

2004-08-01 Thread Will Collins
I'm having problems upgrading PHP from 4.2.2 to 4.3.8 on RedHat 9. I've tried simply making the 4.3.8 from source, but RedHat didn't use the default PHP folder structure is seems, since there has been no change in my PHP version. I also tried the "./configure" string returned by 'phpinfo()' (assu

Re: [PHP] php4.3.7 + phpBB 2.0.10 + Apache - zero sized replies with

2004-08-01 Thread John Nichel
ADFH wrote: Can you verify that the data is actually in the db? I'll attempt to reverify by dumping data back out again and comparing size. I suspect it is, however. Ie. The login succeeds because a cookie is set, and I can go to some scripts, but not others. Even if it isn't, how could this s

[PHP] upload changes accented character

2004-08-01 Thread Lowell Allen
I've built a system which uploads a tab-delimited text file saved from Excel, then uses the text file to update a MySQL database. But when the text file contains an "é" character (confirmed by viewing in a text editor before uploading), the character is converted to some other weird character -

Re: [PHP] regex help

2004-08-01 Thread Justin Patrin
Forget my first attempt, using the e modifier and another preg_replace is much better. $return = preg_replace('!(.*?)!ie', 'preg_replace("!]*>!i", "", "$1")', $originalText); On Sun, 1 Aug 2004 13:39:49 -0700, Justin Patrin <[EMAIL PROTECTED]> wrote: > On Sun, 1 Aug 2004 06:27:51 -0700 (PDT), Kat

Re: [PHP] regex help

2004-08-01 Thread Justin Patrin
On Sun, 1 Aug 2004 06:27:51 -0700 (PDT), Kathleen Ballard <[EMAIL PROTECTED]> wrote: > I am at the tailend of a project that involves moving > legacy data from one dbms to another. The client has > added a new requirement to the data manipulation that > is required. I need to remove all tags (the

RE: [PHP] Re: regex help needed -- Solved! Thanks!

2004-08-01 Thread Kathleen Ballard
Thanks! Works like a charm! I am the very lowest of newbies when it comes to regex and working through your solutions has been very educational. I have one question about something I couldn't figure out: #(.*)#Uie `.*?`sie What is the purpose of the back-ticks and the '#'? What are 'Uie' and

[PHP] Cannot compile

2004-08-01 Thread Andrew W
I've compiled & installed software from source before but PHP 5 is proving a challenge. I've decompressed the tarball and cd into the directory. Run ./configure which seems to work ok but then when I do make I get the following error: "No targets specified and no makefile found" Sure enough t

Re: [PHP] Should I wait for PHP 5.1?

2004-08-01 Thread Gerard Samuel
On Sunday 01 August 2004 12:19 pm, Randall Perry wrote: > Any major gotchas going from 4 to 5? Any problems with PostgreSQL > connectivity? Will I have to scour and rewrite current scripts? > My opininon would be to wait on maybe 5.0.1, especially if its on a production box. Im not having an abs

[PHP] PHP5 + OpenSSL extension appears to ignore "extension sections" in configarg array

2004-08-01 Thread User1001
Using PHP-5.0 + OpenSSL-0.9.7c + PHP5-Openssl extension, trying to use a specific extension section within the openssl.cnf file appears to not work, or fail without any returned error, when specifying either/both of "x509_extensions" and "req_extensions" in the configarg array. Only sections define

[PHP] Re: regex help needed

2004-08-01 Thread Fabrice Lezoray
hi M. Sokolewicz a écrit : You could try something like: $return = preg_replace('#(.*)#Uie', 'str_replace("", "", "$1")'); - Tul Kathleen Ballard wrote: Sorry, Here is the code I am using to match the tags: .* I think this mask is better : `.*?`sie I have removed all the NL and CR chars from the

[PHP] Re: regex help needed

2004-08-01 Thread M. Sokolewicz
You could try something like: $return = preg_replace('#(.*)#Uie', 'str_replace("", "", "$1")'); - Tul Kathleen Ballard wrote: Sorry, Here is the code I am using to match the tags: .* I have removed all the NL and CR chars from the string I am matching to make things easier. Also, I have run tidy

[PHP] regex help needed

2004-08-01 Thread Kathleen Ballard
Sorry, Here is the code I am using to match the tags: .* I have removed all the NL and CR chars from the string I am matching to make things easier. Also, I have run tidy on the code so the tags are all uniform. The above string seems to match the tag well now, but I still need to remove the b

Re: [PHP] Should I wait for PHP 5.1?

2004-08-01 Thread Matthew Sims
> Any major gotchas going from 4 to 5? Any problems with PostgreSQL > connectivity? Will I have to scour and rewrite current scripts? > > > > -- > Randall Perry Suppoedly, all code from PHP4 is backwards compatible with PHP5. I think the only major re-vamp was its Object Oriented Model. -- --Mat

[PHP] Should I wait for PHP 5.1?

2004-08-01 Thread Randall Perry
Any major gotchas going from 4 to 5? Any problems with PostgreSQL connectivity? Will I have to scour and rewrite current scripts? -- Randall Perry sysTame Xserve Web Hosting/Co-location Website Design/Development WebObjects Hosting Mac Consulting/Sales http://www.systame.com/ -- PHP General

Re: [PHP] php4.3.7 + phpBB 2.0.10 + Apache - zero sized replies

2004-08-01 Thread ADFH
> > Can you verify that the data is actually in the db? > I'll attempt to reverify by dumping data back out again and comparing > size. I suspect it is, however. 21M Jul 29 23:19 20040509-clean.sql <-- Before 21M Aug 1 12:03 redump.sql <-- After Yeah.. all the data's in the DB. -- PHP

Re: [PHP] php4.3.7 + phpBB 2.0.10 + Apache - zero sized replies with

2004-08-01 Thread ADFH
> Can you verify that the data is actually in the db? I'll attempt to reverify by dumping data back out again and comparing size. I suspect it is, however. Ie. The login succeeds because a cookie is set, and I can go to some scripts, but not others. Even if it isn't, how could this stop Apac

Re: [PHP] regex help

2004-08-01 Thread Jim Grill
Can you post a little sample of the data and your current code? thanks. Jim Grill Web-1 Hosting http://www.web-1hosting.net - Original Message - From: "Kathleen Ballard" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, August 01, 2004 8:27 AM Subject: [PHP] regex help > I am

[PHP] regex help

2004-08-01 Thread Kathleen Ballard
I am at the tailend of a project that involves moving legacy data from one dbms to another. The client has added a new requirement to the data manipulation that is required. I need to remove all tags (there may be more that one) that appear within all tags. I am not very familiar with buildin

Re: [PHP] php4.3.7 + phpBB 2.0.10 + Apache - zero sized replies with

2004-08-01 Thread John Nichel
ADFH wrote: How are you trying to import it? Command line MySQL? PHPMyAdmin? Something else? command line (have SSH/SCP/SFTP access) mysql dbname < dumpname.sql (u/p in ~/.my.cnf, 0600) How big is the dump file? Greater than two megs? 11M Jul 28 12:57 200405009-025130.sql 21M Jul 29 23:19 200405

Re: [PHP] function similar to to sizeof

2004-08-01 Thread Justin Patrin
On Sat, 31 Jul 2004 18:24:06 -0700, bruce <[EMAIL PROTECTED]> wrote: > specifically, i'm looking to return an object using the socket_write(). this > requires that i be able to give it the size of the object being passed... > > if you know of another approach, i'm more than interested... > > -tha

Re: [PHP] Still need help with regex function

2004-08-01 Thread Justin Patrin
On Sat, 31 Jul 2004 18:07:07 -0600, C.F. Scheidecker Antunes <[EMAIL PROTECTED]> wrote: > Hello, > > In order to get the filenames from the output below I have tried the > following: > > preg_match_all('/inflating:"(.*?)"/', $stdout, $matches); Why do you have " around the (.*?)? The sample text