Re: [PHP] Register Globals

2004-10-26 Thread Curt Zirzow
* Thus wrote Matthew Sims: > > I just signed up with a new hosting site. So first thing I did was check > what phpinfo() had to say. > > I see that register_globals is turned on. Now I always use the $_GET and > $_POST vars but will this still affect me? As long as you dont use third party softw

Re: [PHP] Validation and session variables

2004-10-26 Thread Stuart Felenstein
Yes the session variables are set with $SESSION[''}. The way it works is the variable gets set on the follwing pages: So, example on page 1: I have this user input field: On the following page (page 2): $_SESSION['f1a'] = $_POST['ListingName']; And all the pages follow the same method. Inputs

Re: [PHP] Validation and session variables

2004-10-26 Thread Ligaya Turmelle
Without seeing the code: Try putting session_start() at the VERY beginning. Also try having the action go to the page itself ($PHP_SELF or putting in the path). Is the session variables being set using $SESSION['']? Respectfully, Ligaya Turmelle Stuart Felenstein wrote: Having some odd behavio

Re: [PHP] __PHP_Incomplete_Class Errors...

2004-10-26 Thread Curt Zirzow
* Thus wrote Stephen Craton: > I've been working on a script for a while now and it works perfectly on my > local machine. I'm using a couple of classes, mainly my database and users > classes. > > After logging in, I assign a session variable to the user's row in the > database: $_SESSION['user']

Re: [PHP] alias a function

2004-10-26 Thread Curt Zirzow
* Thus wrote Justin French: > Hi, > > What's the quickest way to alias a user function? > > I have a function which uses english spelling (eg categorise instead of > categorize), and I want to alias the function with an "Americanized" > spelling. > > I'd rather that the alias categorize() did

Re: [PHP] Protecting Commercial PHP Scripts

2004-10-26 Thread Curt Zirzow
* Thus wrote Nick Wilson: > Hello all, > > I was wondering if anyone might have suggestions or useful links on > protecting commercial php scripts. One thing that is always overlooked besides trying to obscure the code so only reverse engineering is possible, is to include a license in the sourc

Re: [PHP] Compiling PHP with extension; CLI works, Apache doesn't

2004-10-26 Thread Curt Zirzow
* Thus wrote Aaron Gould: > I just compiled PHP with an extension for testing purposes > (mnoGoSearch). After all was said and done, the CLI version sees the > mnogosearch extension just fine ("php -m"), but the Apache module > doesn't see it at all (nothing "mnogosearch" related at all in "PHP

RE: [PHP] file upload

2004-10-26 Thread Zareef Ahmed
Hi, Here is a small but working script which emulate post. You can post any type of data as a form field. http://www.zend.com/codex.php?id=77&single=1 But as many other users have suggested, I think SOAP is the best thing to try. Visit http://sourceforge.net/projects/nusoap/ Zareef Ahmed --

[PHP] __PHP_Incomplete_Class Errors...

2004-10-26 Thread Stephen Craton
I've been working on a script for a while now and it works perfectly on my local machine. I'm using a couple of classes, mainly my database and users classes. After logging in, I assign a session variable to the user's row in the database: $_SESSION['user'] = $db->row; This works fine locally, bu

[PHP] alias a function

2004-10-26 Thread Justin French
Hi, What's the quickest way to alias a user function? I have a function which uses english spelling (eg categorise instead of categorize), and I want to alias the function with an "Americanized" spelling. I'd rather that the alias categorize() did not have to be altered in any way to "keep up"

Re: [PHP] not _that_ fixed....

2004-10-26 Thread Curt Zirzow
* Thus wrote Robert Cummings: > On Tue, 2004-10-26 at 10:14, Curt Zirzow wrote: > > > > > Actually it gets easier.. > > > > cd ext/custommodule/ > > phpize > > ./configure --with-custommodule > > make > > > > Now you'll have a custommodule.so available. > > Aaah cool. When did that become avail

Re: [PHP] not _that_ fixed....

2004-10-26 Thread Curt Zirzow
You can write your program in c++, checkout this pecl extension: http://pecl.php.net/rar You might want to join the pecl mailing list, there are more developer eyes there that can answer questions about these things. * Thus wrote Pierre Ancelot: > > > in fact, i would code it in c++ but the

