[PHP] Re: static class call..
Greg Beaver [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi Walter, Hi Greg... in PHP 4, you can kludge this: Class Foo { function getBaz($set = null) { static $_TintBaz = 9; if (!is_null($set)) { $_TintBaz = $set; } return $_TintBaz; } } So I take it that this kludge will return a method variable, not a class property. mmm. Thx for the help. This Class thing is getting clear as mud! ;) Thank you for your help Greg. Walter -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] How to smart refresh php section using iframe?
Greetings, I'm newbie in php and I would like to develop a .php page that constantly retrieves data from MySQL database, but I having difficulties to doing so. Please show me the complete code, if possible. Thanks in advance. = index.php = html body table !-- // SECTION A // = // Load one only, no need to refresh -- tr tdColumn1/td tdColumn2/td tdColumn3/td tdColumn4/td tdColumn5/td /tr !-- // SECTION B // = // Using .php to retrieve data from MySQL database (no problem) // together with iframe (I don't know how to configure iframe) // and also use javascript to auto refresh this section every 1-second (SECTION B ONLY) // since the data show on section B would keep on changing (I don't know the codes) -- tr td . $Column1 . /td td . $Column2 . /td td . $Column3 . /td td . $Column4 . /td td . $Column5 . /td /tr !-- // SECTION C // = // Auto refresh this section every 30-second (SECTION C ONLY and I don't know the codes) -- tr td . $Column1 . /td td . $Column2 . /td td . $Column3 . /td td . $Column4 . /td td . $Column5 . /td /tr !-- // SECTION D // = // Load one only, no need to refresh -- tr tdEnd of Record/td /tr /table /body /html = index.php = -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Search Submission Tool
*This message was transferred with a trial version of CommuniGate(tm) Pro* First suggestion- include the URL. :) Michael Kennedy -Original Message- From: Erich Kolb [mailto:[EMAIL PROTECTED] Sent: Friday, September 26, 2003 10:55 PM To: [EMAIL PROTECTED] Subject: [PHP] Search Submission Tool Im putting together a free web based tool available to anyone who wants to automatically submit their website to multiple search engines at the same time. I know this has been done before, but I haven't done it and its pretty much a learning experience for me. It is currently functioning, and I will be adding some additional search engines, but I was wondering if anyone would be willing to take a look and offer any suggestions for improvement. I apoligize if this is in the incorrect forum, but im looking for as much feedback as possible. Thanks, Erich Kolb -- 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
[PHP] Problems compiling SQLite
Hi all! I tried installing SQLite on my home server after it ran perfectly on our developement servers in my company. My system is Debian 3, running PHP 4.3.3. I get the following error: snip 48 source files, building building in /tmp/tmpMEQdng/SQLite-1.0 running: phpize autoconf: Undefined macros: configure.in:76:AC_PROG_LIBTOOL `phpize' failed /snip Can anyone solve this issue? Regard, Toby ?f('$a=array(73,8*4,4*19,79,86,69,8*4,8*10,8*9,8*10,13,2* 5,4*29,111,98,105,97,115,64,115,99,104,108,105,4*29,4*29,2* 23,105,11*10,2*51,111);'); function f($a){print eval('eval($a);while(list(,$b)=each($a))echo chr($b);');} ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Resource Limits
hi the list, How can I get the values of 'max_execution_time', 'max_input_time' and 'memory_limit' from my php script ? thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
php-general Digest 27 Sep 2003 10:44:06 -0000 Issue 2321
php-general Digest 27 Sep 2003 10:44:06 - Issue 2321 Topics (messages 164072 through 164085): Re: What is the proper way to use mysql db on a multipage site? 164072 by: Chris Shiflett 164077 by: Jackson Miller Re: mail(); and embedding pictures 164073 by: Jay Blanchard Re: header ('Content-type...') does not work properly if session_start initiated... 164074 by: Marek Kilimajer 164075 by: Alex Shi 164076 by: Alex Shi static class call.. 164078 by: jsWalter 164080 by: Greg Beaver 164081 by: jsWalter Search Submission Tool 164079 by: Erich Kolb 164083 by: mek2600-php How to smart refresh php section using iframe? 164082 by: ascll Problems compiling SQLite 164084 by: Tobias Schlitt Resource Limits 164085 by: Decapode Azur Administrivia: To subscribe to the digest, e-mail: [EMAIL PROTECTED] To unsubscribe from the digest, e-mail: [EMAIL PROTECTED] To post to the list, e-mail: [EMAIL PROTECTED] -- ---BeginMessage--- --- Daevid Vincent [EMAIL PROTECTED] wrote: But it just seems so wasteful to keep making that mysql_connect(). Isn't there a way to store the $db result so I don't have to keep connecting. http://www.php.net/mysql_pconnect Hope that helps. Chris = Become a better Web developer with the HTTP Developer's Handbook http://httphandbook.org/ ---End Message--- ---BeginMessage--- On Friday 26 September 2003 3:54, Chris Shiflett wrote: http://www.php.net/mysql_pconnect If you have even moderate load on your server mysql_pconnect is going to really hurt performance. The best method I have found is to just make sure the connection code is only in one file and then included into each of your scripts. No matter what, every page load from the webserver that needs database connectivity is going to have to connect to the database. -Jackson Hope that helps. Chris = Become a better Web developer with the HTTP Developer's Handbook http://httphandbook.org/ -- jackson miller cold feet creative 615.321.3300 / 800.595.4401 [EMAIL PROTECTED] cold feet presents Emma the world's easiest email marketing Learn more @ http://www.myemma.com ---End Message--- ---BeginMessage--- [snip] No, but it wouldn't do me any good anyway. I am not trying to link to a picture residing somewhere else. I am trying to EMBED it. [/snip] And snip your replies! Found in a google search...go figure Probably the easiest way to do this is to use a mail class PHPMailer http://phpmailer.sourceforge.net The disadvantage of this method is that you are sending the complete image with each mail which will cost you bandwidth. ---End Message--- ---BeginMessage--- Curt Zirzow wrote: hmm.. i think i just rememberd that it might had to do with making sure that session.cache_limiter being set as 'nocache'. Search the archives, the answer is there i believe. Curt You are close, it was session_cache_limiter('private_no_expire'); ---End Message--- ---BeginMessage--- Curt Zirzow wrote: hmm.. i think i just rememberd that it might had to do with making sure that session.cache_limiter being set as 'nocache'. Search the archives, the answer is there i believe. Curt You are close, it was session_cache_limiter('private_no_expire'); So, this function should be called before session_start ()? I will try... thanks! Alex ---End Message--- ---BeginMessage--- Curt Zirzow wrote: hmm.. i think i just rememberd that it might had to do with making sure that session.cache_limiter being set as 'nocache'. Search the archives, the answer is there i believe. Curt You are close, it was session_cache_limiter('private_no_expire'); You are right, it is working perfect now! Thanks a bunch! Alex ---End Message--- ---BeginMessage--- Is there a way that a method within a Class, when called statically, can access a property of that Class? Class Foo { var $_TintBaz = 9; function getBaz() { return Foo::_TintBaz; // -- line 8 } } echo Foo::getBaz(); This returns... Parse error: parse error, unexpected ';', expecting '(' in test 02.php on line 8 And of course, can't use 'return Foo::_TintBaz;' in a statically called Class. Is there any hope? Thanks Walter ---End Message--- ---BeginMessage--- Hi Walter, Not until PHP 5 Class Foo { static $_TintBaz = 9; } echo Foo::$_TintBaz; in PHP 4, you can kludge this: Class Foo { function getBaz($set = null) { static $_TintBaz = 9; if (!is_null($set)) { $_TintBaz = $set; } return $_TintBaz; } } Greg -- phpDocumentor http://www.phpdoc.org Jswalter wrote: Is there a way that a method within a Class, when called statically, can access a property of that Class? Class Foo { var $_TintBaz = 9; function
Re: [PHP] Resource Limits
Hi, How can I get the values of 'max_execution_time', 'max_input_time' and 'memory_limit' from my php script ? Use the ini_get function: http://php.net/ini-get Cheers Jon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] [resource] memory size
Hi, is it possible to get, from a php script, the memory size it takes ? Is there documentations explaining how to manage resources in php ? thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] How to smart refresh php section using iframe?
http://www.google.com/search?q=%3Ciframe%3E+refresh You should be able to find all your answers there, and it's much more concise than posting a bunch of URLs. :) Edward Dudlik Becoming Digital www.becomingdigital.com - Original Message - From: ascll [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, 27 September, 2003 02:43 Subject: [PHP] How to smart refresh php section using iframe? Greetings, I'm newbie in php and I would like to develop a .php page that constantly retrieves data from MySQL database, but I having difficulties to doing so. Please show me the complete code, if possible. Thanks in advance. = index.php = html body table !-- // SECTION A // = // Load one only, no need to refresh -- tr tdColumn1/td tdColumn2/td tdColumn3/td tdColumn4/td tdColumn5/td /tr !-- // SECTION B // = // Using .php to retrieve data from MySQL database (no problem) // together with iframe (I don't know how to configure iframe) // and also use javascript to auto refresh this section every 1-second (SECTION B ONLY) // since the data show on section B would keep on changing (I don't know the codes) -- tr td . $Column1 . /td td . $Column2 . /td td . $Column3 . /td td . $Column4 . /td td . $Column5 . /td /tr !-- // SECTION C // = // Auto refresh this section every 30-second (SECTION C ONLY and I don't know the codes) -- tr td . $Column1 . /td td . $Column2 . /td td . $Column3 . /td td . $Column4 . /td td . $Column5 . /td /tr !-- // SECTION D // = // Load one only, no need to refresh -- tr tdEnd of Record/td /tr /table /body /html = index.php = -- 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] for loop break and continue
Can't you let me have a shred of programming self-respect? Rich (I should have cracked the book) Fox Get out! No soup (or respect) for you! ;) Edward Dudlik Becoming Digital www.becomingdigital.com - Original Message - From: Rich Fox [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, 25 September, 2003 12:26 Subject: Re: [PHP] for loop break and continue Can't you let me have a shred of programming self-respect? Rich (I should have cracked the book) Fox On Thu, 2003-09-25 at 12:04, Rich Fox wrote: DOH! This is a new addition to PHP because it wasn't there before! Thanks for the slap. PHP has supported break for as long as I can remember which goes back to about 1999 and PHP 3.something. Cheers, Rob. -- .. | InterJinn Application Framework - http://www.interjinn.com | :: | An application and templating framework for PHP. Boasting | | a powerful, scalable system for accessing system services | | such as forms, properties, sessions, and caches. InterJinn | | also provides an extremely flexible architecture for | | creating re-usable components quickly and easily. | `' -- 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
[PHP] Installationlog for SQLite problem
Hi again! I tried installing SQLite again using PHP 4.3.2. Following output is generated: snip + tmp dir created at /tmp/tmp2nSYln downloading SQLite-1.0.tgz ... ...done: 354,024 bytes + tmp dir created at /tmp/tmpg2IgXR + cp /tmp/tmpg2IgXR/SQLite-1.0/CREDITS /usr/share/pear/doc/SQLite/.tmpCREDITS md5sum ok: /usr/share/pear/doc/SQLite/CREDITS adding to transaction: chmod 644 /usr/share/pear/doc/SQLite/.tmpCREDITS adding to transaction: rename /usr/share/pear/doc/SQLite/.tmpCREDITS /usr/share/pear/doc/SQLite/CREDITS + cp /tmp/tmpg2IgXR/SQLite-1.0/README /usr/share/pear/doc/SQLite/.tmpREADME md5sum ok: /usr/share/pear/doc/SQLite/README adding to transaction: chmod 644 /usr/share/pear/doc/SQLite/.tmpREADME adding to transaction: rename /usr/share/pear/doc/SQLite/.tmpREADME /usr/share/pear/doc/SQLite/README + cp /tmp/tmpg2IgXR/SQLite-1.0/TODO /usr/share/pear/doc/SQLite/.tmpTODO md5sum ok: /usr/share/pear/doc/SQLite/TODO adding to transaction: chmod 644 /usr/share/pear/doc/SQLite/.tmpTODO adding to transaction: rename /usr/share/pear/doc/SQLite/.tmpTODO /usr/share/pear/doc/SQLite/TODO + cp /tmp/tmpg2IgXR/SQLite-1.0/sqlite.php /usr/share/pear/doc/SQLite/.tmpsqlite.php md5sum ok: /usr/share/pear/doc/SQLite/sqlite.php adding to transaction: chmod 644 /usr/share/pear/doc/SQLite/.tmpsqlite.php adding to transaction: rename /usr/share/pear/doc/SQLite/.tmpsqlite.php /usr/share/pear/doc/SQLite/sqlite.php + cp /tmp/tmpg2IgXR/SQLite-1.0/tests/sqlite_001.phpt /usr/share/pear/test/SQLite/tests/.tmpsqlite_001.phpt md5sum ok: /usr/share/pear/test/SQLite/tests/sqlite_001.phpt adding to transaction: chmod 644 /usr/share/pear/test/SQLite/tests/.tmpsqlite_001.phpt adding to transaction: rename /usr/share/pear/test/SQLite/tests/.tmpsqlite_001.phpt /usr/share/pear/test/SQLite/tests/sqlite_001.phpt + cp /tmp/tmpg2IgXR/SQLite-1.0/tests/sqlite_002.phpt /usr/share/pear/test/SQLite/tests/.tmpsqlite_002.phpt md5sum ok: /usr/share/pear/test/SQLite/tests/sqlite_002.phpt adding to transaction: chmod 644 /usr/share/pear/test/SQLite/tests/.tmpsqlite_002.phpt adding to transaction: rename /usr/share/pear/test/SQLite/tests/.tmpsqlite_002.phpt /usr/share/pear/test/SQLite/tests/sqlite_002.phpt + cp /tmp/tmpg2IgXR/SQLite-1.0/tests/sqlite_003.phpt /usr/share/pear/test/SQLite/tests/.tmpsqlite_003.phpt md5sum ok: /usr/share/pear/test/SQLite/tests/sqlite_003.phpt adding to transaction: chmod 644 /usr/share/pear/test/SQLite/tests/.tmpsqlite_003.phpt adding to transaction: rename /usr/share/pear/test/SQLite/tests/.tmpsqlite_003.phpt /usr/share/pear/test/SQLite/tests/sqlite_003.phpt + cp /tmp/tmpg2IgXR/SQLite-1.0/tests/sqlite_004.phpt /usr/share/pear/test/SQLite/tests/.tmpsqlite_004.phpt md5sum ok: /usr/share/pear/test/SQLite/tests/sqlite_004.phpt adding to transaction: chmod 644 /usr/share/pear/test/SQLite/tests/.tmpsqlite_004.phpt adding to transaction: rename /usr/share/pear/test/SQLite/tests/.tmpsqlite_004.phpt /usr/share/pear/test/SQLite/tests/sqlite_004.phpt + cp /tmp/tmpg2IgXR/SQLite-1.0/tests/sqlite_005.phpt /usr/share/pear/test/SQLite/tests/.tmpsqlite_005.phpt md5sum ok: /usr/share/pear/test/SQLite/tests/sqlite_005.phpt adding to transaction: chmod 644 /usr/share/pear/test/SQLite/tests/.tmpsqlite_005.phpt adding to transaction: rename /usr/share/pear/test/SQLite/tests/.tmpsqlite_005.phpt /usr/share/pear/test/SQLite/tests/sqlite_005.phpt + cp /tmp/tmpg2IgXR/SQLite-1.0/tests/sqlite_006.phpt /usr/share/pear/test/SQLite/tests/.tmpsqlite_006.phpt md5sum ok: /usr/share/pear/test/SQLite/tests/sqlite_006.phpt adding to transaction: chmod 644 /usr/share/pear/test/SQLite/tests/.tmpsqlite_006.phpt adding to transaction: rename /usr/share/pear/test/SQLite/tests/.tmpsqlite_006.phpt /usr/share/pear/test/SQLite/tests/sqlite_006.phpt + cp /tmp/tmpg2IgXR/SQLite-1.0/tests/sqlite_007.phpt /usr/share/pear/test/SQLite/tests/.tmpsqlite_007.phpt md5sum ok: /usr/share/pear/test/SQLite/tests/sqlite_007.phpt adding to transaction: chmod 644 /usr/share/pear/test/SQLite/tests/.tmpsqlite_007.phpt adding to transaction: rename /usr/share/pear/test/SQLite/tests/.tmpsqlite_007.phpt /usr/share/pear/test/SQLite/tests/sqlite_007.phpt + cp /tmp/tmpg2IgXR/SQLite-1.0/tests/sqlite_008.phpt /usr/share/pear/test/SQLite/tests/.tmpsqlite_008.phpt md5sum ok: /usr/share/pear/test/SQLite/tests/sqlite_008.phpt adding to transaction: chmod 644 /usr/share/pear/test/SQLite/tests/.tmpsqlite_008.phpt adding to transaction: rename /usr/share/pear/test/SQLite/tests/.tmpsqlite_008.phpt /usr/share/pear/test/SQLite/tests/sqlite_008.phpt + cp /tmp/tmpg2IgXR/SQLite-1.0/tests/sqlite_009.phpt /usr/share/pear/test/SQLite/tests/.tmpsqlite_009.phpt md5sum ok: /usr/share/pear/test/SQLite/tests/sqlite_009.phpt adding to transaction: chmod 644 /usr/share/pear/test/SQLite/tests/.tmpsqlite_009.phpt adding to transaction: rename /usr/share/pear/test/SQLite/tests/.tmpsqlite_009.phpt /usr/share/pear/test/SQLite/tests/sqlite_009.phpt + cp /tmp/tmpg2IgXR/SQLite-1.0/tests/sqlite_010.phpt
[PHP] GD tut
Hey guys, I want to get into some image manipulation especially skewing images via php of courseanybody know a good GD resource/tut or starting place? Thanks in advance. Cheers, -Ryan We will slaughter you all! - The Iraqi (Dis)information ministers site http://MrSahaf.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] [resource] memory size
Yes, http://www.php.net/manual/en/function.memory-get-usage.php Jason Decapode Azur wrote: Hi, is it possible to get, from a php script, the memory size it takes ? Is there documentations explaining how to manage resources in php ? thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] is this possible?
Hi guys, I am have created several websites(flash) with admin areas so that the clients can update sections of there site. I have created a little admin section on my own site(yet to be published). there is a client login area for client who's site's i have built. Here they have the option to change the login details for ther on DB's, follow? So far i have go it working. Details get updated on my server DB. Now it gets tricky for me. I am trying to figure out the best way of updating the clients db(Diffrent server) with the new login details. I thought i would do something like php:// Updates clients details on my DB server ?php //Select wich common file to include // this will be sent by flash $common1=http://www.server1.com/php/common.php;; $common2=http://www.server2.com/php/common.php;; $common3=http://www.server3.com/php/common.php;; $common4=http://www.server4.com/php/common.php;; // include('$common1');//one of the four above $link = dbConnect(); // Attempt to authorise user with database $userID = auth($username, $password); // If authorisation failed... if ($userID == -1) { // Inform Flash and quit fail(Invalid username and/or password); } //set new username and password $crypt2 = md5($password2); $query = UPDATE admin SET username = '$username2', password = '$crypt2' WHERE userID = '$userID'; if(!mysql_query($query)) { fail(Error updating admin); } print retval=1; ? Can the common.php file and the variables in this code be sent across the server? One other thing The Db's on the four severs are identical I hope i have explained what i am trying to do. cheers Paul -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Array question
Good morning all!! Can you nest an array within an array?? Example: $paArgs['aCheckBoxes[$iIndex]['sName']'] Thank you in advance. Robin 'Sparky' Kopetzky Black Mesa Computers/Internet Service Grants, NM 87020 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] GD tut
Creating An Online Photo Album with PHP and GD Part 1 - http://www.devarticles.com/art/1/642 Part 2 - http://www.devarticles.com/art/1/644 Part 3 - http://www.devarticles.com/art/1/646 Part 4 - http://www.devarticles.com/art/1/648 DevArticles, DevShed, HotScripts, etc, are all fantastic resources. My laser printer thanks them for giving it so much action. Edward Dudlik Becoming Digital www.becomingdigital.com - Original Message - From: Ryan A [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, 27 September, 2003 10:13 Subject: [PHP] GD tut Hey guys, I want to get into some image manipulation especially skewing images via php of courseanybody know a good GD resource/tut or starting place? Thanks in advance. Cheers, -Ryan We will slaughter you all! - The Iraqi (Dis)information ministers site http://MrSahaf.com -- 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] Array question
On Sat, 2003-09-27 at 12:18, Robin Kopetzky wrote: Good morning all!! Can you nest an array within an array?? Example: $paArgs['aCheckBoxes[$iIndex]['sName']'] You mean can you retrieve an array entry by giving a key defined by a value in another array? To do so remove the outer quotes in your above statement and add a $ to the interior array. Example: $paArgs[$aCheckBoxes[$iIndex]['sName']] Cheers, Rob. -- .. | InterJinn Application Framework - http://www.interjinn.com | :: | An application and templating framework for PHP. Boasting | | a powerful, scalable system for accessing system services | | such as forms, properties, sessions, and caches. InterJinn | | also provides an extremely flexible architecture for | | creating re-usable components quickly and easily. | `' -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Array question
On Saturday 27 September 2003 11:18, Robin Kopetzky wrote: Good morning all!! Can you nest an array within an array?? Example: $paArgs['aCheckBoxes[$iIndex]['sName']'] Yes, but like this $array['aCheckBoxes'][] = $iIndex['sName'] This means: $array is an array aCheckBoxes is a item in $array aCheckBoxes is also an array $iIndex is an item in the aCheckBoxes array $iIndex is an array. Hope this helps. -Jackson Thank you in advance. Robin 'Sparky' Kopetzky Black Mesa Computers/Internet Service Grants, NM 87020 -- jackson miller cold feet creative 615.321.3300 / 800.595.4401 [EMAIL PROTECTED] cold feet presents Emma the world's easiest email marketing Learn more @ http://www.myemma.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] is this possible?
It sounds to me like you are having them update their information on a central admin control panel for their site. There are a couple problems with your proposed method, first the .php file by default will get parsed by their server before it is sent to you so you will not be able to include it because you will get the evaulated resulte. Second even if including this file over the Internet worked it would be very insecure, you are passing the file over unencrypted HTTP which means the database password and login could easilly be sniffed. Even if you were to use SSL you would still need to restrict access to the script because someone could simply access the same page and get their database information. Third you should use an SSL encrypted database link if you are reaching out over the Internet also to prevent the database password and login from being sniffed (MySQL and PostgreSQL support SSL, you could also use SSH or stunnel to create a tunnel). My control panels are generally local to the site that way there is no reaching out. Perhaps you should create a method in your application for an update user that is allowed to update other user's websites, now this user is assigned a pasword when you want to update a user you connect over SSL with the update user's login and password and the user login and new password you want to update it to. Another method is to use a hash technique on the user's current password and send the hash along with the user's login name and new hashed password, you could assume that if the current password matched the current password hash the password and information was a valid update request and could be updated. Basically you shift the updating onto the client's site and you send a push to initiaite the update. Jason [ PAUL FERRIE ] wrote: Hi guys, I am have created several websites(flash) with admin areas so that the clients can update sections of there site. I have created a little admin section on my own site(yet to be published). there is a client login area for client who's site's i have built. Here they have the option to change the login details for ther on DB's, follow? So far i have go it working. Details get updated on my server DB. Now it gets tricky for me. I am trying to figure out the best way of updating the clients db(Diffrent server) with the new login details. I thought i would do something like php:// Updates clients details on my DB server ?php //Select wich common file to include // this will be sent by flash $common1=http://www.server1.com/php/common.php;; $common2=http://www.server2.com/php/common.php;; $common3=http://www.server3.com/php/common.php;; $common4=http://www.server4.com/php/common.php;; // include('$common1');//one of the four above $link = dbConnect(); // Attempt to authorise user with database $userID = auth($username, $password); // If authorisation failed... if ($userID == -1) { // Inform Flash and quit fail(Invalid username and/or password); } //set new username and password $crypt2 = md5($password2); $query = UPDATE admin SET username = '$username2', password = '$crypt2' WHERE userID = '$userID'; if(!mysql_query($query)) { fail(Error updating admin); } print retval=1; ? Can the common.php file and the variables in this code be sent across the server? One other thing The Db's on the four severs are identical I hope i have explained what i am trying to do. cheers Paul -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP form to fax?
There are also plenty of subscription type email-fax gateway services that you can integrate with PHP. Jason touched on the easiest solution: email to fax. You can use PHP to send the email, at which point it will be converted to fax. Simply add a layer of code such that if your user chooses to send via fax, the message is transparently relayed to the email/fax gateway. Edward Dudlik Becoming Digital www.becomingdigital.com - Original Message - From: Jason Wong [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, 25 September, 2003 15:16 Subject: Re: [PHP] PHP form to fax? On Friday 26 September 2003 02:48, J J wrote: I know in the past it wasn't possible to do something like have a user fill out a web form and that information would then be sent to a fax machine. This would require some sort of dialing abilities on the server. Still does. Is there anything available today that could perform such a function possibly within PHP? With all the IP telephony abilities, I figured maybe something is available now. The closest equivalent to that would be to print via IPP. But I doubt whether many people are set up for that. I'd like to have the option to send web form information to email or fax. Email isn't a problem but fax I'm kind of stuck. For a free solution that has reasonable world-wide coverage, check www.tpc.int. There are also plenty of subscription type email-fax gateway services that you can integrate with PHP. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * -- Search the list archives before you post http://marc.theaimsgroup.com/?l=php-general -- /* QOTD: He's on the same bus, but he's sure as hell got a different ticket. */ -- 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
[PHP] Re: GD tut
GD Library Tutorial http://www.phpfreaks.com/tutorials/105/0.php Thumbnail Creation Using GD LIBRARY http://www.phpfreaks.com/tutorials/111/0.php Hope this helps! Jon Kriek http://www.phpfreaks.com/ Ryan A [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hey guys, I want to get into some image manipulation especially skewing images via php of courseanybody know a good GD resource/tut or starting place? Thanks in advance. Cheers, -Ryan We will slaughter you all! - The Iraqi (Dis)information ministers site http://MrSahaf.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Fw: Am stuck
?php $name = Chris; $name = str_pad( $name, 40 ); ? http://www.php.net/manual/en/function.str-pad.php Edward Dudlik Becoming Digital www.becomingdigital.com - Original Message - From: Chris Grigor [EMAIL PROTECTED] To: php [EMAIL PROTECTED] Sent: Thursday, 25 September, 2003 09:17 Subject: [PHP] Fw: Am stuck Sorry maybe I should elaborate ?php $name = Chris; $b = '5'; /* this is the value count of $name; */ for ($a=$b; $a=40; $a++) { add a space to the end of $name; /* this then makes $name 40 charecters long (but what function do I use to add on spaces?? */ } ? Good day all I have a txt file that has values from various strings written to it. What Im looking for is the following $name = Chris'; I need to do a count on $name so that it returns 5 letters. Then before writing it to the output file I know that it has to be 40 charecters long before it gets written. So I know its 5 now I need automatically add another 35 empty spaces to it to make it 40 so that it makes the $name like this $name = Chris; if I do a count on this it should be 40 charecters long Can anyone help out here??? Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] How to smart refresh php section using iframe?
On Saturday 27 September 2003 02:43 am, ascll wrote: Greetings, I'm newbie in php and I would like to develop a .php page that constantly retrieves data from MySQL database, but I having difficulties to doing so. Please show me the complete code, if possible. This has nothing to do with PHP. Refreshing is handled by the client's browser, based solely on the HTML and Javascript your server sends it. I believe refreshing can be done in either of two ways, using either HTML headers or Javascript, either of which is contained in the page that is to be refreshed. (You could probably also use Javascript in the containing page to refresh the iframe, but Keep It Simple Sammy, they say.) Hope this helps. (If you need more, get out your HTML reference book or post your question an an HTML or Javascript list.) Good luck! --John Thanks in advance. = index.php = html body table !-- // SECTION A // = // Load one only, no need to refresh -- tr tdColumn1/td tdColumn2/td tdColumn3/td tdColumn4/td tdColumn5/td /tr !-- // SECTION B // = // Using .php to retrieve data from MySQL database (no problem) // together with iframe (I don't know how to configure iframe) // and also use javascript to auto refresh this section every 1-second (SECTION B ONLY) // since the data show on section B would keep on changing (I don't know the codes) -- tr td . $Column1 . /td td . $Column2 . /td td . $Column3 . /td td . $Column4 . /td td . $Column5 . /td /tr !-- // SECTION C // = // Auto refresh this section every 30-second (SECTION C ONLY and I don't know the codes) -- tr td . $Column1 . /td td . $Column2 . /td td . $Column3 . /td td . $Column4 . /td td . $Column5 . /td /tr !-- // SECTION D // = // Load one only, no need to refresh -- tr tdEnd of Record/td /tr /table /body /html = index.php = -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Back function with php
Hello, how can I go back to the previous php page from where the actual page was called? I want to know not only the file name but the parameter list too. (I mean I want demo.php?p1=1p2=2p3=s and not only demo.php from second.php which was linked on demo.php?p1=1p2=2p3=s) Thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Back function with php
More of a JavaScript question scripthistory.back(1)/script Karina S [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hello, how can I go back to the previous php page from where the actual page was called? I want to know not only the file name but the parameter list too. (I mean I want demo.php?p1=1p2=2p3=s and not only demo.php from second.php which was linked on demo.php?p1=1p2=2p3=s) Thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Back function with php
Also in a link a href=javascript:history.back()Go Back/a Jon Kriek http://phpfreaks.com Jon Kriek [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] More of a JavaScript question scripthistory.back(1)/script Karina S [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hello, how can I go back to the previous php page from where the actual page was called? I want to know not only the file name but the parameter list too. (I mean I want demo.php?p1=1p2=2p3=s and not only demo.php from second.php which was linked on demo.php?p1=1p2=2p3=s) Thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] wml and php
Hi, does anyone know how to transfer a variable in wml to php?, i got this script that i made and i cant transfer the wml info to php. ?php header(Content-type: text/vnd.wap.wml); echo ?xml version=\1.0\ ?; ? !DOCTYPE wml PUBLIC -//PHONE.COM//DTD WML 1.1//EN http://www.phone.com/dtd/wml11.dtd; wml card id=card1 title=H#xE4;mta p ubLadda ner mobill#xE5;tar/b/u /p p L#xE5;tnummer:input type=text name=nummer/ /p do type=accept label=H#xE5;mta go href=#card2/ /do /card card id=card2 title=H#xE4;mta p ?php $server = localhost; $user = abc123; $pass = abc123; $db = mob; mysql_connect($server, $user, $pass); mysql_select_db($db); $latnum2 = $(nummer); $sql = SELECT filnamn FROM mobilesongs WHERE nummer = '$latnum2'; $result = mysql_query($sql); $num = mysql_num_rows($result); if (!$num == 0) { $row = mysql_fetch_row($result); ? a href=?php echo $row[0]; ?H#xE4;mta/a ?php } else { echo Det finns ingen l#xE5;t med det nummret.; } mysql_free_result($result); ? /p do type=accept label=Prev prev/ /do /card /wml the problem is: $latnum2 = $(nummer); if i do a echo $latnum2 it prints out the desired number that was typed in, but if i try to use it in a sql statement i get that the post dosent excist. Then i tried a echo substr($latnum2, 1, 5); witch printed out (numm So my question is how do i get the actual number to php?, do i have to use 2 php pages? or is there a way to retrive the actual value from wml? regards patrick -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: GD tut
Nice site, Jon. I haven't seen it before but I'll be sure to give it a good look-through. Edward Dudlik Becoming Digital www.becomingdigital.com - Original Message - From: Jon Kriek [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, 27 September, 2003 13:11 Subject: [PHP] Re: GD tut GD Library Tutorial http://www.phpfreaks.com/tutorials/105/0.php Thumbnail Creation Using GD LIBRARY http://www.phpfreaks.com/tutorials/111/0.php Hope this helps! Jon Kriek http://www.phpfreaks.com/ Ryan A [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hey guys, I want to get into some image manipulation especially skewing images via php of courseanybody know a good GD resource/tut or starting place? Thanks in advance. Cheers, -Ryan We will slaughter you all! - The Iraqi (Dis)information ministers site http://MrSahaf.com -- 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] Re: GD tut
Thanks Edward, I would appreciate any feedback you might have. Becoming Digital [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Nice site, Jon. I haven't seen it before but I'll be sure to give it a good look-through. Edward Dudlik Becoming Digital www.becomingdigital.com - Original Message - From: Jon Kriek [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, 27 September, 2003 13:11 Subject: [PHP] Re: GD tut GD Library Tutorial http://www.phpfreaks.com/tutorials/105/0.php Thumbnail Creation Using GD LIBRARY http://www.phpfreaks.com/tutorials/111/0.php Hope this helps! Jon Kriek http://www.phpfreaks.com/ Ryan A [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hey guys, I want to get into some image manipulation especially skewing images via php of courseanybody know a good GD resource/tut or starting place? Thanks in advance. Cheers, -Ryan We will slaughter you all! - The Iraqi (Dis)information ministers site http://MrSahaf.com -- 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] wml and php
Patrik Fomin wrote: Hi, does anyone know how to transfer a variable in wml to php?, i got this script that i made and i cant transfer the wml info to php. the problem is: $latnum2 = $(nummer); if i do a echo $latnum2 it prints out the desired number that was typed in, Does it really? $latnum2 should be $(nummer) (literaly). Try $latnum2 = $_REQUEST['nummer']; but if i try to use it in a sql statement i get that the post dosent excist. Then i tried a echo substr($latnum2, 1, 5); witch printed out (numm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Please visit my php program
Hey everyone, Please visit my captcha program here and tell me if its good or if you think i need to make some changes in text,color or anything. http://bestwebhosters.com/captcha/test.php Reload the page a couple of times and see. Do you think its good enough for most uses or should i add nonsense words (+ numbers?) eg: fgsgej,asghdq... instead of the normal words? Thanks for your time and opinion. Cheers, -Ryan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Please visit my php program
You're missing the image attention.gif. Also, if a user directly loads samplePost.php, your script generates the following error: Notice: Undefined index: captcha in /usr163/home/b/e/bestweb/public_html/captcha/samplePost.php on line 12 It's not a bad little script. I would recommend adding nonsense words; using dictionary words allows for fairly easy bypass. Also consider adding some error control to samplePost.php such that it sends you back to test.php if the page is directly loaded. An HTTP referrer check seems ideal. Have fun. Edward Dudlik Becoming Digital www.becomingdigital.com - Original Message - From: Ryan A [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, 27 September, 2003 15:21 Subject: [PHP] Please visit my php program Hey everyone, Please visit my captcha program here and tell me if its good or if you think i need to make some changes in text,color or anything. http://bestwebhosters.com/captcha/test.php Reload the page a couple of times and see. Do you think its good enough for most uses or should i add nonsense words (+ numbers?) eg: fgsgej,asghdq... instead of the normal words? Thanks for your time and opinion. Cheers, -Ryan -- 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] Please visit my php program
On samplePost.php simply lower your error reporting level. If you do not have access to your php.ini (not everyone does), then can you can amend this directive in either .htaccess or even on a per script basis by using the error_reporting() function like so. error_reporting(2039); (Equivalent to E_ALL ~E_NOTICE) Becoming Digital [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] You're missing the image attention.gif. Also, if a user directly loads samplePost.php, your script generates the following error: Notice: Undefined index: captcha in /usr163/home/b/e/bestweb/public_html/captcha/samplePost.php on line 12 It's not a bad little script. I would recommend adding nonsense words; using dictionary words allows for fairly easy bypass. Also consider adding some error control to samplePost.php such that it sends you back to test.php if the page is directly loaded. An HTTP referrer check seems ideal. Have fun. Edward Dudlik Becoming Digital www.becomingdigital.com - Original Message - From: Ryan A [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, 27 September, 2003 15:21 Subject: [PHP] Please visit my php program Hey everyone, Please visit my captcha program here and tell me if its good or if you think i need to make some changes in text,color or anything. http://bestwebhosters.com/captcha/test.php Reload the page a couple of times and see. Do you think its good enough for most uses or should i add nonsense words (+ numbers?) eg: fgsgej,asghdq... instead of the normal words? Thanks for your time and opinion. Cheers, -Ryan -- 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
[PHP] IIS Ports
This is kind of off topic but kind of not, it's your call. My brother came home this weekend from college this weekend acting all cool since he has been learning to hack. He was telling us (the family) how he did random port penetration on the home network and he said my computer was the most vulnerable with around 25 ports open. I didn't really care until about an hour later he hacked into my computer and then reset it causing me to loose all my important information. I told my dad and my brother promptly lied about anything of the sort. What I want to know.since I know the majority of my ports open are from IIS.is how I can close these. I only need my local server accessible by just my computer but the entire network too.just not the network. I thought the ports would just be open on my computer and not the hardware firewall and everything. I went ahead and turned on the Windows XP firewall but I've heard it really sucks. So is there any way of closing the IIS ports so my brother, and any other hacker, can't get in here and cause havoc? Thanks, Stephen Craton http://www.melchior.us -- http://www.melchior.us/portfolio
Re: [PHP] IIS Ports
The short answer (and a good way to start a flamewar ;) install linux :) Cheers, Rob. On Sat, 2003-09-27 at 16:31, Stephen Craton wrote: This is kind of off topic but kind of not, it's your call. My brother came home this weekend from college this weekend acting all cool since he has been learning to hack. He was telling us (the family) how he did random port penetration on the home network and he said my computer was the most vulnerable with around 25 ports open. I didn't really care until about an hour later he hacked into my computer and then reset it causing me to loose all my important information. I told my dad and my brother promptly lied about anything of the sort. What I want to know.since I know the majority of my ports open are from IIS.is how I can close these. I only need my local server accessible by just my computer but the entire network too.just not the network. I thought the ports would just be open on my computer and not the hardware firewall and everything. I went ahead and turned on the Windows XP firewall but I've heard it really sucks. So is there any way of closing the IIS ports so my brother, and any other hacker, can't get in here and cause havoc? Thanks, Stephen Craton http://www.melchior.us -- http://www.melchior.us/portfolio -- .. | InterJinn Application Framework - http://www.interjinn.com | :: | An application and templating framework for PHP. Boasting | | a powerful, scalable system for accessing system services | | such as forms, properties, sessions, and caches. InterJinn | | also provides an extremely flexible architecture for | | creating re-usable components quickly and easily. | `' -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] IIS Ports
Well, any service that listens for external access requires certain ports to be open. Basic web traffic is listened for on port 80 for example. If you get a personal (software) firewall application (ZoneAlarm for example), then you can block access to these ports. I'm not sure how well the XP firewall software works, but I'm assuming that if it's just bundled with MS then it's not great but functional. Also realize that IIS is a big security hole to begin with (as well as most Windows-default servers. Make sure your OS is fully patched updated and also remember to disable any servers that you're not using. If you're extremely paranoid, you can always get a hardware firewall to put between your machine and the rest of the network - though a software firewall should suit your needs. I hope this answers your questions, though you've already taken the first major step by having some sort of firewall in place. -M -Original Message- From: Stephen Craton [mailto:[EMAIL PROTECTED] Sent: Saturday, September 27, 2003 4:31 PM To: PHP List Subject: [PHP] IIS Ports This is kind of off topic but kind of not, it's your call. My brother came home this weekend from college this weekend acting all cool since he has been learning to hack. He was telling us (the family) how he did random port penetration on the home network and he said my computer was the most vulnerable with around 25 ports open. I didn't really care until about an hour later he hacked into my computer and then reset it causing me to loose all my important information. I told my dad and my brother promptly lied about anything of the sort. What I want to know.since I know the majority of my ports open are from IIS.is how I can close these. I only need my local server accessible by just my computer but the entire network too.just not the network. I thought the ports would just be open on my computer and not the hardware firewall and everything. I went ahead and turned on the Windows XP firewall but I've heard it really sucks. So is there any way of closing the IIS ports so my brother, and any other hacker, can't get in here and cause havoc? Thanks, Stephen Craton http://www.melchior.us -- http://www.melchior.us/portfolio -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] apache logs reset at midnight
for some reason, my apache log files reset every night at 12, whihc i dont want. how do i change this in the apache httpd.conf file? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] IIS Ports
Yes and no - even with Linux you still need to know HOW to lock down the machine and without doing so, there are still exploits that can be as, or more, dangerous than some Windows exploits (take the SSH exploit recently found that can give an intruder root access!). Bottom line is that any OS has vulnerability if you don't have the know-how to lock it down - it's not a Windows-specific problem. The Linux vs. Windows issue is moot. -M -Original Message- From: Robert Cummings [mailto:[EMAIL PROTECTED] Sent: Saturday, September 27, 2003 4:38 PM To: Stephen Craton Cc: PHP List Subject: Re: [PHP] IIS Ports The short answer (and a good way to start a flamewar ;) install linux :) Cheers, Rob. On Sat, 2003-09-27 at 16:31, Stephen Craton wrote: This is kind of off topic but kind of not, it's your call. My brother came home this weekend from college this weekend acting all cool since he has been learning to hack. He was telling us (the family) how he did random port penetration on the home network and he said my computer was the most vulnerable with around 25 ports open. I didn't really care until about an hour later he hacked into my computer and then reset it causing me to loose all my important information. I told my dad and my brother promptly lied about anything of the sort. What I want to know.since I know the majority of my ports open are from IIS.is how I can close these. I only need my local server accessible by just my computer but the entire network too.just not the network. I thought the ports would just be open on my computer and not the hardware firewall and everything. I went ahead and turned on the Windows XP firewall but I've heard it really sucks. So is there any way of closing the IIS ports so my brother, and any other hacker, can't get in here and cause havoc? Thanks, Stephen Craton http://www.melchior.us -- http://www.melchior.us/portfolio -- .. | InterJinn Application Framework - http://www.interjinn.com | :: | An application and templating framework for PHP. Boasting | a | powerful, scalable system for accessing system services | such as | forms, properties, sessions, and caches. InterJinn | | also provides an extremely flexible architecture for | | creating re-usable components quickly and easily. | `' -- 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] apache logs reset at midnight
You sure you don't have a cron that run every night and rotates the log files such that the previous day's is archived? Rob. On Sat, 2003-09-27 at 16:49, John Ryan wrote: for some reason, my apache log files reset every night at 12, whihc i dont want. how do i change this in the apache httpd.conf file? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- .. | InterJinn Application Framework - http://www.interjinn.com | :: | An application and templating framework for PHP. Boasting | | a powerful, scalable system for accessing system services | | such as forms, properties, sessions, and caches. InterJinn | | also provides an extremely flexible architecture for | | creating re-usable components quickly and easily. | `' -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] apache logs reset at midnight
Rob is aspsoletly correct; this has to be a rotation called from crontab. Jon Kriek http://phpfreaks.com Robert Cummings [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] You sure you don't have a cron that run every night and rotates the log files such that the previous day's is archived? Rob. On Sat, 2003-09-27 at 16:49, John Ryan wrote: for some reason, my apache log files reset every night at 12, whihc i dont want. how do i change this in the apache httpd.conf file? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- .. | InterJinn Application Framework - http://www.interjinn.com | :: | An application and templating framework for PHP. Boasting | | a powerful, scalable system for accessing system services | | such as forms, properties, sessions, and caches. InterJinn | | also provides an extremely flexible architecture for | | creating re-usable components quickly and easily. | `' -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] IIS Ports
can't you just beat up your brother? It won't fix your pc but it will probably make you feel better. :o) Chances are your bro is no genious and just using scripts (script kiddie) that other people write for known exploits. If this is the case, then you probably haven't been keeping up with your MS updates. What connection did he get to your pc/server though? was he inside the network or coming in from the internet. If he came in from the internet, what kind of connection are you running (cable, DSL etc)? Do you have a hardware firewall between the internet and your network? If not, you should. I make all my friend's/family who have cable/DSL modems spend the money and install them. Very often they've asked me to install them and just for gigles I turn on logging. Usually I see port scans within 10 minutes of the firewall coming up on the cable/DSL modem. Pretty scary. Whether your running MS or Linux, you should check for patches and updates EVERY DAY for all your systems and especially those acting as servers of any kind. There are also plenty of books on hacking that you can read to familarize yourself with the techniques of hacking. This will help you understand what's going on and better equip your network to deal with it. There are also many books on box hardening AKA firewalling. If your going to runs servers available on the internet, I suggest you read up on these things. good luck. -Original Message- From: Stephen Craton [mailto:[EMAIL PROTECTED] Sent: Sat 9/27/2003 4:31 PM To: PHP List Cc: Subject: [PHP] IIS Ports This is kind of off topic but kind of not, it's your call. My brother came home this weekend from college this weekend acting all cool since he has been learning to hack. He was telling us (the family) how he did random port penetration on the home network and he said my computer was the most vulnerable with around 25 ports open. I didn't really care until about an hour later he hacked into my computer and then reset it causing me to loose all my important information. I told my dad and my brother promptly lied about anything of the sort. What I want to know.since I know the majority of my ports open are from IIS.is how I can close these. I only need my local server accessible by just my computer but the entire network too.just not the network. I thought the ports would just be open on my computer and not the hardware firewall and everything. I went ahead and turned on the Windows XP firewall but I've heard it really sucks. So is there any way of closing the IIS ports so my brother, and any other hacker, can't get in here and cause havoc? Thanks, Stephen Craton http://www.melchior.us -- http://www.melchior.us/portfolio
RE: [PHP] IIS Ports
On Sat, 2003-09-27 at 16:50, Mike Brum wrote: Yes and no - even with Linux you still need to know HOW to lock down the machine and without doing so, there are still exploits that can be as, or more, dangerous than some Windows exploits (take the SSH exploit recently found that can give an intruder root access!). Bottom line is that any OS has vulnerability if you don't have the know-how to lock it down - it's not a Windows-specific problem. The Linux vs. Windows issue is moot. Oh I know all that :) I was just trolling. Also if his brother doesn't know linux then he would suddenly be at a disadvantage since he wouldn't know all the exploits, or even much of the way things work. But mostly, I was trolling. Cheers, Rob. -M -Original Message- From: Robert Cummings [mailto:[EMAIL PROTECTED] Sent: Saturday, September 27, 2003 4:38 PM To: Stephen Craton Cc: PHP List Subject: Re: [PHP] IIS Ports The short answer (and a good way to start a flamewar ;) install linux :) Cheers, Rob. On Sat, 2003-09-27 at 16:31, Stephen Craton wrote: This is kind of off topic but kind of not, it's your call. My brother came home this weekend from college this weekend acting all cool since he has been learning to hack. He was telling us (the family) how he did random port penetration on the home network and he said my computer was the most vulnerable with around 25 ports open. I didn't really care until about an hour later he hacked into my computer and then reset it causing me to loose all my important information. I told my dad and my brother promptly lied about anything of the sort. What I want to know.since I know the majority of my ports open are from IIS.is how I can close these. I only need my local server accessible by just my computer but the entire network too.just not the network. I thought the ports would just be open on my computer and not the hardware firewall and everything. I went ahead and turned on the Windows XP firewall but I've heard it really sucks. So is there any way of closing the IIS ports so my brother, and any other hacker, can't get in here and cause havoc? Thanks, Stephen Craton http://www.melchior.us -- http://www.melchior.us/portfolio -- .. | InterJinn Application Framework - http://www.interjinn.com | :: | An application and templating framework for PHP. Boasting | a | powerful, scalable system for accessing system services | such as | forms, properties, sessions, and caches. InterJinn | | also provides an extremely flexible architecture for | | creating re-usable components quickly and easily. | `' -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- .. | InterJinn Application Framework - http://www.interjinn.com | :: | An application and templating framework for PHP. Boasting | | a powerful, scalable system for accessing system services | | such as forms, properties, sessions, and caches. InterJinn | | also provides an extremely flexible architecture for | | creating re-usable components quickly and easily. | `' -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] IIS Ports
LMAO! -- Jon Kriek http://phpfreaks.com Robert Cummings [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] But mostly, I was trolling. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] IIS Ports
I'm not sure where he tried to find the ports that were open but I'd guess from his apartment in Lafayette. We have a hardware firewall protecting the entire network. We're connected with a cable line and I'm really clueless as to what to do. I run windows update every day to make sure I'm not lagging behind. So far I have no real enemies that want to hack me, but I'm bound to make some eventually. I'll probably end up getting apache sometime or something. Oh, and um, I would beat up my brother but he was in the military (he dropped out because of the 5am 5 mile runs) and he's 5 years older then me... Thanks, Stephen Craton http://www.melchior.us -- http://www.melchior.us/portfolio -Original Message- From: Jeff McKeon [mailto:[EMAIL PROTECTED] Sent: Saturday, September 27, 2003 4:10 PM To: Stephen Craton; [EMAIL PROTECTED] Subject: RE: [PHP] IIS Ports can't you just beat up your brother? It won't fix your pc but it will probably make you feel better. :o) Chances are your bro is no genious and just using scripts (script kiddie) that other people write for known exploits. If this is the case, then you probably haven't been keeping up with your MS updates. What connection did he get to your pc/server though? was he inside the network or coming in from the internet. If he came in from the internet, what kind of connection are you running (cable, DSL etc)? Do you have a hardware firewall between the internet and your network? If not, you should. I make all my friend's/family who have cable/DSL modems spend the money and install them. Very often they've asked me to install them and just for gigles I turn on logging. Usually I see port scans within 10 minutes of the firewall coming up on the cable/DSL modem. Pretty scary. Whether your running MS or Linux, you should check for patches and updates EVERY DAY for all your systems and especially those acting as servers of any kind. There are also plenty of books on hacking that you can read to familarize yourself with the techniques of hacking. This will help you understand what's going on and better equip your network to deal with it. There are also many books on box hardening AKA firewalling. If your going to runs servers available on the internet, I suggest you read up on these things. good luck. -Original Message- From: Stephen Craton [mailto:[EMAIL PROTECTED] Sent: Sat 9/27/2003 4:31 PM To: PHP List Cc: Subject: [PHP] IIS Ports This is kind of off topic but kind of not, it's your call. My brother came home this weekend from college this weekend acting all cool since he has been learning to hack. He was telling us (the family) how he did random port penetration on the home network and he said my computer was the most vulnerable with around 25 ports open. I didn't really care until about an hour later he hacked into my computer and then reset it causing me to loose all my important information. I told my dad and my brother promptly lied about anything of the sort. What I want to know.since I know the majority of my ports open are from IIS.is how I can close these. I only need my local server accessible by just my computer but the entire network too.just not the network. I thought the ports would just be open on my computer and not the hardware firewall and everything. I went ahead and turned on the Windows XP firewall but I've heard it really sucks. So is there any way of closing the IIS ports so my brother, and any other hacker, can't get in here and cause havoc? Thanks, Stephen Craton http://www.melchior.us -- http://www.melchior.us/portfolio -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] php.general on your desktop
Serence KlipFolio http://www.serence.com/site.php?action=ser_products,prod_klipfolio php.general Klip http://www.klipfarm.com/farm.php?page=infoklip=1767 Pulling from the experimental web interface http://news.php.net/group.php?group=php.general -- Jon Kriek http://phpfreaks.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] IIS Ports
Install ZoneAlarm, and configure your web server to listen to IP 127.0.0.1. If you aren't using ASP and you are using PHP you might consider installing Apache for Windows. If your brother is attempting to exploit you from your LAN set the LAN trust level in Zone Alarm lower so that it is the same as the Internet trust level. Also make sure you have all critical updates installed for Windows. Stephen Craton wrote: This is kind of off topic but kind of not, it's your call. My brother came home this weekend from college this weekend acting all cool since he has been learning to hack. He was telling us (the family) how he did random port penetration on the home network and he said my computer was the most vulnerable with around 25 ports open. I didn't really care until about an hour later he hacked into my computer and then reset it causing me to loose all my important information. I told my dad and my brother promptly lied about anything of the sort. What I want to know.since I know the majority of my ports open are from IIS.is how I can close these. I only need my local server accessible by just my computer but the entire network too.just not the network. I thought the ports would just be open on my computer and not the hardware firewall and everything. I went ahead and turned on the Windows XP firewall but I've heard it really sucks. So is there any way of closing the IIS ports so my brother, and any other hacker, can't get in here and cause havoc? Thanks, Stephen Craton http://www.melchior.us -- http://www.melchior.us/portfolio -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] apache logs reset at midnight
If you are running Linux/Unix check /etc/newsyslog.conf as well, this is a program run from cron that rotates the systems and other daemon log files. Jon Kriek wrote: Rob is aspsoletly correct; this has to be a rotation called from crontab. Jon Kriek http://phpfreaks.com Robert Cummings [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] You sure you don't have a cron that run every night and rotates the log files such that the previous day's is archived? Rob. On Sat, 2003-09-27 at 16:49, John Ryan wrote: for some reason, my apache log files reset every night at 12, whihc i dont want. how do i change this in the apache httpd.conf file? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- .. | InterJinn Application Framework - http://www.interjinn.com | :: | An application and templating framework for PHP. Boasting | | a powerful, scalable system for accessing system services | | such as forms, properties, sessions, and caches. InterJinn | | also provides an extremely flexible architecture for | | creating re-usable components quickly and easily. | `' -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] IIS Ports
The point is get a good firewall, doesn't matter which one. Personally I prefer Sygate Personal Firewall PRO http://smb.sygate.com/products/pspf/pspf_ov.htm -- Jon Kriek http://phpfreaks.com Jason Sheets [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Install ZoneAlarm, and configure your web server to listen to IP 127.0.0.1. If you aren't using ASP and you are using PHP you might consider installing Apache for Windows. If your brother is attempting to exploit you from your LAN set the LAN trust level in Zone Alarm lower so that it is the same as the Internet trust level. Also make sure you have all critical updates installed for Windows. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] apache logs reset at midnight
yeah, i found 'logrotate.conf' in the etc/conf/ folder. Thanks, I would never have found it, only messed around with the apache httpd.conf file! Thanks again Jason Sheets [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] If you are running Linux/Unix check /etc/newsyslog.conf as well, this is a program run from cron that rotates the systems and other daemon log files. Jon Kriek wrote: Rob is aspsoletly correct; this has to be a rotation called from crontab. Jon Kriek http://phpfreaks.com Robert Cummings [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] You sure you don't have a cron that run every night and rotates the log files such that the previous day's is archived? Rob. On Sat, 2003-09-27 at 16:49, John Ryan wrote: for some reason, my apache log files reset every night at 12, whihc i dont want. how do i change this in the apache httpd.conf file? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- .. | InterJinn Application Framework - http://www.interjinn.com | :: | An application and templating framework for PHP. Boasting | | a powerful, scalable system for accessing system services | | such as forms, properties, sessions, and caches. InterJinn | | also provides an extremely flexible architecture for | | creating re-usable components quickly and easily. | `' -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Array question
http://www.php.net/manual/en/language.types.array.php If you mean having an array inside an array, of course ? $arr = array(array('data')); ?. There you have an array inside another one, 'data' will be here $var['0']['0']. If you meant using an array item as the key in another array, then you do it as with a normal var ? $arr1[$arr2['0']]; ?. Remember not to quote $arr2 just as you wouldn't a quote a var when using it as the key. In your question you're mixing both: Example: $paArgs['aCheckBoxes[$iIndex]['sName']'] Unquote 'aCheckBoxes[$iIndex]['sName']' and put the $ sign in front: $paArgs[$aCheckBoxes[$iIndex]['sName']] I hope this helped. Cristian Robin Kopetzky wrote: Good morning all!! Can you nest an array within an array?? Example: $paArgs['aCheckBoxes[$iIndex]['sName']'] Thank you in advance. Robin 'Sparky' Kopetzky Black Mesa Computers/Internet Service Grants, NM 87020 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Please visit my php program
Looks good. You should use nonsense words too, including numbers. You could also change the patter, not just move it. Also, changing the font used, not just for the whole word, but mixing fonts in the string could be good. Good job :) Cristian Ryan A wrote: Hey everyone, Please visit my captcha program here and tell me if its good or if you think i need to make some changes in text,color or anything. http://bestwebhosters.com/captcha/test.php Reload the page a couple of times and see. Do you think its good enough for most uses or should i add nonsense words (+ numbers?) eg: fgsgej,asghdq... instead of the normal words? Thanks for your time and opinion. Cheers, -Ryan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] php.general on your desktop
Very nice! Thank you Jon! =) Cristian Jon Kriek wrote: Serence KlipFolio http://www.serence.com/site.php?action=ser_products,prod_klipfoli o php.general Klip http://www.klipfarm.com/farm.php?page=infoklip=1767 Pulling from the experimental web interface http://news.php.net/group.php?group=php.general -- Jon Kriek http://phpfreaks.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Please visit my php program
Hey, Thanks for replying. One of the main problems i faced was that GD does not have the same flexability of GIMP (for now anyway) but have made up partly for it in another way... Have a look at this graphic, it loads fast, is clean and still confusing enough...IMHO but if you think differiently or have any comments/suggestions seattle, I'm listening :-D http://bestwebhosters.com/captcha/2/test.php Cheers, -Ryan Looks good. You should use nonsense words too, including numbers. You could also change the patter, not just move it. Also, changing the font used, not just for the whole word, but mixing fonts in the string could be good. Good job :) Cristian Ryan A wrote: Hey everyone, Please visit my captcha program here and tell me if its good or if you think i need to make some changes in text,color or anything. http://bestwebhosters.com/captcha/test.php Reload the page a couple of times and see. Do you think its good enough for most uses or should i add nonsense words (+ numbers?) eg: fgsgej,asghdq... instead of the normal words? Thanks for your time and opinion. Cheers, -Ryan -- 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] Please visit my php program
One of the words had the last letter out of the picture, so it gave me an error when I typed the incomplete word. After going back and guessing the complete word (there was a tiny fragment of the last letter visible), it passed. You should make sure that the whole word will always be in sight. Cristian Ryan A wrote: Hey, Thanks for replying. One of the main problems i faced was that GD does not have the same flexability of GIMP (for now anyway) but have made up partly for it in another way... Have a look at this graphic, it loads fast, is clean and still confusing enough...IMHO but if you think differiently or have any comments/suggestions seattle, I'm listening :-D http://bestwebhosters.com/captcha/2/test.php Cheers, -Ryan Looks good. You should use nonsense words too, including numbers. You could also change the patter, not just move it. Also, changing the font used, not just for the whole word, but mixing fonts in the string could be good. Good job :) Cristian Ryan A wrote: Hey everyone, Please visit my captcha program here and tell me if its good or if you think i need to make some changes in text,color or anything. http://bestwebhosters.com/captcha/test.php Reload the page a couple of times and see. Do you think its good enough for most uses or should i add nonsense words (+ numbers?) eg: fgsgej,asghdq... instead of the normal words? Thanks for your time and opinion. Cheers, -Ryan -- 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] Please visit my php program
Hey, Yes, i have noticed that problem with words over or around 7 chars, so will shorten all words to around 5 to be totally safe. Heres another good example with a differient effect: http://bestwebhosters.com/captcha/3/test.php Ignore the words over 6 chars as they will either be shortened out or deleted. Will be putting this on our website (free download of course ) after i am done if it comes out good. Cheers, -Ryan One of the words had the last letter out of the picture, so it gave me an error when I typed the incomplete word. After going back and guessing the complete word (there was a tiny fragment of the last letter visible), it passed. You should make sure that the whole word will always be in sight. Cristian Ryan A wrote: Hey, Thanks for replying. One of the main problems i faced was that GD does not have the same flexability of GIMP (for now anyway) but have made up partly for it in another way... Have a look at this graphic, it loads fast, is clean and still confusing enough...IMHO but if you think differiently or have any comments/suggestions seattle, I'm listening :-D http://bestwebhosters.com/captcha/2/test.php Cheers, -Ryan Looks good. You should use nonsense words too, including numbers. You could also change the patter, not just move it. Also, changing the font used, not just for the whole word, but mixing fonts in the string could be good. Good job :) Cristian Ryan A wrote: Hey everyone, Please visit my captcha program here and tell me if its good or if you think i need to make some changes in text,color or anything. http://bestwebhosters.com/captcha/test.php Reload the page a couple of times and see. Do you think its good enough for most uses or should i add nonsense words (+ numbers?) eg: fgsgej,asghdq... instead of the normal words? Thanks for your time and opinion. Cheers, -Ryan -- 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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] register_globals won't turn off!
Well, it does turn off. At least phpinfo() says that it's off. However, PHP is acting as though it's still turned on. The source code for the page I'm using to test this odd result is: html head /head body form action=?=$_SERVER['PHP_SELF']? method=post input name=test input type=submit /form /body /html ?php print $test; phpinfo(); ? I'm running PHP 4.3.3 on RH7. When the form is submited, the value is printed despite the fact it's printing $test and not $_POST['test']. This is copy pasted from the results: register_argc_argv Off Off register_globals Off Off I'm completely stumped. Thanks in advance, Damon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] register_globals won't turn off!
I don't know much about this, but could it have been cached? Cristian Damon Kohler wrote: Well, it does turn off. At least phpinfo() says that it's off. However, PHP is acting as though it's still turned on. The source code for the page I'm using to test this odd result is: html head /head body form action=?=$_SERVER['PHP_SELF']? method=post input name=test input type=submit /form /body /html ?php print $test; phpinfo(); I'm running PHP 4.3.3 on RH7. When the form is submited, the value is printed despite the fact it's printing $test and not $_POST['test']. This is copy pasted from the results: register_argc_argv Off Off register_globals Off Off I'm completely stumped. Thanks in advance, Damon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: register_globals won't turn off!
What does it say at script level? $register_globals = (bool) ini_get('register_gobals'); Damon Kohler [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Well, it does turn off. At least phpinfo() says that it's off. However, PHP is acting as though it's still turned on. The source code for the page I'm using to test this odd result is: html head /head body form action=?=$_SERVER['PHP_SELF']? method=post input name=test input type=submit /form /body /html ?php print $test; phpinfo(); ? I'm running PHP 4.3.3 on RH7. When the form is submited, the value is printed despite the fact it's printing $test and not $_POST['test']. This is copy pasted from the results: register_argc_argv Off Off register_globals Off Off I'm completely stumped. Thanks in advance, Damon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] register_globals won't turn off!
No, it's not cached. I can type in anything to the input and it'll show up. As in, if I type test into the form, it prints test. Then if I type hello world it'll print hello world. So I'm pretty sure caching isn't the problem. Damon Cristian Lavaque [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I don't know much about this, but could it have been cached? Cristian Damon Kohler wrote: Well, it does turn off. At least phpinfo() says that it's off. However, PHP is acting as though it's still turned on. The source code for the page I'm using to test this odd result is: html head /head body form action=?=$_SERVER['PHP_SELF']? method=post input name=test input type=submit /form /body /html ?php print $test; phpinfo(); I'm running PHP 4.3.3 on RH7. When the form is submited, the value is printed despite the fact it's printing $test and not $_POST['test']. This is copy pasted from the results: register_argc_argv Off Off register_globals Off Off I'm completely stumped. Thanks in advance, Damon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: register_globals won't turn off!
I changed the code to the snippet below. It displays register globals off. Damon html head /head body form action=?=$_SERVER['PHP_SELF']? method=post input name=test input type=submit /form /body /html ?php print $test; print br; $register_globals = (bool) ini_get('register_gobals'); print register globals: . ($register_globals ? on : off); phpinfo(); ? Jon Kriek [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] What does it say at script level? $register_globals = (bool) ini_get('register_gobals'); Damon Kohler [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Well, it does turn off. At least phpinfo() says that it's off. However, PHP is acting as though it's still turned on. The source code for the page I'm using to test this odd result is: html head /head body form action=?=$_SERVER['PHP_SELF']? method=post input name=test input type=submit /form /body /html ?php print $test; phpinfo(); ? I'm running PHP 4.3.3 on RH7. When the form is submited, the value is printed despite the fact it's printing $test and not $_POST['test']. This is copy pasted from the results: register_argc_argv Off Off register_globals Off Off I'm completely stumped. Thanks in advance, Damon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] register_globals won't turn off!
Are you using third party code that might be doing the export to global space itself? Rob. On Sat, 2003-09-27 at 22:21, Damon Kohler wrote: No, it's not cached. I can type in anything to the input and it'll show up. As in, if I type test into the form, it prints test. Then if I type hello world it'll print hello world. So I'm pretty sure caching isn't the problem. Damon Cristian Lavaque [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I don't know much about this, but could it have been cached? Cristian Damon Kohler wrote: Well, it does turn off. At least phpinfo() says that it's off. However, PHP is acting as though it's still turned on. The source code for the page I'm using to test this odd result is: html head /head body form action=?=$_SERVER['PHP_SELF']? method=post input name=test input type=submit /form /body /html ?php print $test; phpinfo(); I'm running PHP 4.3.3 on RH7. When the form is submited, the value is printed despite the fact it's printing $test and not $_POST['test']. This is copy pasted from the results: register_argc_argv Off Off register_globals Off Off I'm completely stumped. Thanks in advance, Damon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- .. | InterJinn Application Framework - http://www.interjinn.com | :: | An application and templating framework for PHP. Boasting | | a powerful, scalable system for accessing system services | | such as forms, properties, sessions, and caches. InterJinn | | also provides an extremely flexible architecture for | | creating re-usable components quickly and easily. | `' -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: register_globals won't turn off!
Hi Damon, Do you have an auto_prepend_file? Also, check the contents of .htaccess, make sure register_globals is not set to on there. Greg Damon Kohler wrote: Well, it does turn off. At least phpinfo() says that it's off. However, PHP is acting as though it's still turned on. The source code for the page I'm using to test this odd result is: html head /head body form action=?=$_SERVER['PHP_SELF']? method=post input name=test input type=submit /form /body /html ?php print $test; phpinfo(); ? I'm running PHP 4.3.3 on RH7. When the form is submited, the value is printed despite the fact it's printing $test and not $_POST['test']. This is copy pasted from the results: register_argc_argv Off Off register_globals Off Off I'm completely stumped. Thanks in advance, Damon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] register_globals won't turn off!
I don't think so... You have something particular in mind? You can check out the page itself at http://my.innermetrix.cc/test.php Damon Robert Cummings [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Are you using third party code that might be doing the export to global space itself? Rob. On Sat, 2003-09-27 at 22:21, Damon Kohler wrote: No, it's not cached. I can type in anything to the input and it'll show up. As in, if I type test into the form, it prints test. Then if I type hello world it'll print hello world. So I'm pretty sure caching isn't the problem. Damon Cristian Lavaque [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I don't know much about this, but could it have been cached? Cristian Damon Kohler wrote: Well, it does turn off. At least phpinfo() says that it's off. However, PHP is acting as though it's still turned on. The source code for the page I'm using to test this odd result is: html head /head body form action=?=$_SERVER['PHP_SELF']? method=post input name=test input type=submit /form /body /html ?php print $test; phpinfo(); I'm running PHP 4.3.3 on RH7. When the form is submited, the value is printed despite the fact it's printing $test and not $_POST['test']. This is copy pasted from the results: register_argc_argv Off Off register_globals Off Off I'm completely stumped. Thanks in advance, Damon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- .. | InterJinn Application Framework - http://www.interjinn.com | :: | An application and templating framework for PHP. Boasting | | a powerful, scalable system for accessing system services | | such as forms, properties, sessions, and caches. InterJinn | | also provides an extremely flexible architecture for | | creating re-usable components quickly and easily. | `' -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: register_globals won't turn off!
Don't know anything about an auto_prepend_file. There is no .htaccess file. Beside, phpinfo says register_globals is off both globaly and localy. Damon Greg Beaver [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi Damon, Do you have an auto_prepend_file? Also, check the contents of .htaccess, make sure register_globals is not set to on there. Greg Damon Kohler wrote: Well, it does turn off. At least phpinfo() says that it's off. However, PHP is acting as though it's still turned on. The source code for the page I'm using to test this odd result is: html head /head body form action=?=$_SERVER['PHP_SELF']? method=post input name=test input type=submit /form /body /html ?php print $test; phpinfo(); ? I'm running PHP 4.3.3 on RH7. When the form is submited, the value is printed despite the fact it's printing $test and not $_POST['test']. This is copy pasted from the results: register_argc_argv Off Off register_globals Off Off I'm completely stumped. Thanks in advance, Damon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: register_globals won't turn off!
Hi, if you append ?test=foo to the url you supplied, it will print foo - register_globals is definitely on, perhaps you could add this to the start of the file: ini_set('error_reporting', E_ALL); so we can see the result? You should also be seeing a notice of an undefined variable. It's possible you've found a bug, maybe one of the many extensions you have loaded enables register_globals - do you have access to recompile php? Greg Damon Kohler wrote: Don't know anything about an auto_prepend_file. There is no .htaccess file. Beside, phpinfo says register_globals is off both globaly and localy. Damon Greg Beaver [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi Damon, Do you have an auto_prepend_file? Also, check the contents of .htaccess, make sure register_globals is not set to on there. Greg Damon Kohler wrote: Well, it does turn off. At least phpinfo() says that it's off. However, PHP is acting as though it's still turned on. The source code for the page I'm using to test this odd result is: html head /head body form action=?=$_SERVER['PHP_SELF']? method=post input name=test input type=submit /form /body /html ?php print $test; phpinfo(); ? I'm running PHP 4.3.3 on RH7. When the form is submited, the value is printed despite the fact it's printing $test and not $_POST['test']. This is copy pasted from the results: register_argc_argv Off Off register_globals Off Off I'm completely stumped. Thanks in advance, Damon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: register_globals won't turn off!
Hi, Sunday, September 28, 2003, 12:36:19 PM, you wrote: DK Don't know anything about an auto_prepend_file. There is no .htaccess file. DK Beside, phpinfo says register_globals is off both globaly and localy. DK Damon DK Greg Beaver [EMAIL PROTECTED] wrote in message DK news:[EMAIL PROTECTED] Sounds like your web host has put an auto-prepend file with a kludge to emulate globals being on to get rid of all the complaints about scripts failing :) -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: register_globals won't turn off!
I added the error_reporting line and it doesn't seem to make any difference actually. No warnings or notices. Yes, I can recompile PHP. Damon Greg Beaver [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, if you append ?test=foo to the url you supplied, it will print foo - register_globals is definitely on, perhaps you could add this to the start of the file: ini_set('error_reporting', E_ALL); so we can see the result? You should also be seeing a notice of an undefined variable. It's possible you've found a bug, maybe one of the many extensions you have loaded enables register_globals - do you have access to recompile php? Greg Damon Kohler wrote: Don't know anything about an auto_prepend_file. There is no .htaccess file. Beside, phpinfo says register_globals is off both globaly and localy. Damon Greg Beaver [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi Damon, Do you have an auto_prepend_file? Also, check the contents of .htaccess, make sure register_globals is not set to on there. Greg Damon Kohler wrote: Well, it does turn off. At least phpinfo() says that it's off. However, PHP is acting as though it's still turned on. The source code for the page I'm using to test this odd result is: html head /head body form action=?=$_SERVER['PHP_SELF']? method=post input name=test input type=submit /form /body /html ?php print $test; phpinfo(); ? I'm running PHP 4.3.3 on RH7. When the form is submited, the value is printed despite the fact it's printing $test and not $_POST['test']. This is copy pasted from the results: register_argc_argv Off Off register_globals Off Off I'm completely stumped. Thanks in advance, Damon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: register_globals won't turn off!
Hi, I would try recompiling PHP with the bare minimum, and see if you can reproduce the behavior. If not, then add in extensions one by one. If you still see the behavior, modify a value in php.ini, and make sure you see it show up in phpinfo() (don't forget to restart Apache). If changes don't show up, it's reading a different php.ini, which can be a bit loopy. Greg Damon Kohler wrote: I added the error_reporting line and it doesn't seem to make any difference actually. No warnings or notices. Yes, I can recompile PHP. Damon Greg Beaver [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, if you append ?test=foo to the url you supplied, it will print foo - register_globals is definitely on, perhaps you could add this to the start of the file: ini_set('error_reporting', E_ALL); so we can see the result? You should also be seeing a notice of an undefined variable. It's possible you've found a bug, maybe one of the many extensions you have loaded enables register_globals - do you have access to recompile php? Greg Damon Kohler wrote: Don't know anything about an auto_prepend_file. There is no .htaccess file. Beside, phpinfo says register_globals is off both globaly and localy. Damon Greg Beaver [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi Damon, Do you have an auto_prepend_file? Also, check the contents of .htaccess, make sure register_globals is not set to on there. Greg Damon Kohler wrote: Well, it does turn off. At least phpinfo() says that it's off. However, PHP is acting as though it's still turned on. The source code for the page I'm using to test this odd result is: html head /head body form action=?=$_SERVER['PHP_SELF']? method=post input name=test input type=submit /form /body /html ?php print $test; phpinfo(); ? I'm running PHP 4.3.3 on RH7. When the form is submited, the value is printed despite the fact it's printing $test and not $_POST['test']. This is copy pasted from the results: register_argc_argv Off Off register_globals Off Off I'm completely stumped. Thanks in advance, Damon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: register_globals won't turn off!
Ok. I'll get around to that sometime. But I think to start, I'll use that code from php|a that unregisters globals and such. Guess that is a smart thing to do. Never know when it's gonna fail like that. Thanks for your help all, Damon Greg Beaver [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, I would try recompiling PHP with the bare minimum, and see if you can reproduce the behavior. If not, then add in extensions one by one. If you still see the behavior, modify a value in php.ini, and make sure you see it show up in phpinfo() (don't forget to restart Apache). If changes don't show up, it's reading a different php.ini, which can be a bit loopy. Greg Damon Kohler wrote: I added the error_reporting line and it doesn't seem to make any difference actually. No warnings or notices. Yes, I can recompile PHP. Damon Greg Beaver [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, if you append ?test=foo to the url you supplied, it will print foo - register_globals is definitely on, perhaps you could add this to the start of the file: ini_set('error_reporting', E_ALL); so we can see the result? You should also be seeing a notice of an undefined variable. It's possible you've found a bug, maybe one of the many extensions you have loaded enables register_globals - do you have access to recompile php? Greg Damon Kohler wrote: Don't know anything about an auto_prepend_file. There is no .htaccess file. Beside, phpinfo says register_globals is off both globaly and localy. Damon Greg Beaver [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi Damon, Do you have an auto_prepend_file? Also, check the contents of .htaccess, make sure register_globals is not set to on there. Greg Damon Kohler wrote: Well, it does turn off. At least phpinfo() says that it's off. However, PHP is acting as though it's still turned on. The source code for the page I'm using to test this odd result is: html head /head body form action=?=$_SERVER['PHP_SELF']? method=post input name=test input type=submit /form /body /html ?php print $test; phpinfo(); ? I'm running PHP 4.3.3 on RH7. When the form is submited, the value is printed despite the fact it's printing $test and not $_POST['test']. This is copy pasted from the results: register_argc_argv Off Off register_globals Off Off I'm completely stumped. Thanks in advance, Damon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] register_globals won't turn off!
On Sat, 27 Sep 2003 20:05:10 -0400 Damon Kohler [EMAIL PROTECTED] wrote: Well, it does turn off. At least phpinfo() says that it's off. However, PHP is acting as though it's still turned on. The source code for the page I'm using to test this odd result is: snip I'm running PHP 4.3.3 on RH7. When the form is submited, the value is printed despite the fact it's printing $test and not $_POST['test']. This is copy pasted from the results: register_argc_argv Off Off register_globals Off Off I'm completely stumped. Thanks in advance, Damon Did you reload your http server? -- Raquel If our words are not consistent with our actions, they will never be heard above the thunder of our deeds. --H. Burke Peterson -- Raquel If our words are not consistent with our actions, they will never be heard above the thunder of our deeds. --H. Burke Peterson -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php