[PHP] Re: Having problems with an IF statement, just doesn't make sense

2003-07-09 Thread Nadim Attari
Paying attention to this line: Also if I use !isset it returns true with a null value for $theme Well this is clear in the manual: isset() will return FALSE if testing a variable that has been set to NULL So !isset($a_Null) = !FALSE = TRUE From PHP Manual = $var = 0; if

[PHP] accesing php script in a different port

2003-07-09 Thread Michael P. Carel
hi to all, I want to develop a system that can be access in a different port of the web (such as in Port 11000). But i dont know how to do this without affecting existing apache or other webserver installation. My idea is based on some utilities that exists such as the Webmin Utilities that are

Re: [PHP] PHP4 and PHP5 at one machine

2003-07-09 Thread Milan Reznicek
Yes all these things I know, because already I'm running these two servers, but both with PHP4. But now I came accros the problem of php4ts.dll. Because in both versiones it has the same name. And if I have the old one my \WINNT\SYSTEM32 the server which is running PHP5 won't start, and if i put

Re: [PHP] Re: NEW SPAMMER - [PHP] New Krysalis version released

2003-07-09 Thread Alexandru COSTIN
Hi Jeff, What are you planning to do with XML? As for now, there are three or four main things you can do with PHP and XML 1. create webapplication that call remote functions using SOAP (nuSoap and PEAR SOAP and the libraries to use) 2. create websites that use XML messaging to

Re: [PHP] accesing php script in a different port

2003-07-09 Thread Ray Hunter
Try using sockets in php to set up the port and listen there... -- BigDog On Wed, 2003-07-09 at 00:22, Michael P. Carel wrote: hi to all, I want to develop a system that can be access in a different port of the web (such as in Port 11000). But i dont know how to do this without affecting

[PHP] Re: what's wrong with this?????