Re: [PHP] not _that_ fixed....

2004-10-26 Thread Pierre Ancelot
in fact, i would code it in c++ but the used compiler is gcc... i tried to change the value CC in makefile but the lib obtained is invalid and is not working with php any idea on this ? Sorry to bother again :) On Tuesday 26 October 2004 16:14, Curt Zirzow wrote: > * Thus wrote Robert Cu

Re: [PHP] Re: PHP Crypt on MacOSX

2004-10-26 Thread Galen
I use md5 all the time and OS X is my web development staging environment! I write and test all my scripts on OS X and then send off to the server. I don't use crypt, but I have never seen any problems going between the two. apache, php, mysql, rsync, ssh, scp, everything *nixy plus a nice inte

Re: [PHP] mysql_escape_string breaks EOL?

2004-10-26 Thread Marek Kilimajer
David Robley wrote: It seems that mysql_escape_string and mysql_real_escape_string do undesirable things to EOL markers - data from textareas escaped with either of those functions is entered, and retrieved with, the characters /r/n instead of a true line break. This snippet of code demonstrates th

[PHP] Re: Sending Mail with PHP

2004-10-26 Thread Manuel Lemos
Hello, On 10/26/2004 06:22 AM, Wiesiek wrote: So.. If domain was not exist (like (2)), then exim4 generate error message and send [EMAIL PROTECTED] (like (4)). Is some way to change it? I never set in any config these address. I try to set in mail header Return-Patch:, but it seems to no work :( Y

[PHP] Validation and session variables

2004-10-26 Thread Stuart Felenstein
Having some odd behaviour. First , let me mention this is a multi page form using session variables. (This might be important) So I am doing a page by page validation, and have tried putting the code before session_start or after. Either way my session variables are getting lost. Now in order t

[PHP] simplexml question.

2004-10-26 Thread postmaster
Hello, I looking to get the data out of this test.xml file but dont know how to get the data out because of the "bo:" namespaces. If I remove all "bo:" from the xml then it works fine... Is anyone can tell me how to do it? UserAuthRequest->UserLoginName . "\n"; ?> test.xml: http://ACORD.org

Re: [PHP] Regex Lookbehind help

2004-10-26 Thread Alex Hogan
> Check the documentation for preg_match()...it can't be used that way. It returns > false or the number of matches, but not the matching text itself. To get the > matches you have to supply the third parameter (matches). Plus you'll probably > want to use preg_match_all() unless you only want

RE: [PHP] Regex Lookbehind help

2004-10-26 Thread Michael Sims
Alex Hogan wrote: >> I just tried this out and the first regex is actually working for me >> on php 4.3.8 (cli). Can you post some code? > > At this point all I'm trying to do is print the array with the > addresses. > > $file=readfile('mypathto/myfile.html'); > $patrn

RE: [PHP] Is flock() necessary on a simple file append?

2004-10-26 Thread Michael Sims
Kevin Grigorenko wrote: > "Paul Fierro" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] >> According to this post, you do not need to use flock() if you open a >> file in append mode: >> >> http://marc.theaimsgroup.com/?l=php-general&m=105165806915109&w=2 > > That's exactly what I was

Re: [PHP] Regex Lookbehind help

2004-10-26 Thread Alex Hogan
> I just tried this out and the first regex is actually working for me on php 4.3.8 > (cli). Can you post some code? At this point all I'm trying to do is print the array with the addresses. $file=readfile('mypathto/myfile.html'); $patrn =(\w[-._\w]*\w(?http:/

Re: [PHP] Is flock() necessary on a simple file append?

2004-10-26 Thread Kevin Grigorenko
"Paul Fierro" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On 10/24/2004 5:11 PM, Kevin Grigorenko <[EMAIL PROTECTED]> wrote: > > > I am appending to a file one line of text on every page hit, so there could > > be many occurrences of this append simultaneously. I am not opening

RE: [PHP] Regex Lookbehind help

