Re: [PHP] Re: Spam Bots/E-mail Addys

2002-06-14 Thread Manuel Lemos
Hello, On 06/14/2002 01:08 AM, Justin French wrote: http://www.phpclasses.org/browse.html/statistics/statistics.html#user-browsers Interesting, but these stats only indicate what *browser* has been used... not if JS was enabled/disabled. case 1: user gets sick of pop-ups and crap, turns

[PHP] Different colors on lines

2002-06-14 Thread Bård Tommy Nilsen
Can anyone help out with this ?? Since i do the search after the query, there is an problem if line 1 in the Sql table matches, line 2 does not, but line 3 does. Then the result will display the same color on the two lines That would be printet in this example. How can i make sure that it

Re: [PHP] Re: Email validation

2002-06-14 Thread Manuel Lemos
Hello, On 06/14/2002 03:06 AM, Miguel Cruz wrote: On Fri, 14 Jun 2002, Manuel Lemos wrote: The following classes use this validation regular expression string. It does not exclude some invalid addresses but includes all valid addresses.

RE: [PHP] Different colors on lines

2002-06-14 Thread Martin Towell
have a seperate counter $query = mysql_query(select * from $tabell_4); $number = mysql_numrows($query) ; $i = 0; $bgcolor[0] = #FFE38E; $bgcolor[1] = #FF; $Search = Test; $j = 0 while ($i $number) { $Name = mysql_result($query_1,$i,Name); if (eregi ($Search, $Name)) { Echo 'tr

Re: [PHP] Different colors on lines

2002-06-14 Thread Chris Bunting
Hello, Check out the following link. http://www.zend.com/codex.php?CID=322 There are various code examples for alternating table backgrounds. Hope this helps, Chris Bunting _ Send and receive Hotmail on your mobile device:

RE: [PHP] Advanced User Authentication

2002-06-14 Thread César Aracena
I like very much the idea of using a short way. Actually, I did and here's how: // After I queried the DB for a username password match: if (mysql_num_rows($result) 0) { $row = mysql_fetch_array($result); if ($row[authlevel] == '1')

Re: [PHP] Re: Spam Bots/E-mail Addys

2002-06-14 Thread Manuel Lemos
Hello, On 06/14/2002 01:25 AM, Analysis Solutions wrote: Javascript-less represent less then 0.5% of the users in the World. I'd be interested in seeing this data proven. I'm not being sarcastic -- I'm genuinely interested.

Re: [PHP] Reg-Maximum allowed size for uploaded files

2002-06-14 Thread Jason Wong
On Friday 14 June 2002 14:10, Chris Bunting wrote: A quick search on google shows that yes, Php has a maximum upload filesize of 10MB. I don't where you got this information from, it's simply not true. -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source Software Systems

Re: [PHP] Re: Spam Bots/E-mail Addys

2002-06-14 Thread Miguel Cruz
On Fri, 14 Jun 2002, Analysis Solutions wrote: On Thu, Jun 13, 2002 at 10:36:56PM -0500, Miguel Cruz wrote: If you're doing the site for the US government, you're (thank goodness) required by law to make sure it works without JavaScript. REALLY?! That's good news. Could you please

Re: [PHP] Re: Email validation

2002-06-14 Thread Miguel Cruz
On Fri, 14 Jun 2002, Manuel Lemos wrote: On 06/14/2002 03:06 AM, Miguel Cruz wrote: On Fri, 14 Jun 2002, Manuel Lemos wrote: The following classes use this validation regular expression string. It does not exclude some invalid addresses but includes all valid addresses.

RE: [PHP] Advanced User Authentication --- solved

2002-06-14 Thread César Aracena
Done it!!! Followed the examples both of you gave me and voala! Hey... it turned out to be quite a effective user authentication system. Thanks a lot. Cesar Aracena mailto:[EMAIL PROTECTED] CE / MCSE+I Neuquen, Argentina +54.299.6356688 +54.299.4466621 -Mensaje original- De: Justin

Re: [PHP] Different colors on lines