2003-07-09 Thread Nadim Attari
$result = mysql_query('CREATE TABLE members (userid INT(25) NOT NULL AUTO_INCREMENT, first_name VARCHAR(30) NOT NULL, last_name VARCHAR(50) NOT NULL, email_address VARCHAR(255) NOT NULL, username VARCHAR(30) NOT NULL, password VARCHAR(30) NOT NULL, activated ENUM('0','1') DEFAULT '0' NOT

[PHP] Create a Report

2003-07-09 Thread cavagnaro
I'm using MySQL and PHP for building a website, however now I need to create a report with something like this: - {Title} {Description} {Zone1} Detail Zone1.Topic1 DetailZone1.Topic2 DetailZone1.Topic3 {Zone2} Detail Zone2.Topic1

[PHP] Re: movement on a page

2003-07-09 Thread Micah Montoy
Nope. What I was thinking was something like a HTML anchor. where you can jump to a completely different location on a page but I was thinking of a different part in the script or all together completely out of the PHP script. Anyway, I made a work around. I call a function if the condition is

Re: [PHP] Sessions

2003-07-09 Thread Dave Alger
Kirk, Thanks for the input. I've never been certain about the register_globals setting. From what I read I understood it that since I use the new method and have my dev site set to off that it wouldn't be a problem. As it turns out my dev site has globals OFF, test site ON and target site ON.

Re[2]: [PHP] output compression and MSIE

2003-07-09 Thread sebab
Hi, I'm shocked. It seems it works! However.. My pages without forcing ISO 8559-2 don't look good. What to use instead so? -- Best regards, Sebastian Tuesday, July 8, 2003, 3:55:43 PM, you wrote: MO [snip] My head looks like that - nothing special.. head LINK href=/css/main.css

[PHP] Multiple upload files with php

2003-07-09 Thread Francisco Morales
Hi, I need to upload multiples files using php, but with the same input tag, somebody can help my, is this feature supported by php?. Anyboy knows how to invocate the browser windows that allow to select more than one file for upload ? thanks a lot

Re: [PHP] output compression and MSIE

2003-07-09 Thread Mario Oberrauch
Hi, I'm shocked. It seems it works! However.. My pages without forcing ISO 8559-2 don't look good. What to use instead so? Hi, You could try leaving the line an and add content-encoding headers like this meta http-equiv=content-encoding content=gzip (or an equiv. header() statement)

[PHP] Re: Annoucement Idea

2003-07-09 Thread Alexandru COSTIN
Hi, I welcome your idea. [ANN] would be fine. Alexandru -- Alexandru COSTIN Chief Operating Officer http://www.interakt.ro/ +4021 312 5312 Joe Harman [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I am wondering if the creators of this list could impose

[PHP] Multiple upload files with php problem!!

2003-07-09 Thread Francisco Morales
Hi, I need to upload multiples files using php, but with the same input tag, somebody can help my, is this feature supported by php?. Anyboy knows how to invocate the browser windows that allow to select more than one file for upload ? thanks a lot

[PHP] picture(s) in Excel

2003-07-09 Thread jan
Hi there! I'd like to ask if there is any work-around available for saving picture(s) (BMP/JPG/PNG) in *.xls file. I need to create (using PHP) dynamically xls file with some pictures in it. thanks Jan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Re: picture(s) in Excel

2003-07-09 Thread cavagnaro
PHP with Excel??? I know it can work with CVS but not exactly with Excel (xls) files. Why not use Access (in windows with ASP) or MySQL (in Linux server)? Jan [EMAIL PROTECTED] escribió en el mensaje news:[EMAIL PROTECTED] Hi there! I'd like to ask if there is any work-around available for

[PHP] Using PHP with windows logon

2003-07-09 Thread Brenton Dobell
Hello all, I just have a quick question, I am not sure that it is even possible but im gonna take a whack anyways, basically what i want to know is, can you use your windows logon as set it as a variable in php?? eg I log onto a windows machine using brenton can i use a php script to set that

RE: [PHP] Multiple upload files with php problem!!

2003-07-09 Thread Sævar Öfjörð
This is supported in the standards I think, as it says clearly in the HTML 4.01 specification on www.w3.org: file select - This control type allows the user to select files so that their contents may be submitted with a form. Note that 'files' is plural. However, no browser yet supports this

RE: [PHP] preg_replace - understanding

2003-07-09 Thread Ford, Mike [LSS]
-Original Message- From: Jennifer Goodie [mailto:[EMAIL PROTECTED] Sent: 09 July 2003 00:43 $filevalue = str_replace(\\, /, $filevalue); it is reversing the \\ to // but not replacing them with just a single /. I think you need to escape your \ so each \ is \\ so your

php-general Digest 9 Jul 2003 10:09:21 -0000 Issue 2165

2003-07-09 Thread php-general-digest-help
php-general Digest 9 Jul 2003 10:09:21 - Issue 2165 Topics (messages 154447 through 154512): preg_replace - understanding 154447 by: Micah Montoy 154452 by: Kevin Stone 154453 by: Micah Montoy 154454 by: Jennifer Goodie 154455 by: Micah Montoy

RE: [PHP] session data missing

2003-07-09 Thread Ford, Mike [LSS]
-Original Message- From: ulf sundin [mailto:[EMAIL PROTECTED] Sent: 09 July 2003 01:01 After creating a new session with session_start() and inserting a few values e.g $HTTP_SESSION_VARS['foo'] = 'bar'; a file /tmp/sess_{session_id} is created. The problem is that this file is

RE: [PHP] seeing strange things?

2003-07-09 Thread Ford, Mike [LSS]
-Original Message- From: Micah Montoy [mailto:[EMAIL PROTECTED] Sent: 09 July 2003 01:37 A couple more things and I'll stop bugging everyone. I'm trying to get the file name of the string. If it includes the extension that's fine as well. I thought the code below would do

RE: [PHP] include/require inside of function

2003-07-09 Thread Ford, Mike [LSS]
-Original Message- From: Ow Mun Heng [mailto:[EMAIL PROTECTED] Sent: 09 July 2003 03:44 I finally got it. Thanks. All I needed to do was just define global $page_title inside the function to denote that I wanted to use that variable. One other quick question, in my

RE: [PHP] PHP4 and PHP5 at one machine

2003-07-09 Thread Ford, Mike [LSS]
-Original Message- From: Milan Reznicek [mailto:[EMAIL PROTECTED] Sent: 09 July 2003 07:38 Yes all these things I know, because already I'm running these two servers, but both with PHP4. But now I came accros the problem of php4ts.dll. Because in both versiones it has the same

Re: [PHP] Text boxes posted to MySQL record that contain quotes

2003-07-09 Thread John W. Holmes
Vernon wrote: I know that using stripslashes will remove \ using php but I'm having trouble with posting quotation marks in a text record field. Anyone know how I can get them to post to the database? It's basically like an email and I'd like anything written to be able to post. Use htmlentities()

Re: [PHP] seeing strange things?

2003-07-09 Thread Marek Kilimajer
Micah Montoy wrote: A couple more things and I'll stop bugging everyone. I'm trying to get the file name of the string. If it includes the extension that's fine as well. pathinfo() should do the job for you. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Using PHP with windows logon

2003-07-09 Thread Marek Kilimajer
I think if php runs under IIS and IIS is set up to do so, the variable (phpinfo() will tell you its name) is set. I don't know much more. Brenton Dobell wrote: Hello all, I just have a quick question, I am not sure that it is even possible but im gonna take a whack anyways, basically what i

[PHP] Re: PHP forum

2003-07-09 Thread David Robley
In article [EMAIL PROTECTED], [EMAIL PROTECTED] says... Ok some of you might not like this, others of you will know exactly what I mean, but it just reminded me so much of this forum that I am sure some of you will catch the humor in it:

[PHP] Re: Create a Report

2003-07-09 Thread David Robley
In article [EMAIL PROTECTED], [EMAIL PROTECTED] says... I'm using MySQL and PHP for building a website, however now I need to create a report with something like this: - {Title} {Description} {Zone1} Detail Zone1.Topic1

[PHP] mail() - how to attach file to the message???

2003-07-09 Thread szparag
i know that in mail-form i need input type=file name=attach but i don't know how to write message headers to send file with e-mail. please help me. szparag. IncrediMail - Email has finally evolved - Click Here

RE: [PHP] Please assist - been on this for hours - Permissions on server

2003-07-09 Thread Steve Jackson
On Tue, 2003-07-08 at 07:21, Steve Jackson wrote: If I set permissions of my server root to chmod 777 that's a security risk right? How do I set my server to allow me to write a file to my web root from another directory using PHP? Or is it a Unix problem? I have a generator file

Re: [PHP] picture(s) in Excel

2003-07-09 Thread Marek Kilimajer
Use this class: http://phpclasses.web4u.cz/browse.html/package/767.html and insert_bitmap() method of a Worksheet object. jan wrote: Hi there! I'd like to ask if there is any work-around available for saving picture(s) (BMP/JPG/PNG) in *.xls file. I need to create (using PHP) dynamically xls

Re: [PHP] mail() - how to attach file to the message???

2003-07-09 Thread Marek Kilimajer
Use this class: http://www.phpclasses.org/mimemessage szparag wrote: i know that in mail-form i need input type=file name=attach but i don't know how to write message headers to send file with e-mail. please help me. szparag. -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] mail() - how to attach file to the message???

2003-07-09 Thread Chris Hayes
this worked for me but i did some editing and censoring oso maybe a tiny bug got in. ///SETUP strings $subject='hi there, this is not a Viagra business proposal, '; $mailto = '[EMAIL PROTECTED],[EMAIL PROTECTED]';// for multiple recipients, use comma '[EMAIL PROTECTED],[EMAIL

[PHP] linking with home directory path

2003-07-09 Thread mpalermo
I have a script that contains style sheets and I can't seem to link it on my Windows 2000 IIS server. It works perfectly fine on my Windows XP IIS server. Here is what I am trying to do. The index.php file (which links to the style sheets) is located in the MyScript folder and inside that

[PHP] Cookie header and location header.

2003-07-09 Thread Ns_Andy
In PHP4.3.x If I set a cookie with setcookie and send a location header immediately. I find no problem for the task. That is, ?php setcookie(testcookie,teststr,time()+36); header (Location:nextpage.php); ? And testcookie can be found in the latter page. However, I can't In PHP4.1.x What's

[PHP] Re: Sessions

2003-07-09 Thread Dave Alger
Thanks to all who posted. Well, I managed to track down the problem. The PHP system was set to use /tmp for its session.save_path but there was no /tmp directiory. Strange because on my test site I don't have a /tmp directory... I'm guessing my ISP has taken care of that separately. Anyway I

[PHP] Form being filled out automatically....

2003-07-09 Thread Wendell Brown
I've got a problem. I have a form that the user fills out and then hits submit on and it sends an e-mail. My problem is that I have one AOL user that claims that when ever he goes back to the form, it doesn't present the form - it just sends the message. It appears that for some reason

[PHP] Re: mail() - how to attach file to the message???

2003-07-09 Thread sven
do you want to send a file via mail (mime-type of the file?) or do you want to attach the file to a mail (multipart?)? the mail-format is defined in rfc2045 and following. but if you don't want to build your own function, there are good mime-mail-classes out there. (e.g.

RE: [PHP] XML

2003-07-09 Thread Petre Agenbag
Hi List Firstly, thanks for the replies and mostly for the accommodating attitude to this, arguable non-PHP subject. I don't want this thread to become a flame war on why one should use XML, or why not. I do have personal issues wrt XML and the way it works, and although I cannot *yet* see the

Re: [PHP] Form being filled out automatically....

2003-07-09 Thread David Otton
On Wed, 09 Jul 2003 07:00:38 -0500, you wrote: I've got a problem. I have a form that the user fills out and then hits submit on and it sends an e-mail. My problem is that I have one AOL user that claims that when ever he goes back to the form, it doesn't present the form - it just sends the

Re: [PHP] picture(s) in Excel

2003-07-09 Thread jan
Hi ! thanks. yes, that's the solution for BMP files. I would prefer using PNG of JPG format. Is it possible ? Jan On Wed, 2003-07-09 at 13:34, Marek Kilimajer wrote: Use this class: http://phpclasses.web4u.cz/browse.html/package/767.html and insert_bitmap() method of a Worksheet object.

Re: [PHP] Form being filled out automatically....

2003-07-09 Thread Wendell Brown
On Wed, 09 Jul 2003 13:23:59 +0100, David Otton wrote: On Wed, 09 Jul 2003 07:00:38 -0500, you wrote: if( ! isset( $HTTP_POST_VARS[EMail] ) ) { The obvious thing to do is change all instances of EMail to emailaddress or somesuch, and see if the problem still exists. Do you know anyone on AOL

[PHP] PHP, MySQL and Flash

2003-07-09 Thread Rankin, Randy
Does anyone know of any articles on integrating PHP, MySQL and Flash to perform a drag and drop routine for updating a db? Specifically, I have a client who is _INSISTING_ that I integrate a drag and drop feature into his railcar storage application. He wants to be able to view two railcar

RE: [PHP] PHP forum

2003-07-09 Thread Dan Anderson
me three! j/k. -Dan On Wed, 2003-07-09 at 00:21, PHP4 Emailer wrote: HOLY COW, I never laughed so hard in my life, This is DEAD ON, for what happens in this exact forum. Damn that [EMAIL PROTECTED] is funny!! And I've only been here for about 3 months now. I've see about every one of

Re: [PHP] PHP, MySQL and Flash

2003-07-09 Thread Dan Anderson
Why don't you just write a program in Java? It would be simple to do, wouldn't require Flash, and might make your life easier. -Dan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] picture(s) in Excel

2003-07-09 Thread Marek Kilimajer
You can explore the possibility of Web Archives. This is how a web archive starts: MIME-Version: 1.0 X-Document-Type: Worksheet Content-Type: multipart/related; boundary==_NextPart_01C3461B.AE5C1F00 This document is a Web archive file. If you are seeing this message, this means your

[PHP] PHP Bug or just a strange behaivor?

2003-07-09 Thread Marcus Hufvudsson
Hi, Let's get right to it... When I try to do this: ? echo $_COOKIE['test.1']; ? It doesn't work (needless to say there is a cookie that goes by this name) So, when I did this: ? foreach($_COOKIE as $cook = $val) { echo $val . - .$cook .br; } ? I got:

[PHP] Looping or what?

2003-07-09 Thread Zac Hillier - Net Affectors
The code below is suppose to replace some images and links but when I run it the page just seems to hang and eventually times out. Am I Looping somewhere and not realising it? Thanks Zac $i = $c01_1; $imgLst = ''; function imgRplc($val){ global $imgLst; global $i; $imgLst .= div

[PHP] Big problem....need help

2003-07-09 Thread phpu
I have a table like this: - product_id-mark_name-category_name - -1- aaa

[PHP] Headers and server

2003-07-09 Thread Steve Jackson
Sorry if anyone has seen anything like this before but: All I want to do is get a script to write a file to the root directory. I get permission problems. Is there any way around this or am I going to go crazy trying. Obviously I can't have users setting the root directory to CHMOD 777, I can't

RE: [PHP] PHP forum

2003-07-09 Thread Jay Blanchard
me four! Couldn't resist, and I loke the top posty thingie too. JB -Original Message- From: Dan Anderson [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 09, 2003 7:39 AM To: PHP4 Emailer Cc: Richard Baskett; [EMAIL PROTECTED] Subject: RE: [PHP] PHP forum me three! j/k. -Dan On

Re: [PHP] Refresh PHP

2003-07-09 Thread Mauricio
Ralph, Before anything, I would like to thank you for the time you are spending with my problem! Ok. I changed using $_SESSION and the problem still happens. I printed both, $_SESSION and $HTTP_SESSION_VARS and they are the same... not the current user, but the last logged. It's funny that in

Re: [PHP] Big problem....need help

2003-07-09 Thread Nicolas Costes
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Le Mercredi 9 Juillet 2003 15:13, phpu a écrit : I have a table like this: .. $sql = SELECT * FROM products, category WHERE category.name_category=products.name_category and category_id=.$_GET['category_id'] ; When i choose the category

RE: [PHP] PHP forum

2003-07-09 Thread Steve Jackson
I should also add that another 685 posts would say RTFM about lightbulbs. Steve Jackson Web Development and Marketing Manager Viola Systems Ltd. http://www.violasystems.com [EMAIL PROTECTED] Mobile +358 50 343 5159 -Original Message- From: Richard Baskett [mailto:[EMAIL PROTECTED]

[PHP] Can php/mysql handle 10000s of records

2003-07-09 Thread Adam Gerson
From: Adam Gerson [EMAIL PROTECTED] Date: Wed Jul 9, 2003 9:48:20 AM America/New_York To: [EMAIL PROTECTED] Subject: Can php/mysql handle 1000's of records? I know this questions is a little of topic, but I figured the members of this list would have experience in this area. I am writing an

[PHP] Antithesis to array_unique

2003-07-09 Thread Jay Blanchard
Having STFM I am wondering if anyone knows of a quick antithesis to array_unique? We have an array in which we need to return all duplicate values instead of the non-duplicates. Thanks Jay -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How configure PHP parser 4.3.x in IIS version 6.0?

2003-07-09 Thread Leif K-Brooks
[EMAIL PROTECTED] wrote: I use the dll php4isapi.dll and it doesn't work, Could someone give me a hand? Most of us don't have crystal balls. What does it do when it doesn't work? How is it set up? Give us some information! -- The above message is encrypted with double rot13 encoding. Any

RE: [PHP] Can php/mysql handle 10000s of records

2003-07-09 Thread Jay Blanchard
[snip] I am writing an attendance system in php/mysql for my school. We have a little less then 1000 students. For every day of the school year one record will be entered into a table for each student representing their attendance status (present, absent, late, etc...). I also have several

Re: [PHP] Can php/mysql handle 10000s of records

2003-07-09 Thread Adam Voigt
It can handle 1,000,000 records without breaking a sweat. On Wed, 2003-07-09 at 09:54, Adam Gerson wrote: From: Adam Gerson [EMAIL PROTECTED] Date: Wed Jul 9, 2003 9:48:20 AM America/New_York To: [EMAIL PROTECTED] Subject: Can php/mysql handle 1000's of records? I know this questions is

Re: [PHP] Antithesis to array_unique

2003-07-09 Thread David Nicholson
Hello, This is a reply to an e-mail that you wrote on Wed, 9 Jul 2003 at 14:55, lines prefixed by '' were originally written by you. Having STFM I am wondering if anyone knows of a quick antithesis to array_unique? We have an array in which we need to return all duplicate values instead of

Re: [PHP] PHP Bug or just a strange behaivor?

2003-07-09 Thread Chris Boget
So I though that you couldn't have dots in your array names... Just to be sure I wrote a small test program like this: [snip] So... anyone know what's up? I believe that if you do it manually in a script, it works fine. But if PHP gets/sets the value from POST, GET, COOKIE, etc. it

[PHP] Re: __get, __set, __clone

2003-07-09 Thread Yann Larrivee
Hi Greg, thanks for the example. I think i now understand a bit more. I just need a confirmation on this $table-FirstName = 'Greg'; $table-LastName = 'Beaver'; This will actually call __set and it will create a member variable named FristName with the value Greg. And if you call

[PHP] Re: NEW SPAMMER - [PHP] New Krysalis version released

2003-07-09 Thread Steve Magruder
Ryan A wrote: Didnt we just have a thread about spamming like this on the list? If it's a PHP-related product being announced, it isn't spam to me (and in fact, it's rather valuable), unless the announcement posts become repetitive. Steve -- Steve Magruder Consulting -

Re: [PHP] PHP4 and PHP5 at one machine

2003-07-09 Thread Scott Fletcher
Well, it is not possible to run two seperate php4ts.dll file in the same file path with the same file name even though they have different version. One workaround to it would be to compile the older version into a different file name while making sure the script point to that different file name

RE: [PHP] Compiling PHP

2003-07-09 Thread Mike At Spy
I went over what you commented on - thanks for the input. Most everything did indeed stay. This is what I get when going a make install now: Installing PHP CLI binary:/usr/local/bin/ Installing PHP CLI man page: /usr/local/man/man1/ Installing PHP SAPI module [activating module

Re: [PHP] Refresh PHP

2003-07-09 Thread Scott Fletcher
PHP session functions and $_SESSION work kind of funny with Internet Explorer while this problem rarely happen in 3rd party browser due to the bad design of Internet Explorer... It's a microsoft problem. I have this similiar problem with Internet Explorer. The workaround to the problem I have

RE: [PHP] PHP Bug or just a strange behaivor?

2003-07-09 Thread Ford, Mike [LSS]
-Original Message- From: Marcus Hufvudsson [mailto:[EMAIL PROTECTED] Sent: 09 July 2003 13:56 Hi, Let's get right to it... When I try to do this: ? echo $_COOKIE['test.1']; ? It doesn't work (needless to say there is a cookie that goes by this name) So, when I did this:

[PHP] mcrypt warning

2003-07-09 Thread Dan Joseph
Hi All, I have the following function: function encrypt ($x) { $ini = parse_ini_file ($GLOBALS['INI_PATH']); $td = mcrypt_module_open ('tripledes', '', 'ecb', ''); $iv = mcrypt_create_iv (mcrypt_enc_get_iv_size

[PHP] Re: simple ereg() question

2003-07-09 Thread gamin
Eddy-Das [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] ereg(.+) Thank you -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] To All Those Seeking XML PHP Wisdom!

2003-07-09 Thread Joe Harman
Found a brand new tutorial... just came out today... http://www.sitepoint.com/article/1165 Joe Harman Have you ever noticed? Anybody going slower than you is an idiot, and anyone going faster than you is a maniac. - George Carlen

RE: [PHP] Antithesis to array_unique

2003-07-09 Thread Ford, Mike [LSS]
-Original Message- From: David Nicholson [mailto:[EMAIL PROTECTED] Sent: 09 July 2003 15:08 This is a reply to an e-mail that you wrote on Wed, 9 Jul 2003 at 14:55, lines prefixed by '' were originally written by you. Having STFM I am wondering if anyone knows of a quick

[PHP] Steve - Re: [PHP] Re: NEW SPAMMER - [PHP] New Krysalis version released

2003-07-09 Thread Ryan A
Hey, Cool, I guess it boils down to a matter of opinion then, but if you feel all PHP related products are not spam (commercial or not) everytime the 3 sites I am in touch with releases a new php product will be sure to let you know! I hope you dont have any complaints. Cheers, -Ryan -

[PHP] Regex nightmare:(

2003-07-09 Thread Tim Steele
i need to uses reg ex to change a href=url to a href=url target=_blank the brackets have to be represented using lt; and gt; I have tried so many ways, but none work. here is an example of my faliure. $body = preg_replace(/(href=\/?)(\w+)(gt;\/?)/e,'\\1'.'\\2'./'target=_blank/ '.'\\3',

RE: [PHP] session data missing

2003-07-09 Thread Johnson, Kirk
After creating a new session with session_start() and inserting a few values e.g $HTTP_SESSION_VARS['foo'] = 'bar'; a file /tmp/sess_{session_id} is created. The problem is that this file is empty! 0 bytes. no data is stored. I'm using php 4.0.6 on linux with apache 1.3 something. Check

RE: [PHP] Can php/mysql handle 10000s of records

2003-07-09 Thread Joe Harman
Suprisingly MySQL is very good, as the others have said... I've been involved in a few sites that have been known to hammer the DB pretty hard.. And it's stood up to the test... Hmmm... I am sure others here can validate this... But I think the size limit for the database is about 4 gigs!!! That's

Re: [PHP] Using PHP with windows logon

2003-07-09 Thread Ray Hunter
On Wed, 2003-07-09 at 03:32, Brenton Dobell wrote: can you use your windows logon as set it as a variable in php? U should probably look at how activex does it. I know that asp scripts do it all the time and possibly some com objects can set that for you. I have connected to exchange and

Re: [PHP] Re: __get, __set, __clone

2003-07-09 Thread Marek Kilimajer
Yann Larrivee wrote: Hi Greg, thanks for the example. I think i now understand a bit more. I just need a confirmation on this $table-FirstName = 'Greg'; $table-LastName = 'Beaver'; This will actually call __set and it will create a member variable named FristName with the value Greg. Not

RE: [PHP] XML

2003-07-09 Thread Ray Hunter
U should read the docs on domxml. There is alot of examples in there on how to do that and xslt. Here are tons of tutorials to on phpbuilder.com, phpbeginner.com. -- BigDog On Wed, 2003-07-09 at 06:02, Petre Agenbag wrote: Hi List Firstly, thanks for the replies and mostly for the

[PHP] client running

2003-07-09 Thread Randy Johnson
My sysadmin installed PHP as a client on my linux server. I have a script that I developed that opens a socket to accept data feed. This script works great if I run it off my windows pc using the cgi version of php but when I get it to the server it runs and it doesn't do anything. I did get an

[PHP] linking with home directory

2003-07-09 Thread mpalermo
I have a script that contains style sheets and I can't seem to link it on my Windows 2000 IIS server. It works perfectly fine on my Windows XP IIS server. Here is what I am trying to do. The index.php file (which links to the style sheets) is located in the MyScript folder and inside that folder

RE: [PHP] Can php/mysql handle 10000s of records

2003-07-09 Thread Jay Blanchard
[snip] Suprisingly MySQL is very good, as the others have said... I've been involved in a few sites that have been known to hammer the DB pretty hard.. And it's stood up to the test... Hmmm... I am sure others here can validate this... But I think the size limit for the database is about 4 gigs!!!

[PHP] $_SESSION act funny...

2003-07-09 Thread Scott Fletcher
Noticed that if I assign data to a $_SESSION array and go to the next webpage then you'll have that new data. If you go to the next webpage by using the same file (webpage) or a $_SERVER['PHP_SELF'], the data in the $_SESSION array remain the same, it does not change as it should. But if you do

RE: [PHP] linking with home directory

2003-07-09 Thread Mike Brum
First, I'd create a simple test to see what the value of $newDir = $HomeDir.themes/.$ThemeFolder; print $newDir; And see what that yields. You might have a problem with your slashes. I find it extremely useful to have test variables print to the screen along the way to ensure that each new

Re: [PHP] linking with home directory

2003-07-09 Thread Matt Matijevich
[snip] Like I said before, the style sheets load up fine on my Windows XP IIS server, but not the Windows 2000. In order to get it to work on the Windows 2000 IIS server, I have to link the style sheets relative to the folder I am working in, but I want to be able to move certain files into

RE: [PHP] linking with home directory

2003-07-09 Thread Matt Palermo
The XP and 2000 are two different machines. = Original Message From Matt Matijevich [EMAIL PROTECTED] = [snip] Like I said before, the style sheets load up fine on my Windows XP IIS server, but not the Windows 2000. In order to get it to work on the Windows 2000 IIS server, I have to

RE: [PHP] linking with home directory

2003-07-09 Thread Matt Palermo
I have done that, and it displays the correct location. I don't know what else to do. Is there maybe something in the php.ini file? = Original Message From Mike Brum [EMAIL PROTECTED] = First, I'd create a simple test to see what the value of $newDir = $HomeDir.themes/.$ThemeFolder;

RE: [PHP] linking with home directory

2003-07-09 Thread Matt Matijevich
I mean, when you actually call the script on the XP machine, where do you test it at? Do you use a browser that is on the XP machine that is running IIS, or do you do it from a different machine? Matt Palermo [EMAIL PROTECTED] 07/09/03 10:52AM The XP and 2000 are two different machines. --

Re: [PHP] linking with home directory path

2003-07-09 Thread David Nicholson
Hello, This is a reply to an e-mail that you wrote on Wed, 9 Jul 2003 at 12:51, lines prefixed by '' were originally written by you. // Path to script files (absolute file path) $HomeDir = c:/inetpub/wwwroot/MyScript/; // Name of style folder $ThemeFolder = default; //-Then later in the

RE: [PHP] linking with home directory

2003-07-09 Thread Matt Palermo
I am testing it from the same machine for right now. = Original Message From Matt Matijevich [EMAIL PROTECTED] = I mean, when you actually call the script on the XP machine, where do you test it at? Do you use a browser that is on the XP machine that is running IIS, or do you do it from

Re: [PHP] $_SESSION act funny...

2003-07-09 Thread Marek Kilimajer
Scott Fletcher wrote: ? // Let's say $_SESSION['test'] already have the data as 'one'... @session_start(); $SID = session_name().=.session_id(); if ($_SESSION['test'] == one) { $_SESSION['test'] = two }; $_SESSION['test'] is now 'two', so the next test is true if ($_SESSION['test']

RE: [PHP] linking with home directory

2003-07-09 Thread Mike Brum
Maybe you should try to reference it from http://localhost/MyScript/default/style.css ? -M -Original Message- From: Matt Palermo [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 09, 2003 12:02 PM To: Matt Matijevich; php-general Subject: RE: [PHP] linking with home directory I am

[PHP] Simple forms query

2003-07-09 Thread Enda Nagle
I know this has prob been gone through hundreds of times... I have a form, and I want to display all the form variables on the target page - without having to use separate print statements for each variable. tks - Enda Nagle

RE: [PHP] Simple forms query

2003-07-09 Thread Jay Blanchard
[snip] I have a form, and I want to display all the form variables on the target page - without having to use separate print statements for each variable. [/snip] print_r($_POST); or print_r($_GET); hth -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Simple forms query

2003-07-09 Thread Matt Matijevich
I am not 100% sure but I think you could use the $_POST array or the $_GET array (depending on the method of your form) with the print_r function. Enda Nagle [EMAIL PROTECTED] 07/09/03 11:04AM I know this has prob been gone through hundreds of times... I have a form, and I want to display all

Re: [PHP] Big problem....need help

2003-07-09 Thread phpu
It isn't work. it gives me an error at this line. - Original Message - From: Nicolas Costes [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, July 09, 2003 4:49 PM Subject: Re: [PHP] Big problemneed help -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Le Mercredi 9 Juillet

RE: [PHP] Simple forms query

2003-07-09 Thread Enda Nagle
Hi guys, Thanks a mil - works great. I'm trying to develop a shopping cart in PHP/MySQL so I'll no doubt be back soon with more queries - thanks Enda -- -Original Message- From: Matt Matijevich [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 09, 2003 5:17 PM To: Subject: Re: [PHP]

Re: [PHP] $_SESSION act funny...

2003-07-09 Thread Mike Migurski
If you go to the next webpage by using the same file (webpage) or a $_SERVER['PHP_SELF'], the data in the $_SESSION array remain the same, it does not change as it should. snip if ($_SESSION['test'] == one) { $_SESSION['test'] = two }; if ($_SESSION['test'] == two) { $_SESSION['test'] =

Re: [PHP] $_SESSION act funny...

2003-07-09 Thread Scott Fletcher
I'm kind of expecting them to change because using the hyperlink to go to the next webpage should be treated as such for the same file (webpage file). The reason I'm using the same file is because of the navigation menu with all of the menu options that go to the include file... Mike Migurski

Re: [PHP] $_SESSION act funny...

2003-07-09 Thread Scott Fletcher
Oh Ha ha... I see what you meant.. The $_SESSION['test'] had already been changed from one to two, then three, then four, then back to one. I didn't see that coming.. I thought it just start at one and haven't changed at all. Thanks!!! Scott Fletcher [EMAIL PROTECTED] wrote in message

  1   2   >