2004-10-26 Thread Michael Sims
Alex Hogan wrote: > Hi All, > > I am trying to identify an email address in a page but I don't want to > return the email if it's [EMAIL PROTECTED] > > Here's what I have; > (\w[-._\w]*\w(? > It returns nothing, however when I take out the lookbehind section; > ([EMAIL PROTECTED],3}) > it works fin

[PHP] Regex Lookbehind help

2004-10-26 Thread Alex Hogan
Hi All, I am trying to identify an email address in a page but I don't want to return the email if it's [EMAIL PROTECTED] Here's what I have; (\w[-._\w]*\w(?http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Protecting Commercial PHP Scripts

2004-10-26 Thread Manuel Lemos
Hello, On 10/26/2004 08:44 AM, Nick Wilson wrote: I was wondering if anyone might have suggestions or useful links on protecting commercial php scripts. I am about to design a system that would be pretty valuable in a very niche market and would not wish the script to be passed on to others once do

Re: [PHP] Re: Add methods to object dinamically

2004-10-26 Thread Robert Cummings
On Tue, 2004-10-26 at 14:21, Francisco M. Marzoa wrote: > Greg Beaver wrote: > > > Sort of :) > > > > In PHP5, this will work. > > [...] > > Very nice, thanks a lot :-) > > > > > However, you won't have access to private or protected data members. > > Damn! that's exactly what I want! :-( > >

[PHP] Re: Add methods to object dinamically

2004-10-26 Thread Francisco M. Marzoa
Greg Beaver wrote: Sort of :) In PHP5, this will work. [...] Very nice, thanks a lot :-) However, you won't have access to private or protected data members. Damn! that's exactly what I want! :-( It is always better to rigidly define your methods, and extend the class as someone else suggested. Th

[PHP] Re: Add methods to object dinamically

2004-10-26 Thread Greg Beaver
Francisco M. Marzoa Alonso wrote: I've seen that's possible to add members to objects dinamically, in example: class MyClass { private $a; } $MyObject = new MyClass (); $MyObject->b = 1; Now $MyObject has a public member called 'b' that has a value of '1'. The question is, is it possible to ad

[PHP] Re: Add methods to object dinamically

2004-10-26 Thread Matthew Weier O'Phinney
* Francisco M. Marzoa Alonso <[EMAIL PROTECTED]>: > I've seen that's possible to add members to objects dinamically, in example: > > class MyClass { > private $a; > } > > $MyObject = new MyClass (); > $MyObject->b = 1; > > Now $MyObject has a public member called 'b' that has a value of '1'. >

RE: [PHP] @session_start generates a new session_id

2004-10-26 Thread Reinhart Viane
Instead of: Try this: //unregister the sessions $_SESSION['validlogin']=""; $_SESSION['username']=""; $_SESSION['password']=""; //destroy the sessions array $_SESSION = array(); //destroy the session session_destroy(); Greetings Reinhart Viane -- PHP General Mailing List (http:

[PHP] Re: PHP 5 abstract method and class type hints of extending classes

2004-10-26 Thread Jeremy Weir
"Greg Beaver" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Jeremy Weir wrote: >> The quesion is: how would one make an abstract method that can be >> compatible with all extending classes that define the method using >> different class type hints? >> >> The php block below is h

Re: [PHP] Strange explode()

2004-10-26 Thread Matthew Sims
> Hi, > Any idea why it is taking the first array as blank and giving me an array > count of 3 instead of 2? > $final="http://something.com/cgi-bin/atx/out.cgi?s=63&c=1&l=gals&u=http://bl > ah.something.com/bs3/index1.htm"; > $final2=explode("http://",$final); > $res=count($final2); > echo "".$res

Re: [PHP] Protecting Commercial PHP Scripts

2004-10-26 Thread Richard Davey
Hello Nick, Tuesday, October 26, 2004, 12:44:37 PM, you wrote: NW> I was wondering if anyone might have suggestions or useful links on NW> protecting commercial php scripts. Source Guardian works well enough for me and doesn't require that you have an extension compiled into PHP (like Zend Encod

Re: [PHP] Add methods to object dinamically

2004-10-26 Thread Greg Donald
On Tue, 26 Oct 2004 18:13:10 +0200, Francisco M. Marzoa Alonso <[EMAIL PROTECTED]> wrote: > I've seen that's possible to add members to objects dinamically, in example: > > The question is, is it possible to add methods in the same way? Why not just extend the class and add the new functions ther

Re: [PHP] not _that_ fixed....

2004-10-26 Thread Pierre Ancelot
very good question, why didn't it works the way it was described in the tut ? On Tuesday 26 October 2004 17:07, Robert Cummings wrote: > On Tue, 2004-10-26 at 10:14, Curt Zirzow wrote: > > * Thus wrote Robert Cummings: > > > On Tue, 2004-10-26 at 00:37, Pierre Ancelot wrote: > > > > in fact i got

Re: [PHP] not _that_ fixed....

2004-10-26 Thread Pierre Ancelot
It works !! thanks to you and robert, i use the phpize method, it's an excellent thing that generates all needed, no i use it in a specific folder, no need to haev the whole source around :) THANKS !! On Tuesday 26 October 2004 16:14, Curt Zirzow wrote: > * Thus wrote Robert Cummings: > > On

[PHP] Add methods to object dinamically

2004-10-26 Thread Francisco M. Marzoa Alonso
I've seen that's possible to add members to objects dinamically, in example: class MyClass { private $a; } $MyObject = new MyClass (); $MyObject->b = 1; Now $MyObject has a public member called 'b' that has a value of '1'. The question is, is it possible to add methods in the same way? I meant s

Re: [PHP] Apache+PHP on Windows

2004-10-26 Thread Janet Valade
[EMAIL PROTECTED] wrote: I have installed Apache 2.0.52 and PHP 5.0.2 on windows XP. I have configured directories and everything works until I unmark any of extensions. After this, during Apache server starting, I am reciving the warning : PHP Startup: Unable to load dynamic library "D:/MyWWWsr

Re: [PHP] not _that_ fixed....

2004-10-26 Thread Robert Cummings
On Tue, 2004-10-26 at 10:14, Curt Zirzow wrote: > * Thus wrote Robert Cummings: > > On Tue, 2004-10-26 at 00:37, Pierre Ancelot wrote: > > > > > > in fact i got it in the ./configure --help : > > > > > > [EMAIL PROTECTED]:~/phpsource/php-4.3.9$ ./configure --help | grep -i spider > > > --enabl

Re: [PHP] not _that_ fixed....

2004-10-26 Thread Pierre Ancelot
no worries, i was in bed too :P trying, thanks :) On Tuesday 26 October 2004 14:01, Robert Cummings wrote: > On Tue, 2004-10-26 at 00:58, Pierre Ancelot wrote: > > humm, thank you, finaly someone that did something of that kind :) > > > > well, i want it as a dynamic extension that i could redist