2002-06-14 Thread Miguel Cruz
On Fri, 14 Jun 2002, Bård Tommy Nilsen wrote: Can anyone help out with this ?? Since i do the search after the query, there is an problem if line 1 in the Sql table matches, line 2 does not, but line 3 does. Then the result will display the same color on the two lines That would be

[PHP] Nested IF's (Is there a LIMIT ?)

2002-06-14 Thread Daniel Negron/KBE
This is my code, it seems that either I have the curly brackets in the wrong place OR there is a limit to how many times you can set IF's. So before I pull out the shotgun, and take out this machine, I figure I would ask the Cousel Of the PHP OverLords. So you know, I happen to also be using

Re: Re[2]: [PHP] sessions help

2002-06-14 Thread Miguel Cruz
On Thu, 13 Jun 2002, Kevin Stone wrote: Your problem is here.. return ($_SESSION['node'] = $node_id); I do not believe that you can both set and return a varaible on the same line. FYI, the variable which you're returning in this function is global.. so there's no reason

Re: [PHP] Nested IF's (Is there a LIMIT ?)

2002-06-14 Thread Miguel Cruz
I am too lazy to count your braces for you, but no, there's not really a limit to how many ifs you can nest. It helps to use an editor that flashes the bracket's companion when you type or edit one. That way you can easily see whether they're balanced in the right place. miguel On Fri, 14

RE: [PHP] Nested IF's (Is there a LIMIT ?)

2002-06-14 Thread Martin Towell
Bracketing looks good try pulling chunks of code out and gradually add it in to see where the problem lies eg (sorry for reformatting your code) ? include config.php; include form_validator.class; include validateEmailFormat.php; if ($submit) { echo ok } else { ? HTML FORM html code in here,

Re: [PHP] Re: Spam Bots/E-mail Addys

2002-06-14 Thread Miguel Cruz
On Fri, 14 Jun 2002, Manuel Lemos wrote: I would say that the long standing users are even more aware that they should not turn off Javascript because they are experienced enough to know that some sites of their preference do not work right without Javascript. I believe that users that

Re: [PHP] Nested IF's (Is there a LIMIT ?)

2002-06-14 Thread Daniel Negron/KBE
I am too lazy to count your braces for you, but no, there's not really a limit to how many ifs you can nest. It helps to use an editor that flashes the bracket's companion when you type or edit one. That way you can easily see whether they're balanced in the right place. »»» Do you happen to

RE: [PHP] Nested IF's (Is there a LIMIT ?) SOLVED

2002-06-14 Thread Daniel Negron/KBE
I re-arranged the order of IF execution all together. Email Validation First then Form Validation. Thanx Martin and Miguel for your responses. Finally going to bed, have to be up in 3 hours. Thank You Daniel Negrón Lotus Notes Administrator / Developer KB Electronics, Inc.

RE: [PHP] Advanced User Authentication --- solved

2002-06-14 Thread Chris Bunting
Hi All, Here is a link to an easy to use session program. Has all the code needed I think. This is what I have been using to get used to sessions and all. http://www.trios.org/php/sessions/ Hope this helps soneone, Chris _ Send

[PHP] Linux DBG-GUI

2002-06-14 Thread Philipp Melab
I'm using SuSE 8.0 and i need a free GUI to use with DBG. yours Philipp -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] HTTP Compression

2002-06-14 Thread Webmaster do Aborla.net
Hi, I would like to know how can I compress the output of PHP through Zlib. Thanking in advance, Nuno Lopes -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] fishcart on win98

2002-06-14 Thread savaidis
I have a problem trying to install Fishcart on my win98 system.(Also a ActivePerl problem) Has anyone succeed this? PS Sorry for non-topic. I had no answer from the fishchart list. Makis -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] row pointer

2002-06-14 Thread Zac Hillier
Hi I'm looking for a php function that will return the position of the pointer in a mysql recordset. I found mysql_data_seek, but this appears to only move the pointer, I need to get the equivalent row number for the pointer position before moving it, then return to the same position. Can

[PHP] SSL Support for PHP....

2002-06-14 Thread Brian McGarvie
Right... Back to the old bombshell of which webserver... I have'nt seen any reports which say what is better... Here is my issue: The webserver I am setting up will potentially host 4 or 5 sites... How does IIS fair against Apache with servring multiple sites? each site will be like...