Re: [PHP] Protecting Commercial PHP Scripts

2004-10-26 Thread Pierre Ancelot
i used turck mmcache you can googlize for it, it works very well, encrypts the code, store most used files in shared memory... in other words, it also opitimise... that's what i preconise On Tuesday 26 October 2004 13:44, Nick Wilson wrote: > Hello all, > > I was wondering if anyone might hav

Re: [PHP] how to get bios info

2004-10-26 Thread Greg Donald
On Tue, 26 Oct 2004 18:54:45 +0530, Akshay <[EMAIL PROTECTED]> wrote: > how to get bios info in PHP > Is there any command? Maybe something like: php -r "system('dmesg');" -- Greg Donald Zend Certified Engineer http://gdconsultants.com/ http://destiney.com/ -- PHP General Mailing List (http:

Re: [PHP] Configuration with upload maximum issue...

2004-10-26 Thread raditha dissanayake
Joey wrote: Hi everyone, I changed the setting in my php.ini to allow an upload file size bigger then the defaul 2MB chaning the setting shown below: ; Maximum allowed size for uploaded files. ;upload_max_filesize = 2M upload_max_filesize = 5M http://www.radinks.com/upload/config.php shows all t

Re: [PHP] HTTP AUTH in PHP5

2004-10-26 Thread John Nichel
Nunners wrote: I'm having some problems with using HTTP Auth in PHP5 - how do I check whether the old $PHP_AUTH_USER exists? It's part of the $_SERVER super global. $_SERVER['PHP_AUTH_USER'] -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List (http://w

Re: [PHP] not _that_ fixed....

2004-10-26 Thread Curt Zirzow
* Thus wrote Robert Cummings: > On Tue, 2004-10-26 at 00:37, Pierre Ancelot wrote: > > > > in fact i got it in the ./configure --help : > > > > [EMAIL PROTECTED]:~/phpsource/php-4.3.9$ ./configure --help | grep -i spider > > --enable-spider Enable spider support >... > > That said,

Re: [PHP] Configuration with upload maximum issue...

2004-10-26 Thread John Nichel
Joey wrote: Hi everyone, I changed the setting in my php.ini to allow an upload file size bigger then the defaul 2MB chaning the setting shown below: ; Maximum allowed size for uploaded files. ;upload_max_filesize = 2M upload_max_filesize = 5M However when I go to phpinfo, or of course try to

Re: [PHP] Configuration with upload maximum issue...

2004-10-26 Thread Greg Donald
On Tue, 26 Oct 2004 09:37:06 -0400, Joey <[EMAIL PROTECTED]> wrote: > I changed the setting in my php.ini to allow an upload file size bigger then > the defaul 2MB chaning the setting shown below: > > ; Maximum allowed size for uploaded files. > ;upload_max_filesize = 2M > upload_max_filesize = 5M

Re: [PHP] List of Dates Grouped by Week

2004-10-26 Thread John Nichel
Shaun wrote: Hi, I am creating an online timesheet application. Most parts are done, however I have a problem displaying a list of unapproved timesheets. Here is my timesheet table: mysql> DESCRIBE Timesheets; +---+-+--+-+++ | Field

[PHP] how to get bios info

2004-10-26 Thread Akshay
hi all, how to get bios info in PHP Is there any command? Suggest me. akshay -- Using Opera's revolutionary e-mail client: http://www.opera.com/m2/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] HTTP AUTH in PHP5

2004-10-26 Thread Nunners
I'm having some problems with using HTTP Auth in PHP5 - how do I check whether the old $PHP_AUTH_USER exists? Cheers Nunners

RE: [PHP] file upload

2004-10-26 Thread Jesse Castro
> Ahh, if you *have* to push the data (which you obviously do) and the > authentication site has no other authentication methods then you have > to POST the file with PHP. It can be done, there are many classes for > it, I can't recommend any specific class, but I'm sure someone else > here coul

Re: [PHP] Strange explode()

2004-10-26 Thread Ryan A
Hey, Thanks, I have also gotten rid of the blank one like this: if($final2[0]==""){unset($final2[0]);} -Ryan On 10/26/2004 3:36:45 PM, Brent Baisley ([EMAIL PROTECTED]) wrote: > The result is correct. You are splitting the string based on "http://";. > > There are two instances of it, so there

[PHP] Configuration with upload maximum issue...

2004-10-26 Thread Joey
Hi everyone, I changed the setting in my php.ini to allow an upload file size bigger then the defaul 2MB chaning the setting shown below: ; Maximum allowed size for uploaded files. ;upload_max_filesize = 2M upload_max_filesize = 5M However when I go to phpinfo, or of course try to upload a f

Re: [PHP] Strange explode()

2004-10-26 Thread Brent Baisley
The result is correct. You are splitting the string based on "http://";. There are two instances of it, so there are 3 resulting elements. Since there is not text before the first instance, your first array element is empty. If there was text before the first instance, you would expect 3 re

[PHP] Re: best php script that counts current online users, question.

2004-10-26 Thread Daniel Schierbeck
Louie Miranda wrote: Hi, i got tired testing free php scripts that does count current online users and i could not find the best one yet. maybe someone can help me. im looking for a current counter for online users, php script that does count even if its inside a proxy with one ip. i can't find one

Re: [PHP] best php script that counts current online users, question.

2004-10-26 Thread raditha dissanayake
Louie Miranda wrote: Hi, i got tired testing free php scripts that does count current online users and i could not find the best one yet. what is the yard stick -- Raditha Dissanayake. http://www.radinks.com/sftp/

Re: [PHP] uploading large files

2004-10-26 Thread raditha dissanayake
Double Shameless Plus follows: marc serra wrote: Hi, I'm designing a web site and i need to let users upload large files like 10M or more. You need to tweak your php installation to be able to handle such large files http://www.radinks.com/upload/config.php will help you do that. I got some solu

RE: [PHP] System Command and snmp commands

2004-10-26 Thread Mulley, Nikhil
Tring Tring . Just to ring please help me. I am giving to out print_r($ret) then it returns 1 at exec(' snmpget -v 2c -c public 10.103.16.14 sysUpTime.0',$ret); --Nikhil -Original Message- From: Mulley, Nikhil [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 26, 2004 12:41 PM

[PHP] List of Dates Grouped by Week

2004-10-26 Thread Shaun
Hi, I am creating an online timesheet application. Most parts are done, however I have a problem displaying a list of unapproved timesheets. Here is my timesheet table: mysql> DESCRIBE Timesheets; +---+-+--+-+++ | Field

[PHP] uploading large files

2004-10-26 Thread marc serra
Hi, I'm designing a web site and i need to let users upload large files like 10M or more. I got some solution that are using common file transfert in PHP or using FTP transfert in PHP. The problem is that if someone upload a big file he will not have any indication about the upload status. Is t

[PHP] Strange explode()

2004-10-26 Thread Ryan A
Hi, Any idea why it is taking the first array as blank and giving me an array count of 3 instead of 2? http://something.com/cgi-bin/atx/out.cgi?s=63&c=1&l=gals&u=http://bl ah.something.com/bs3/index1.htm"; $final2=explode("http://",$final); $res=count($final2); echo "".$res; print_r($final2); ?> T

RE: [PHP] @session_start generates a new session_id

2004-10-26 Thread Lizet Peña de Sola
Hello Greg, Thanks for reply, I did try ini_set ( "session.auto_start", "1"); and it set the session.auto_start to On on my configuration, however the rest of the users on that server had auto_start off. This didn't solve the problem, should I try to access .htaccess? I presume it will affect all t

Re: [PHP] file upload

2004-10-26 Thread Kris
Victor Yes, Chris is correct. Maybe you can POST your file via cURL to the remote script expecting to receive your file from the authentication site. Definitely check PEAR. There is also some info at php.net about new SOAP capabilites built-in to PHP 5. Unfortunately I have only used cURL t

Re: [PHP] Protecting Commercial PHP Scripts

2004-10-26 Thread Francisco M. Marzoa Alonso
Nick Wilson wrote: * and then Francisco M. Marzoa Alonso declared I was wondering if anyone might have suggestions or useful links on protecting commercial php scripts. I am about to design a system that would be pretty valuable in a very niche market and would not wish the script to be pass

Re: [PHP] file upload

2004-10-26 Thread Kris
H Setup a CRON job using SCP or cURL. You can use SOAP or create your own similar system. I have never used SOAP but use the same principles. Example: Company X needs some strange format of data (text file, CSV or whatever) delivered to them SECURELY at 5am EST. The company cannot a

Re: [PHP] Protecting Commercial PHP Scripts

2004-10-26 Thread Nick Wilson
* and then Francisco M. Marzoa Alonso declared > >I was wondering if anyone might have suggestions or useful links on > >protecting commercial php scripts. > > > >I am about to design a system that would be pretty valuable in a very > >niche market and would not wish the script to be passed on

Re: [PHP] Passing regexp substrings to a function

2004-10-26 Thread Robin Vickery
On Mon, 25 Oct 2004 15:33:59 +0300, Ville Mattila <[EMAIL PROTECTED]> wrote: > Hi there, > > I have a few e-mail templates in a file that should be parsed. A > template can include also some "module codes" that should be replaced by > a return value of a certain function. For example, if the templ

Re: [PHP] Protecting Commercial PHP Scripts

2004-10-26 Thread Francisco M. Marzoa Alonso
Nick Wilson wrote: Hello all, I was wondering if anyone might have suggestions or useful links on protecting commercial php scripts. I am about to design a system that would be pretty valuable in a very niche market and would not wish the script to be passed on to others once downloaded. Suggesti

RE: [PHP] Further help for PHP, SQL syntax, and register_globals

2004-10-26 Thread Ford, Mike
To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm On 26 October 2004 12:01, John Holmes wrote: > Sugimoto wrote: > > Bad query: You have an error in your SQL syntax near 'and Tit like > > and Aut like and Auty like ' at line 4 > [s

Re: [PHP] Protecting Commercial PHP Scripts

2004-10-26 Thread Kevin Waterson
This one time, at band camp, Nick Wilson <[EMAIL PROTECTED]> wrote: > Hello all, > > I was wondering if anyone might have suggestions or useful links on > protecting commercial php scripts. > > I am about to design a system that would be pretty valuable in a very > niche market and would not wi

Re: [PHP] Protecting Commercial PHP Scripts

2004-10-26 Thread Dirk Kredler
I found this one very usefull: http://shiflett.org/php-security.pdf You should anyway start at: http://php.net/security/ good luck, Dirk Am Dienstag, 26. Oktober 2004 13:44 schrieb Nick Wilson: > Hello all, > > I was wondering if anyone might have suggestions or useful links on > protecting com

Re: [PHP] not _that_ fixed....

2004-10-26 Thread Robert Cummings
On Tue, 2004-10-26 at 00:58, Pierre Ancelot wrote: > humm, thank you, finaly someone that did something of that kind :) > > well, i want it as a dynamic extension that i could redistribute and which > wouldn't necessits recompilation, just adding it in php.in > > does what you told still would

[PHP] Protecting Commercial PHP Scripts

2004-10-26 Thread Nick Wilson
Hello all, I was wondering if anyone might have suggestions or useful links on protecting commercial php scripts. I am about to design a system that would be pretty valuable in a very niche market and would not wish the script to be passed on to others once downloaded. Suggestions, discussion a

Re: [PHP] Further help for PHP, SQL syntax, and register_globals

2004-10-26 Thread John Holmes
Sugimoto wrote: Bad query: You have an error in your SQL syntax near 'and Tit like and Aut like and Auty like ' at line 4 [snip] foreach ($_GET as $value) { if (empty($value)) $value = "%"; You have an issue here. You're looping through $_GET and attempting to set a default value (which is

[PHP] mysql_escape_string breaks EOL?

2004-10-26 Thread David Robley
It seems that mysql_escape_string and mysql_real_escape_string do undesirable things to EOL markers - data from textareas escaped with either of those functions is entered, and retrieved with, the characters /r/n instead of a true line break. This snippet of code demonstrates the problem: \n"; $w

[PHP] Sending Mail with PHP

2004-10-26 Thread Wiesiek
Hi I try to send mail (like http://www.php.net/mail) and it works fine. I define my own headers. But my question is about "wrong mail delivery". I use exim4.34. When I send mail via PHP script, then I see in my logs: 2004-10-26 11:04:36 1CMNFs-00046O-T9 <= [EMAIL PROTECTED] U=www-data P=local S

[PHP] Apache+PHP on Windows

2004-10-26 Thread gtm2
I have installed Apache 2.0.52 and PHP 5.0.2 on windows XP. I have configured directories and everything works until I unmark any of extensions. After this, during Apache server starting, I am reciving the warning : PHP Startup: Unable to load dynamic library "D:/MyWWWsrv/php/ext/php_mysql.dll

[PHP] best php script that counts current online users, question.

2004-10-26 Thread Louie Miranda
Hi, i got tired testing free php scripts that does count current online users and i could not find the best one yet. maybe someone can help me. im looking for a current counter for online users, php script that does count even if its inside a proxy with one ip. i can't find one. -- Louie Mira

[PHP] System Command and snmp commands

2004-10-26 Thread Mulley, Nikhil
Hi All, I want to use system command to perform snmp queries on a remote machine and the problem is that I want to store the output /result in an Array , so that I can later use it for parsing purposes.I know I could use exec and passthru statements actually,But I am unable to store the result