Re: [PHP] SSL Support for PHP....

2002-06-14 Thread Chris Bunting
Hello, I'm not to sure about the servers. I use Windows XP Pro and I'm coding and stuff offline to learn more about php, lasso and mysql. I've been doing this awile now but I've had problems with various php/mysql scripts. I usually get scripts from hotscripts.com and have prolly about 100

[PHP] Replace characters

2002-06-14 Thread Brd Tommy Nilsen
I am getting the values out from an image with iptcparse, but som charachters like æ and å (norwegian) Doesnt work. I get F¾rder instead of Færder And StŒende instead of Stående. Could i do anything about this to get i right ?? Could it have somehting to do with it that the images are

Re: [PHP] HTTP Compression

2002-06-14 Thread Daniel Tryba
On Fri, Jun 14, 2002 at 08:58:29AM +0100, Webmaster do Aborla.net wrote: I would like to know how can I compress the output of PHP through Zlib. You mean like: http://www.php.net/manual/en/function.ob-gzhandler.php -- Daniel Tryba -- PHP General Mailing List (http://www.php.net/) To

[PHP] Re: Email validation

2002-06-14 Thread Pedro Pontes
That one does not accept '+'. In fact, that was the 1st time I ever saw such a character in an e-mail address. I did not check the RFC, but if it is valid, just add the '+' char to the reg. exp. like this: function mailCheck($strEMailAddress) { return

RE: [PHP] SSL Support for PHP....

2002-06-14 Thread Brian McGarvie
Also... IF Apache... what version? -Original Message- From: Brian McGarvie Sent: 14 June 2002 9:14 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: [PHP] SSL Support for PHP Right... Back to the old bombshell of which webserver... I have'nt seen any reports which

[PHP] Re: [PHP-WIN] SSL Support for PHP....

2002-06-14 Thread Stuart Dallas
On Friday, June 14, 2002, 9:13:59 AM, Brian McGarvie wrote: How does IIS fair against Apache with servring multiple sites? each site will be like... http://customername.ourdomain.co.uk Both are capable of serving multiple sites without any issues that I am aware of. Also - more an IIS/Apache

[PHP] get_object_vars()

2002-06-14 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi everyone, I'm using get_object_vars() to unset all of the object vars in a function like this: function destroy_properties($obj) { if($properties=get_object_vars($obj)) { foreach($properties as $key = $val) {

Re: [PHP] Shut down server

2002-06-14 Thread Rosen
Thanks, but the idea is another user only to start and shutdown the server. Any ideas ? Thanks, Rosen Bruce Karstedt [EMAIL PROTECTED] wrote in message 00ea01c21339$e7856d60$4773d73f@c3">news:00ea01c21339$e7856d60$4773d73f@c3... This is a bad idea from a security standpoint. If your server is

Re: [PHP] Reg-Maximum allowed size for uploaded files

2002-06-14 Thread SenthilVelavan
Thanks Chris for your immediate response.Yes we got the error page not found when we cross 7.5 MB. How to increase the time out time.Whether we have to edit the httpd.conf or php.ini file to increase the time out time. Any help is appreciated. thanks in advance, SenthilVelavan.P - Original

Re: [PHP] Reg-Maximum allowed size for uploaded files

2002-06-14 Thread Stuart Dallas
On Friday, June 14, 2002, 11:51:22 AM, SenthilVelavan wrote: How to increase the time out time.Whether we have to edit the httpd.conf or php.ini file to increase the time out time. Per script: http://www.php.net/set_time_limit In PHP.ini:

Re: [PHP] Extracting from an Array

2002-06-14 Thread Andre Dubuc
Hi John, Sorry about the delayed mail. Anyway, I kept at it, and debugged every line with no success. Finally, I rewote it, and it worked?? [Sigh . . . one of those days :] Thanks again for all your help. Regards, Andre On Thursday 13 June 2002 11:28 pm, you wrote: Step through your

Re: [PHP] Nested IF's (Is there a LIMIT ?)

2002-06-14 Thread Neil Freeman
Maguma Studio for PHP Light will do the job. Neil Daniel Negron/KBE wrote: ** This Message Was Virus Checked With : SAVI 3.58 May 2002 Last Updated 11th June 2002

[PHP] Error in enabling Image module in Php

2002-06-14 Thread Arul Venkatesh Kandaswamy
Hello folks, When i tried to install php.My make command stops with the following error gd.c:95: conflicting types for `gdIOCtx' /usr/local/include/gd_io.h:18: previous declaration of `gdIOCtx' gd.c: In function `php_if_imagecreatefromgif': gd.c:1209: `gdImageCreateFromGif' undeclared (first

[PHP] session variables in OOP....

2002-06-14 Thread Wilbert Enserink
Hi all, I'm busy building a site which uses OOP. Several classes are used to constuct different sections of the final page to be displayed. The overall class is called class.basepage.php This is the page which outputs HTML and calls other classes to construct other parts of the page. Now I

[PHP] RE: [PHP-WIN] SSL Support for PHP....

2002-06-14 Thread Brian McGarvie
Basically then there is no real reason for Apache over IIS on win2k server? I am the admin of the Webservers, but the overall network manager would like to keep it MS-centric just because all the rest is. With our leased line we aqquired 16 ips, so in the IIS config I would just use that IP

[PHP] Re: [PHP-WIN] SSL Support for PHP....

2002-06-14 Thread Stuart Dallas
On Friday, June 14, 2002, 11:07:24 AM, Brian McGarvie wrote: Basically then there is no real reason for Apache over IIS on win2k server? Not now Apache 2 is here. Apache 1.x has always been considered by the Apache group as beta code and therefore not suitable for use in a production

Re: [PHP] session variables in OOP....

2002-06-14 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * and then Wilbert Enserink declared I hope you understand my problem and have some tips for me. Below is some code snippets I'm using: Actually it's a little tricky to understand ;-) Have you considered output buffering? - -- Nick Wilson

RE: [PHP] SSL Support for PHP....

2002-06-14 Thread Henrik Johansson
Hi. You probably want to use Windows 2000 Server instead; after all, Windows XP is more or less targeted against workstations and home use (as of yet). It may need some tweaking to be suitable for server-use. Consider the complexity of all DCOM+ components that coexist and rely on various

Re: [PHP] session variables in OOP....

2002-06-14 Thread W. Enserink
Hi all, Nick: thx for the tip, it removed the error, and might further be a good idea: except: do you know if I can declare session variables and use them in between the output buffer statements like this: (i tried it but it doesn't seem to work)?? greetings Wilbert include

Re: [PHP] session variables in OOP....

2002-06-14 Thread 1LT John W. Holmes
If you want to do it right, don' t output anything, obviously. Instead of using ECHO, assign all output to a variable within your class. Then, at the end of the processing, after everything is done, echo out that variable (which will contain the entire page). Then you can set cookies, sessions,

Re: [PHP] MySQL Query Help!!!!

2002-06-14 Thread Mark Gallagher
Chris Kay wrote: The query does not error out it just does not give any records, and I Know What part of The query does not error out do you not understand. Why are there so many people willing to say what is wrong with a code but when it comes to A solution that go silent. I find

[PHP] XML Feed

2002-06-14 Thread Necro
I am currently trying to implement XML Parsing on a site using the XML News Feed of another site. The site puts two versions of the news in its file though: - item titleTsunami 2265 Date, Demo/title linkhttp://www.shacknews.com/onearticle.x/20959/link /item - ITEM SUBJECTTsunami 2265

[PHP] Passing variables from one page to another

2002-06-14 Thread Don
Hi, Does anyone have a PHP method of passing variables from a form to another page without using sessions or encoding within the URL? I remember someone mentioning a class but I lost the reference. My site uses PHP 4.0.1Pl1 Thanks, Don

[PHP] Quick question

2002-06-14 Thread Dan McCullough
I have a form, and if someone doesnt fill in a field it returns and asks them to filling in the missing field. I have made it so that the person doesnt lose everything, currently they will lose radio button information or checkbox information. Can someone tell me how to best keep it so the

[PHP] getting help on php

2002-06-14 Thread Hotmail
Dear sir, I have two questions : 1- Is there a function in php that refreshes my page ? 2- Is there a function that lets me open a new window ?

Re: [PHP] Passing variables from one page to another

2002-06-14 Thread Jason Wong
On Friday 14 June 2002 22:16, Don wrote: Hi, Does anyone have a PHP method of passing variables from a form to another page without using sessions or encoding within the URL? I remember someone mentioning a class but I lost the reference. My site uses PHP 4.0.1Pl1 Use POST. -- Jason

Re: [PHP] Quick question

2002-06-14 Thread Marek Kilimajer
Quick answer: input type=checkbox name=name value=value?= ( $HTTP_POST_VARS['name']=='value' ? ' checked' : '' ) ? the same for radio boxes. Dan McCullough wrote: I have a form, and if someone doesnt fill in a field it returns and asks them to filling in the missing field. I have made it

Re: [PHP] getting help on php

2002-06-14 Thread R'twick Niceorgaw
1. use META TAGS to refresh the page 2. use javascript to open a new window - Original Message - From: Hotmail [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, June 14, 2002 10:36 AM Subject: [PHP] getting help on php Dear sir, I have two questions : 1- Is there a function in

Re: [PHP] getting help on php

2002-06-14 Thread Jason Wong
On Friday 14 June 2002 22:36, Hotmail wrote: 1- Is there a function in php that refreshes my page ? Short answer, no. Longer answer depends on what you want to do and what you mean by 'refresh page'. 2- Is there a function that lets me open a new window ? No, that's a client-side operation,

[PHP] Editor

2002-06-14 Thread Adrian Greeman
I am just surprised that noone mentioned HTML-Kit among all the editors suggested. I think it is fine and it even gives you a quick preview in browser window for HTML. It gives you PHP among various other options colouring the code differently and you can just highlight code to surround it

[PHP] Imgeupload to mysql beyond 1 kb fails

2002-06-14 Thread Are Haugsdal
Hi Images under 1 kb uploads and shows fine. Images larger than this is inserted into database, with correct file size, but does not show when calling a php file get_image.php as a image. Below is from my database, the image with id 33 does not show, the image with id 34 do show. When having

[PHP] Imgeupload to mysql beyond 1 kb fails

2002-06-14 Thread Are Haugsdal
Hi Images under 1 kb uploads and shows fine. Images larger than this is inserted into database, with correct file size, but does not show when calling a php file get_image.php as a image. Below is from my database, the image with id 33 does not show, the image with id 34 do show. When having

[PHP] protect code or something like..

2002-06-14 Thread Rodrigo Peres
Hi list, I have a project that was develop in a partnership, now this partners doesn't so partners anymore :-/ My question is there's a way to create a protection that I can trace if the software was installed in other servers?? I mean not hide the code, but put an important include of the

[PHP] Beginning / and end of word / in eregi_replace

2002-06-14 Thread John S. Huggins
Can it be true that PHP does not implement the beginning and end of word syntax of regular expressions? In builing a bad word filter, I find this... $outstring = eregi_replace(badword$,goodword,$stringtocheck); will find an occurance of the 'badword' at the end of the string and replace it.

Re: [PHP] Editor

2002-06-14 Thread cal
URL?? :) * * Cal Evans * Techno-Mage * http://www.calevans.com * - Original Message - From: Adrian Greeman [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, June 14, 2002 8:18 AM Subject: [PHP] Editor I am just surprised that noone mentioned HTML-Kit among all the editors

[PHP] Regular expression newbie question, convert this: [::word1 \ word2\ word3::] to : .word1 word2 word3.

2002-06-14 Thread Lance
hi, i have been banging my head against the wall for hours trying to figure the expression out to perform the following: covert this: [::word1 \ word2 \ word3::] to: .word1 word2 word3. i would definitely appreciate any help given on this. thanks beforehand. lance -- PHP General Mailing

Re: [PHP] session variables in OOP....

2002-06-14 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * and then W. Enserink declared Nick: thx for the tip, it removed the error, and might further be a good idea: except: do you know if I can declare session variables and use them in between the output buffer statements like this: (i tried

Re: [PHP] Editor

2002-06-14 Thread 1LT John W. Holmes
Google?? http://www.google.com/search?hl=enie=UTF8oe=UTF8q=HTML-Kit ---John Holmes... - Original Message - From: [EMAIL PROTECTED] To: Adrian Greeman [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Friday, June 14, 2002 11:38 AM Subject: Re: [PHP] Editor URL?? :) * * Cal Evans

Re: [PHP] Beginning / and end of word / in eregi_replace

2002-06-14 Thread 1LT John W. Holmes
You have your answer, just use this: $outstring = eregi_replace(badword,goodword,$stringtocheck); It'll replace it whether it's at the beginning or end of a string, embedded in a word, or by itself. Isn't that what you want? Actually, it'd be better and faster to just use str_replace() instead

Re: [PHP] protect code or something like..

2002-06-14 Thread 1LT John W. Holmes
Kind of. You can have it include() or fopen() something from another server and do whatever. But you have to realize that the code is still open on their page, so they can bypass or just comment out whatever you are trying to do. Search the archives, too. Wasn't there a huge discussion on this

Re: [PHP] Passing variables from one page to another

2002-06-14 Thread 1LT John W. Holmes
Plain and simple...you have four options: COOKIE, GET, POST, SESSION. So, load all of your data into a cookie or load it into hidden elements in a form and submit it somewhere... Okay? ---John Holmes... - Original Message - From: Don [EMAIL PROTECTED] To: php list [EMAIL PROTECTED]

Re: [PHP] XML Feed

2002-06-14 Thread Analysis Solutions
On Fri, Jun 14, 2002 at 11:35:04PM +1000, Necro wrote: I am currently trying to implement XML Parsing on a site using the XML News Feed of another site. The site puts two versions of the news in its file though: - item titleTsunami 2265 Date, Demo/title

[PHP] Fast Templates to embed data into Flash files ?

2002-06-14 Thread Girish Nath
Hi I'm about to start a project which involves building a 'website on a CD'. There will be similar areas and layouts, just containing different data, within the site pages. The pages will be a HTML framework containing Flash and QuickTime files etc. I've worked with Fast Templates and liked the

[PHP] Dreamweaver MX?

2002-06-14 Thread Lazor, Ed
Does Dreamweaver MX have good PHP support? Thanks, -Ed This message is intended for the sole use of the individual and entity to whom it is addressed, and may contain information that is privileged, confidential and

RE: [PHP] Shut down server

2002-06-14 Thread Lazor, Ed
Could you restate this question? Sorry, I don't understand what you're asking. -Original Message- but the idea is another user only to start and shutdown the server. This message is intended for the sole

[PHP] Evaluation. Easy Question but I need some help

2002-06-14 Thread Dan McCullough
I'm trying to evaluate form submissions. When I return a form submission cause of a missing field I want the radio and checkboxes to reflect what the client submitted. So if somone forgets to fill in their address, but has done everything else fine, I dont want them to have to refill out the

Re: [PHP] Shut down server

2002-06-14 Thread Rosen
Hi, I want to make server on Linux Red Hat 7.2 to shutdown from WEB interface. A'll not have any access to this server. Server will not be connected to Internet - it's local for organization. I want one men from them only to turn on computer and to shutdown server via WEB interface without any

RE: [PHP] Evaluation. Easy Question but I need some help

2002-06-14 Thread Lazor, Ed
So how would I in PHP say if $var == value1 then this radio button is checked? And how do I do it and keeping the code compact? input type=checkbox ?php if ($var == value1) echo CHECKED;? This message is

[PHP] Anyone have any experience with the EXEC function?

2002-06-14 Thread Batch
I am trying to exec a perl script from my php code. Here is what I have: exec(perlpath/perlscript.pl $var, $array) The perl script runs fine as I am piping the results to a txt file also...so I know that the script is running fine. I am printing the result of the perl script to STDOUT which

Re: [PHP] Beginning / and end of word / in eregi_replace

2002-06-14 Thread John S. Huggins
On Fri, 14 Jun 2002, 1LT John W. Holmes wrote: -You have your answer, just use this: - -$outstring = eregi_replace(badword,goodword,$stringtocheck); - -It'll replace it whether it's at the beginning or end of a string, embedded -in a word, or by itself. Isn't that what you want? - Not quite. I

[PHP] closing mysql connections

2002-06-14 Thread David McInnis
How necessary is this? Don't connections close automatically after the page finishes executing? What are the general rules for closing connections and freeing query results? David McInnis -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Anyone have any experience with the EXEC function?

2002-06-14 Thread Jason Wong
On Saturday 15 June 2002 00:57, Batch wrote: I am trying to exec a perl script from my php code. Here is what I have: exec(perlpath/perlscript.pl $var, $array) Using exec() like this would put the exit code of your perl script into $array -- which isn't what you want. Use shell_exec() or

RE: [PHP] closing mysql connections

2002-06-14 Thread Lazor, Ed
How necessary is this? Very. Don't connections close automatically after the page finishes executing? Correct. All variables are released and all connections are closed automatically by PHP upon script completion. What are the general rules for closing connections and freeing query

Re: [PHP] row pointer

2002-06-14 Thread Analysis Solutions
Hey Zac: On Fri, Jun 14, 2002 at 08:59:02AM +0100, Zac Hillier wrote: I'm looking for a php function that will return the position of the pointer in a mysql recordset. I don't think there is one. You could use a counter variable as you're looping through each row to keep track of where

Re: [PHP] Regular expression newbie question, convert this: [::word1 \ word2 \ word3::] to : .word1 word2 word3.

2002-06-14 Thread Analysis Solutions
Lance: On Fri, Jun 14, 2002 at 11:41:34PM +0800, Lance wrote: [::word1 \ word2 \ word3::] to: .word1 word2 word3. While I don't know if this is really what you need, it does do exactly what you want to do in your example: $Replace['\\'] = ''; $Replace['::'] = '.';

RE: [PHP] Dreamweaver MX?

2002-06-14 Thread John Holmes
Yes, download it and see. Gives you a GUI to program recordsets from the database, and drag and drop for results. Other PHP stuff along with highlighting built in. If it didn't cost so much, I'd recommend it. ---John Holmes... -Original Message- From: Lazor, Ed [mailto:[EMAIL

RE: [PHP] closing mysql connections

2002-06-14 Thread John Holmes
Use it in your code; it'd be a good programming habit to get into. --John Holmes... -Original Message- From: David McInnis [mailto:[EMAIL PROTECTED]] Sent: Friday, June 14, 2002 12:57 PM To: [EMAIL PROTECTED] Subject: [PHP] closing mysql connections How necessary is this? Don't

[PHP] Re: Dreamweaver MX?

2002-06-14 Thread Alexandru COSTIN
Hello Does Dreamweaver MX have good PHP support? Their initial support (PHP_MySQL as known as a server model) is quite nice. However, we have released PHAkt 2 MX (still free and GPL and kicking) , with a lot of goodies included: PHAkt 2 beta improvements over the PHP_MySQL

RE: [PHP] row pointer

2002-06-14 Thread John Holmes
Keep track of it yourself as you loop through the data. Maybe if you explained what you need overall then we could suggest a method... ---John Holmes... -Original Message- From: Zac Hillier [mailto:[EMAIL PROTECTED]] Sent: Friday, June 14, 2002 3:59 AM To: [EMAIL PROTECTED]

[PHP] Header URL question

2002-06-14 Thread Jay Blanchard
I wanted to return to a specific page in a small web app I am writing, which is based on a variable for each individual record. I just tried header(Location: customer.php? . $btn . ); exit; and although syntactically correct it did not work. I am going to try a couple of other things but I

RE: [PHP] Header URL question

2002-06-14 Thread Jay Blanchard
oops, never mind, I think I see the problem...a missing btn= -Original Message- From: Jay Blanchard [mailto:[EMAIL PROTECTED]] Sent: Friday, June 14, 2002 12:59 PM To: [EMAIL PROTECTED] Subject: [PHP] Header URL question I wanted to return to a specific page in a small web app I am

[PHP] Variable Result is not displayed

2002-06-14 Thread J0s
Hi there, To work on some scripts, I have install PHP 4.02 on a IIS 5.1 server. (on my own XP machine) I have setuped PHP following install.txt procedure. When I try to run my scripts they works fine exept for the variables results that are not displayed. I have upload this script on my web

Re: [PHP] Dreamweaver MX?

2002-06-14 Thread Jas
It also has support for snippits, or a code library that you can add, edit or delete. Saves alot of time in re-using code. I definately recommend it, not only for that reason for but for the code debugging options available. HTH Jas John Holmes [EMAIL PROTECTED] wrote in message

RE: [PHP] Variable Result is not displayed

2002-06-14 Thread Lazor, Ed
Could you include some of your code? -Original Message- When I try to run my scripts they works fine exept for the variables results that are not displayed. This message is intended for the sole use of

RE: [PHP] Dreamweaver MX?

2002-06-14 Thread Lazor, Ed
Thanks everyone. I'll check it out. much. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] beginner in PHP

2002-06-14 Thread Phillip Perry
So how do I affect the local copies of the variables. The global() doesn't seem to work. Should I take everything out of the function and just use if statements? -Original Message- From: Tim Ward [mailto:[EMAIL PROTECTED]] Sent: Friday, June 14, 2002 3:46 AM To: [EMAIL PROTECTED]; Tim

[PHP] Re: Variable Result is not displayed

2002-06-14 Thread J0s
Here is an example of the test script. sample.php ? $result=$who. works as a .$what. in .$where.. He/She can be contacted at: .$web..; print result=.$result; print loading=NO; ? Nota : The variable are passed throught a Flash form. In this case, if the script is uploaded on my web site

RE: [PHP] Re: Variable Result is not displayed

2002-06-14 Thread Lazor, Ed
make sure global variables are enabled in your php.ini -Original Message- From: J0s [mailto:[EMAIL PROTECTED]] Sent: Friday, June 14, 2002 11:52 AM To: [EMAIL PROTECTED] Subject: [PHP] Re: Variable Result is not displayed Here is an example of the test script. sample.php ?

[PHP] XML and parameter entities

2002-06-14 Thread Pawel
Hello, I'm having a hard time getting expat to parse parameter entities and I'm wondering if any one tried this before (general entities work fine) sample xml: ?xml version='1.0'? !DOCTYPE alfs [ !ENTITY % common_entities SYSTEM 00-entities-00

Re: [PHP] Re: Variable Result is not displayed

2002-06-14 Thread J0s
Thanks a lot! Ok this programm began to be interesting. I will try to stop to be a Newbie. : )) Ed Lazor [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... make sure global variables are enabled in your php.ini -Original Message- From: J0s

[PHP] Question about global variables

2002-06-14 Thread Don
Hi, Don't know if this is possible but is there a way to create a single variable (in my case, a two dimensional array) that is global to my site? This is regardless of which page is initially loaded BUT I need to have it empty first time in. I am trying to implement a 'stack' feature where

RE: [PHP] bulk mail()

2002-06-14 Thread Jeff Field
I've been doing the following sending personalized mail to 600+ recipients, so far without any signs of discomfort anywhere: set_time_limit($total_rows * 1); // up the script timeout 1 second per email BTW, I use qmail; not sendmail. As I've never used sendmail, I don't know if this is part

Re: [PHP] Question about global variables

2002-06-14 Thread Kevin Stone
I don't think this is possible to setup a global way you're thinking, but I do believe that you can still accomplish the effect you're looking for. First of all, exactly what kind of information will you be storing in the array? You say it needs to be empty the 'first time in'. Does that mean

RE: [PHP] bulk mail()

2002-06-14 Thread Pawel
-Original Message- From: Justin French [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 12, 2002 6:45 AM To: php Subject: [PHP] bulk mail() Hi all, I've got a mailing on a website, with email address' / names / etc in a MySQL table. I think there's around 120 on

Re: [PHP] Question about global variables

2002-06-14 Thread remery
Cookies Session variables - Original Message - From: Don [EMAIL PROTECTED] To: php list [EMAIL PROTECTED] Sent: Friday, June 14, 2002 2:08 PM Subject: [PHP] Question about global variables Hi, Don't know if this is possible but is there a way to create a single variable (in

  1   2   >