[PHP] An Invitation to Neuroscientists and Physicists: Singapore Citizen Mr. Teo En Ming (Zhang Enming) Reports First Hand Account of Mind Intrusion and Mind Reading
16 May 2011 Monday 7:28 P.M. Singapore Time For Immediate Release SINGAPORE, SINGAPORE - Singapore Citizen Mr. Teo En Ming (Zhang Enming) would like to report first hand account of mind intrusion and mind reading. I have been hearing voices for quite some time now but I have not been able to identify the persons physically. A number of un-identified persons have intruded into my mind and they are able to read my thoughts. I could not explain the mechanism by which these un-identified persons have been reading my mind at the moment but there is definitely a scientific explanation for it. I know very clearly that I am not suffering from schizophrenia at all. I am fully aware that no common man would believe me except the select few scientific researchers working in top secret government projects and the human guinea pigs who are being experimented on. One of the possibilities is that I have a microchip implanted into my brain, possibly when I was an infant. It may take a few years, a few decades, or even a few centuries before mind reading is finally brought to light before the general public. I would like to invite neuroscientists, engineers and physicists to speak on the scientific explanation behind mind intrusion and mind reading. Please remember what Singapore Citizen Mr. Teo En Ming (Zhang Enming) have said. Mark my words. You will know the truth in future. It is no longer a conspiracy theory. I can affirm that it (mind intrusion and mind reading) is indeed happening to me. Yours truly, Singapore Citizen Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics)(Singapore Polytechnic) BEng(Hons)(Mechanical Engineering)(National University of Singapore) Singapore Identity Card No/NRIC: S78*6*2*H Toa Payoh Lorong 5, Singapore Mobile Phone: +65-8369-2618 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] An Invitation to Neuroscientists and Physicists: Singapore Citizen Mr. Teo En Ming (Zhang Enming) Reports First Hand Account of Mind Intrusion and Mind Reading
16 May 2011 Monday 7:28 P.M. Singapore Time For Immediate Release SINGAPORE, SINGAPORE - Singapore Citizen Mr. Teo En Ming (Zhang Enming) would like to report first hand account of mind intrusion and mind reading. I have been hearing voices for quite some time now but I have not been able to identify the persons physically. A number of un-identified persons have intruded into my mind and they are able to read my thoughts. I could not explain the mechanism by which these un-identified persons have been reading my mind at the moment but there is definitely a scientific explanation for it. I know very clearly that I am not suffering from schizophrenia at all. I am fully aware that no common man would believe me except the select few scientific researchers working in top secret government projects and the human guinea pigs who are being experimented on. One of the possibilities is that I have a microchip implanted into my brain, possibly when I was an infant. It may take a few years, a few decades, or even a few centuries before mind reading is finally brought to light before the general public. I would like to invite neuroscientists, engineers and physicists to speak on the scientific explanation behind mind intrusion and mind reading. Please remember what Singapore Citizen Mr. Teo En Ming (Zhang Enming) have said. Mark my words. You will know the truth in future. It is no longer a conspiracy theory. I can affirm that it (mind intrusion and mind reading) is indeed happening to me. Yours truly, Singapore Citizen Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics)(Singapore Polytechnic) BEng(Hons)(Mechanical Engineering)(National University of Singapore) Singapore Identity Card No/NRIC: S78*6*2*H Toa Payoh Lorong 5, Singapore Mobile Phone: +65-8369-2618 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] [EMAIL PROTECTED]
[EMAIL PROTECTED]
[PHP] Working with files
Hello! If I have a text file like; FindThisBeginning Here goes several text... FindThisEnd FindThisOtherBeginning Here goes other text... FindThisOtherEnd and so on... How can I retrieve the portion of the text between those kind of tags (FindThisBeginning, FindThisEnd, etc), and transfer them into variables or arrays? Thanks Teo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Gettnig PHP code out of a DB?
- Original Message - From: Ben Houlton [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, June 13, 2003 2:49 PM Subject: [PHP] Gettnig PHP code out of a DB? Er...you need to eval() it to get it to parse/run. Is there a way to get PHP script/code out of a DB? Becasue, when I enter PHP code into the textbox and hit submit, and go check the page it has nothing there with ?php xxx ? and just shows the code, e.g. include(menu.php); without the ? ? tags, the code I'm using to import the DB text is below: } elseif ($id == $row[id] $cat == $row[cat] $row[xtra] == php) { $msg = $row[msg]; $msg; } Thank you for your time! -Ben (Note: My post didn't come up before, if it does, sorry for double posting) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] How can I redirect to another php page
Hi All! I would like to redirect the user to another php page accordingly to his/her chosen options, example: if ($Color == Yellow) { go to page else if ($Color == Green) go to page } Does anyone knows how to achieve the goal?? Thanks Teo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP Introduction cource @ IBM
Sorry for the length of the link: Using PHP with Web databases http://www-105.ibm.com/developerworks/education.nsf/web-onlinecourse-bytitle/B363B3AB5700BDE486256AAF003AA401?OpenDocument -- teodor -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Using mod_rewrite with PHP
Hi Miri! On Thu, 19 Jul 2001, Miri wrote: I'm using this no problem on a server running apache, but we have one client who insists on IIS and I have not been able to get it to work. Has anyone been able to get this to work with IIS? If so, any words of wisdom? :) I am using it w/ success straight in PHP w/o mod_rewrite. Just have a look at PATH_INFO. -- teodor -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] (another, not entirely)sessions question
Hi Conor! On Fri, 20 Jul 2001, Conor McTernan wrote: Hey there, I'm currently writing a web app using php. I was just looking for some advice on one aspect. On this site, users will be able to log in and post messages, or articles, or replies etc, you get the idea. Anyway, I am storing some info about the users, the usual stuff, name, email, password, all in mysql. I am also storing other info, such as when they last posted, and how many times they have posted. When a user posts a new message, the message is sent to mysql and stored in a table, at the same time, i also have to increment their total number of posts. The way this is done is by selecting the posts field on their userid, which i have to find using their username, which is set as a session var, when the user logs in. This all results in a good few queries to mysql. I was wondering would it be better to load all the user info, e.g. number of posts, last post date, into session vars, or should i set a cookie on the client side, or should i just continue with the queries. avoiding DB interaction is a good thing, and session storage is your friend as for cookies, you cannot trust them (e.g. despite I posted the maximum allowed 100 msgs I can send a cookie saying I'm firstpost and keep spamming) I guess if a user profile is not too big, you should have it available in session. -- teodor -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Re: (another, not entirely)sessions question
Hi Don! On Fri, 20 Jul 2001, Don Read wrote: On 20-Jul-2001 Er Galv?o Abbott wrote: Just a sugestion here, that may sound strange, but I'd do it like this: Why don't you keep a simle text-counter file for each user? Why this HAVE to go trough SQL? Just creat a text file with 0 on it. When the user posts, retrieve the number from the file, increment it and then write it back... This way you don't overload SQL and keep the post counter running... Because the database is optimized for this kind of stuff ? Once you get the db handle (and you have. you've authenticated right ?), SELECT count(*) from msgposts where user_id=$foo is likely be faster less load then an open/read/close. Trying to avoid hitting the database is a good maxim, but it's not the goal. Note that a DB is ultimately doing the same thing, open and read a file, while on the other hand you can have some fast support for sessions, like shared memory which can be faster. -- teodor -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Hack on Server.
Hi Jean-Francois! On Thu, 19 Jul 2001, Jean-Francois Jauvin wrote: Hi, my server with php on it has been hacked or something., what appened is every PHP pages displayed a certain message like Hacked by blah blah blah None of the HTML pages were affected, only the PHP ones but the scripts were not altered, I've shut down IIS, reinstalled PHP, and Ah, IIS, the magic word. Maybe you have been hacked by the Bady worm, I saw it in action in the test lab :) -- teodor -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] How is the management of memory by PHP?
Hi Luiz! On Tue, 17 Jul 2001, Luiz Fernando (Tuca) wrote: Somebody know how it is the management of memory by PHP? yes, it's quite well done :) what exactly are you interested in? -- teodor -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] note to PHP developers
Hi Michael! On Tue, 17 Jul 2001, Michael Geier, CDM Systems Admin wrote: I have noticed on the list over the past two months, an increasing number of problems with the mail() function. Mostly, people having this problem don't have sendmail installed. It would seem that PHP's mail() function was written around sendmail. Is there a way to resolve this, with either configuration flags or by re-writing the mail() function install to look for alternative MTAs??? Install FreeBSD it has mailwrapper ;) -- teodor -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] option value
Hi Michael! On Sun, 15 Jul 2001, Michael Thomas wrote: how can i populate an dropdown box useing php postgresql. Thanks in advance if you tell me how you tried by yourself first, I'll help you further ;) it's trivial with Javascript, but if you don't want to use that it's still doable. -- teodor -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Re: Select IN array?
Hi James! On Sun, 15 Jul 2001, James Tan wrote: dear chris, mysql does not support 'in' clause at the momment... the only way to this is to use the loop to generate the sql syntax.. orr.. use the implode function... to join the array into 1 string separated by the first parameter... huh? teo@teo:/x mysql test Reading table information for completion of table and column names You can turn off this feature to get a quicker startup with -A Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 155 to server version: 3.23.39 Type 'help;' or '\h' for help. Type '\c' to clear the buffer. mysql desc stock; ++-+--+-+-+---+ | Field | Type| Null | Key | Default | Extra | ++-+--+-+-+---+ | item | varchar(17) | YES | | NULL| | | num| varchar(4) | YES | | NULL| | | weight | varchar(7) | YES | | NULL| | | price | varchar(7) | YES | | NULL| | | date | datetime| YES | | NULL| | ++-+--+-+-+---+ 5 rows in set (0.00 sec) mysql select * from stock where num in (1,3); +--+--++---+-+ | item | num | weight | price | date| +--+--++---+-+ | foo | 1| 2kg| 123 | 2001-06-24 21:08:04 | | bar | 3| 7kg| 1234 | 2001-06-24 21:08:13 | +--+--++---+-+ 2 rows in set (0.00 sec) I have an array of id numbers ($catids). I would like to select from the mysql database all records where cid is in that array. This syntax fails: select * from categories where cid in $catids do : $catids = implode(',',$catids); $qs =SELECT * FROM categories WHERE cid IN ($catids); -- teodor -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Variable name declarations?
Hi Kent! On Sat, 14 Jul 2001, Kent Sandvik wrote: function sum_array( $input_array ) { var $index; var $sum = 0; for( $index = 0; $index count( $input_array ); $index++ ) $sum += $input_array[ $index ]; return $sum; } The array variable issue has indeed bitten me a couple of times, so now all my arrays are called $something_arr. It would nice to introduce more runtime checking of array types and complaints in case non-array values are used in functions. But otherwise the strong type checking will just cause more problems and more overhead with calls. I don't know if the example above will help that much, but you could already write similar code in functions to make sure that the values are declared on top, to make things clearer. you can add: !is_array($input_array) ($input_array = array($input_array); before your for() loop, if the client of sum_array() doesn't guarentee to provide only arrays. -- teodor -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] but mysql? (was: postgres and php)
Hi Nuno! On Sat, 14 Jul 2001, Nuno Silva wrote: hi there! the operators you want are ~ and ~* and !~ and !~*. select name from table where name ~* 'test'; any idea of something like this in MySQL? I was used to pg and I have no idea of something equivalent in My. to see all operators availlable type \do in psql's interactive mode ;) Regards, Nuno Silva Derek wrote: -- teodor -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] problem
Hi zerosumzero! On Sun, 15 Jul 1979, [EMAIL PROTECTED] wrote: I have a form with a bunch of text fields in it. The name of the fields is the rowid of items in my data base: FORM METHOD=post ACTION=edit.php3 textarea name=23 class=field/textarea textarea name=2 class=field/textarea textarea name=15 class=field/textarea input type=Submit name=save value=submit FORM Now, I want to change all of the items in the DB where a rowid was submited. Is there an easy way to do this? here's a hint: FORM METHOD=post ACTION=edit.php3 textarea name=f[23] class=field/textarea textarea name=f[2] class=field/textarea textarea name=f[15] class=field/textarea input type=Submit name=save value=submit FORM $f = $HTTP_POST_VARS['f']; // if you have register globals off foreach ($f as $rowid = $content) { $rowid = (int)$rowid; // add some sanity checks on $content here $qs = UPDATE idunnowhat SET content='$content' WHERE rowid=$rowid; $db-query($qs); // provided that $db is an database connection object or something } dere u go -- teodor -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Re: Export to Excel
Hi Marius! On Fri, 13 Jul 2001, Marius Andreiana wrote: How do you deal with numeric fields which start with 0 ? Excel takes the 0s out. [wild-guess] erm, enclose them in `quotes' ? -- teodor -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] complex objects and sessions
Hi David! On Sat, 14 Jul 2001, David Brumley wrote: Hi, Was the complex object issue ever fixed in PHP 4? works just fine for me (since 4.0.4pl1) I'm running 4.0.6 with imap, and have built a class IMAPSession defined in lib/sessionobject.inc.php. Here is a script: ?php $config = array(); require(config/defaults.inc.php); require(lib/common.inc.php); require(lib/sessionobject.inc.php); require(lib/imap_read.inc.php); session_start(); session_register(csession); include(Template/header.html); if(! $csession ){ $csession = new IMAPSession($state); in which file is IMAPSession defined? } if(! $state){ $state = start; } $csession-SwitchContext($state, $msg); ? My understanding is that the csession object should be stored. But on the second invocation I get: Fatal error: The script tried to execute a method or access a property of an incomplete object. Please ensure that the class definition imapsession of the object you are trying to operate on was loaded _before_ the session was started in /d0/www/htdocs/webmail/index.php on line 20 any hints would be appreciated. be sure you have the class definition available before calling session_start(); -- teodor -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] OOP Problems
Hi Andrew! On Sat, 14 Jul 2001, Andrew Kirilenko wrote: Hello! I have following problem: ? $container = new ccontainer(); $container-init(); $container-test1-foo(); $container-test2-foo(); $container-test2-owner-test1-foo(); [*] $container-test1-owner-test2-foo(); class ccontainer { function ccontainer() { } function init() { $this-test1 = new ctest($this); $this-test2 = new ctest($this); } } class ctest { function ctest($owner) { $this-owner = $owner; } function foo() { echo test!br; } } ? Output of this script is: --- test! test! test! Fatal error: Call to a member function on a non-object in c:\www\a.php on line 8 --- How to solve this problem??? at the moment marked [*] you are using test1-owner test1-owner is ccontainer *before* init() had the chance to set test2 to it, so the class has no such property test2. try a print_r($container) right after $cointainer-init() to see what I mean. actually, you will notice that test2-owner doesn't have test2 member too! cause at the moment it was created, the ccontainer was incomplete (the expression $this-test2 = new ctest ($this) evaluates right-to-left) a quick hack would be to have a circular reference, by saying: $this-owner = $owner; // note the amp; :) but the way you create the classes seems just trouble. what exactly are you trying to achive? -- teodor -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Re: OOP Problems
Hi u007! On Sun, 15 Jul 2001, u007 wrote: hie.. it's simply u did not declare ur class variable... well, actually you don't have to declare them, you can add members as you go (as opposed to C++ for example) class ctest { var $owner; function ctest($owner) { $this-owner = $owner; } function foo() { echo test!br; } } hope it works :) regards, James Andrew Kirilenko wrote: Hello! I have following problem: ? $container = new ccontainer(); $container-init(); $container-test1-foo(); $container-test2-foo(); $container-test2-owner-test1-foo(); $container-test1-owner-test2-foo(); class ccontainer { function ccontainer() { } function init() { $this-test1 = new ctest($this); $this-test2 = new ctest($this); } } class ctest { function ctest($owner) { $this-owner = $owner; } function foo() { echo test!br; } } ? Output of this script is: --- test! test! test! Fatal error: Call to a member function on a non-object in c:\www\a.php on line 8 --- How to solve this problem??? Best regards, Andrew Kirilenko, Senior Programmer / System Administrator, Internet Service. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- teodor -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Hiding password in a class file (object-oriented programming)?
Hi Thomas! On Mon, 09 Jul 2001, Thomas David Kehoe wrote: How do I put my password into an external file? I have dozens of webpages with the line mysql_connect (localhost, username, password); What if I have to change my password? Rather then change dozens of scripts, I want to put this line into an external file and call it with include. The problem is security. If I make the file a class, then the file extension must be .inc. Anyone can type in the URL and see the contents of the file. huh? you've learnt something wrong from various places. Who said it must be inc? It can be even .my-super-dooper-class, but it's safer to just name the file .php as for passwords, define() all the parameters you use in a configuration file and keep it outside webroot e.g. /www +--/htdocs +--/images (etc.) ^- at this level let's say you have config.php w/ define('DB_PASSWORD','yabadubi') then, in db.sql you just include() the config.php file. Changing the permission to everyone-execute and owner-read doesn't work, apparently because a .inc file is read, not executed. Using the .php file extension (instead of .inc) executes the script when the URL is accessed. The user sees nothing, if the file contains no HTML. But class only works with the .inc extension. Using include without making a class treats the file as HTML and it doesn't execute. nope, include can include even foo.exe as php code, if foo.exe has php code section i.e. ?php /* code here */? so your file must least start with an open tag. cheers, -- teodor -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] how to hide dbconnect file if its in published directory?
Hi Thomas! On Tue, 10 Jul 2001, Thomas David Kehoe wrote: include ('http://www.friendshipcenter.com/Objects/swordfish.inc'); echo Your password is , PASSWORD; it works, i.e., prints Your password is swordfish. When I use the following lines include ('http://www.friendshipcenter.com/Objects/swordfish.php'); echo Your password is , PASSWORD; it doesn't work, i.e., prints Your password is PASSWORD. I tried putting swordfish.inc in my cgi-bin directory, which is outside my www directory. I can't figure out what pathname to call it with. I.e., include ('cgi-bin/swordfish.inc'); wai' wai' waitasecond! gosh :) you're including your inc file via web just cause you couldn't figure the path via file system? Well, this way anybody can read it. I rent server space from phpwebhosting.com, so I can't change the PHP settings. I'm about to deploy a B2B there too, and I can give you a hint on the path. your home is ~account == $HOME your web is under $HOME/www/ like starting w/ $ are shell commands now, create a dir inc like that: $ mkdir ~/phpinc put your password file there $ echo ?php define('PASSWORD','@#complicated'); ~/phpinc/password.php move to ~/www/ $ cd ~/www create a file named test.php by editing it with vim or something say: ?php define ('PHPINC',dirname(__FILE__).'/../phpinc'); include (PHPINC.'/password.php'); echo Password is: , PASSWORD; -end edit- The fist line defines where is the directory with PHP files that are out of any visitor sight. Nobody should reach them via web unless you do something silly in your PHP programs (i.e. trust user supplied data) Now request test.php via your browser. It should work. $ lynx http://www.yourdomain.com/test.php Nobody can read your password file, cause it's outside web root (in this case under $HOME/phpinc) cheers, -- teodor -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] registering objects as session variables
Hi mike! On Sat, 07 Jul 2001, mike cullerton wrote: hey folks, i'm trying to register an object as a session variable and feel like i'm chasing my tail. i either get the define class before starting session problem or the can't send header error. as soon as i fix one, i cause the other. you are doing something wrong somewhere in the process :) All you need is the class definition before the session starts. That's all. Post some code to see what are you doing. -- teodor -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] High Ascii chars
Hi rm! On Sat, 07 Jul 2001, rm wrote: php3.x We have a large number of people submitting a large number of docs...I'm having a problem with some docs coming through with high ascii characters in the text, apparently the dbm database we're using chokes on some high ascii chars. I need to eliminate characters in the text from 122 to 255. I can't seem to find a simple way to do thisI have a routine, it works but it takes too long, something like; for ($i=122; $i256; $i++){ $textline=str_replace(chr($i),'',$textline) } $textline = preg_replace(/[\x7A-\xFF]+/,'', $textline); -- teodor -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] passing variables from php to bash script..
Hi Mark! On Sun, 08 Jul 2001, Mark Lo wrote: Hi, I would like to know. Is it possible to use php to exec a bash script with variable passing from php to bash. If so how to do this. either set them in the environment or pass them as arguments. but before that you man want to type man bash at the prompt to meet a new friend ;) proof of concept [joe.php] ?php $var1=hello; $var2=joe!; putenv(VAR1=$var1); system(/home/joe/bin/foo.sh $var2); [foo.sh] VAR2=$1 # or VAR2=${1:-not defined} where $1 means the first positional parameter # after the script name echo -e var1: $VAR1, var2: $var2 ciao -- teodor -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] simple question
Hi ReDucTor! On Mon, 09 Jul 2001, ReDucTor wrote: is there a function to turn all chars that are not alphanumric to show \xhh but hh being the hex version of it :)? you mean bin2hex() under String Function section? :) -- teodor -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Global Variables -- why not have them?
Hi Inércia! On Sun, 08 Jul 2001, Inércia Sensorial wrote: You must learn it's way if you want to be effective. Also take a look at design features proposed for PHP5. Looks promising and more C++ like, so better compare it with the later one. I went to php.net and searched for some kind of docs on PHP5, but found not a word. Where can I see this feature list? erm, Zeev wrote to the list some time ago and gave a link somewhere inside www.zend.com site. As I don't have it handy I'll just point you to the site. [n.b. is on zend.com cause the features regard the Zend engine] -- teodor -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] How to apply something to every variable
Hi Chris! On Fri, 06 Jul 2001, Chris Anderson wrote: I was playing around trying to find a way to addslashes() to all my variables, and I came up with this snippet. Hope it helps someone why don't you turn on magic_quotes_gpc then? $keys = array_keys($HTTP_POST_VARS); $post_size = sizeof($keys); for($x = 0; $x $post_size; $x++) { $temp = $keys[$x]; //you can replace addslashes with whatever you want to use ${$temp} = addslashes($HTTP_POST_VARS[$temp]); } -- teodor -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Redirect
Hi Victor! On Fri, 06 Jul 2001, Victor Spång Arthursson wrote: Hi! Still new on PHP, converting from vb$cript, I wonder how I do a redirect... In vbscript: % response.redirect(page.extension) % In PHP??? $response-redirect(page); where: class Response { function redirect($page) { header(Location: $page); } } $response = new Response(); to feel more at home :D -- teodor -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] optimal code
Hi Richard! On Thu, 05 Jul 2001, Richard Heyes wrote: If you are talking about speed, opening a file is expensive because it is a kernel call, a directory search and all that. Your some big code in-line will beat it every time... Not in my experience. I have a file which defines ~40 functions, with the bodies included when the function is called. Eg: function blah(){ return include('includes/func.blah.inc'); } Having all the function bodies in the same file would cause php to have to parse all of that code, probably about 3-4000 lines causing awful slowdowns. And the reason to define all of the functions in one file, is so that we can include that file, and all the functions are then available. hmm, depending on the function size I would say the parser is much faster doing that than the HDD drive reading each file from the disk and ending in lesser php code to parse. OTOH, it is not possible to do your way w/ class methods :(( I guess the ammoun of include/one-shot-code depends on the application, programming style, but somewhere they should balance. -- teodor -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Must Have Cookies. PHP/JavaScript
Hi Jeff! On Thu, 05 Jul 2001, Jeff Gannaway wrote: OK, I'm working on a site that absolutely must use a cookie containing a session identifier. I know how to set a cookie through PHP, but I need to do something else too. The same page MUST identifier whether the cookie was accepted or not. I've seen sites like NetFlix.com that will test to see if their cookie was accepted, and if not, print up a page that says Sorry, you've got have your Cookies on or go somewhere else. Does anyone know how to do this with PHP, Java, or JavaScript? Code examples or example URLs would be appreciated. Thanks, Jeff Gannaway [snip-long-sig] If you won't enable trans_sid, you'll only have cookie based session, so on each page you can test for cookie presence in $HTTP_COOKIE_VARS global array, or, if you have register_globals on (practice for newbies), in $GLOBALS. So, you'll supposedly have an entrance page: [index.php] ?php setCookie('haveCookies',1); Header('Location: http://site/main.php'); ? [main.php] ?php if (empty($HTTP_COOKIE_VARS['haveCookies'])) { return include error.php; } // the rest of php code goes here. ? And BTW of globals off, ppl complain it's a lot to type (yap, one of the virtues of a programmer, laziness), but hey you can assign those long-named arrays to something simple, so if you have to work a lot with, say, GET vars, just say $GV = $HTTP_GET_VARS; and go ahead w/ $GV. ciao -- teodor -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] (X|GNU)Emacs func-menu mode?
hi, sorry for the slightly OT question. is there any PHP developer actively using Emacs and by chance :) wrote a func-menu mode for PHP? Or maybe one for the speedbar to be able to browse PHP classes and functions as I am able for C++ code; anything? else it looks like sooner or later I'll add Lisp on the main priorities of PHP coding :) ciao -- teodor -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Question about Sessions
Hi Jay! On Thu, 05 Jul 2001, Jay Paulson wrote: Hello everyone-- I've got a general question about cookies and sessions. I was wondering if this is how php handles sessions because this is what I want. Is it possible to set up php so that the session id is the only thing that is set in the cookie and then all the session data is either pushed into a file or a database? erm, I think that is how it actually work now. Maybe you wanted to ask something else? A link for the manual? :) http://www.php.net/manual/en/ref.session.php -- teodor -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] iterating over /etc/group
Hi Arcady! On Wed, 04 Jul 2001, Arcady Genkin wrote: [EMAIL PROTECTED] writes: On Wed, 04 Jul 2001, Arcady Genkin wrote: Does PHP provide no high-level means of iterating over the UNIX /etc/group file, a la getgrent() C function? The task is to figure out all groups that a user is in on a system with PHP in _safe mode_ (hence, cannot read from /etc/group directly). Am I overlooking something? system (/usr/bin/id $user -G); Thanks, but this would not work in safe mode. I solved the problem by having a cron job making a local copy of /etc/group once in a while; my script then goes through it line by line to extract the groups. But this is a hack... well, why exactly do you need the groups from /etc/group again? maybe there's a different way to do it. -- teodor -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] iterating over /etc/group
Hi Arcady! On Wed, 04 Jul 2001, Arcady Genkin wrote: Does PHP provide no high-level means of iterating over the UNIX /etc/group file, a la getgrent() C function? The task is to figure out all groups that a user is in on a system with PHP in _safe mode_ (hence, cannot read from /etc/group directly). Am I overlooking something? system (/usr/bin/id $user -G); -- teodor -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] qmail-inject: fatal: read error
Hi Warren! On Tue, 03 Jul 2001, Warren Brundage wrote: When I try to use PHP to send mail through qmail I get a qmail-inject: fatal: read error. I have read through the list and I have seen (and tried) the following solutions: 1. Put /var/qmail/bin/qmail-inject into php.ini instead of qmail-inject u can use the wrapper /var/qmail/bin/sendmail and don't forget to specify '-t' too. 2. Ensured that all appropriate sendmail links exist 2. Also tried the permutations of sendmail, and sendmail default etc in php.ini. 3. Tried (temporarily!) adding apache (web-server is run under user apache, group apache) to root group (only for testing - not advisable permanent solution). 4. I don't have anything calling QMAILMFTFILE but I am not sure where this is called from. It doesn't show in printenv. Maybe someone could clarify this? But I tried adding QMAILMFTFILE=/tmp/.lists to my apache start-up file just in case. 5. Added user apache group apache in httpd.conf before modules are called. qmail functions well on my computer but it's not the problem in any case because the e-mail never enters the mail system. The error mentioned above shows up in the Apache error-log. PHP is also performing very well in every other capacity. to test it try to popen() and talk nice to it. -- teodor -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Convert
Hi Roman! On Mon, 02 Jul 2001, Roman wrote: Have you some program for convert Microsoft Access Database (*.mdb) to the MySQL database ? have you tried looking on mysql site? you'll find there dbf2mysql and mssql2mysql (this one I used w/ no problems) -- teodor -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] sessions and cache
Hi Adrian! On Mon, 02 Jul 2001, Adrian Ciutureanu wrote: Hi, I have a problem: if I use session_start(), the page will not cache. Is that normal? yes, check session.cache_limiter session.cache_expire in your php.ini -- teodor -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] apache+php chroot
Hi Ryan! On Sun, 01 Jul 2001, Ryan wrote: I have chrooted apache+php but am having simple problems like not being able to exec uptime. uptime has been moved to /usr/serv/apache/usr/bin/uptime.. Well anyways heres my lil php line im tring to get running ?php passthru ( uptime ); ? I get no errors from php, just doesnt show anything.. I realize it needs a shell to execute so /usr/serv/apache/bin/bash I think the passthru uses popen() which in turn spawns a shell, and this is /bin/sh and not /bin/bash you need either to make a symlink to bash or to rename bash to sh. and /usr/serv/apache/usr/etc/shells is setup correctly. Would there be AFAIK shells is checked by programs dealing with pw records, I don't think it has anything to do w/ that. Better SHELL environment variable. something that im missing? Im frustruated right now.. Its something to do with the chroot env. What am i missing?? try : cd /usr/serv/apache/bin ln -s bash sh (or) cp bash sh and tell us if it works. Everything else seems to work fine if theres any more info you need me to give let me know. thanks Ryan [EMAIL PROTECTED] -- teodor -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] how to determine size of gz-handler output
Hi Sebastian! On Fri, 29 Jun 2001, Sebastian Stadtlich wrote: Hi all I'd like to know how small my content gets when i use ob_gzhandler. so far i tried $cont=ob_get_contents(); $length=strlen($cont); try using $length = ob_get_length(); instead. echo !-- $length --\n; but it outputs !-- 17280 -- -- teodor -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Question on Commercial Offerings
Hi Thomas! On Fri, 29 Jun 2001, Thomas Deliduka wrote: I don't know quite how to word that subject but here's what we want to do. We have a shopping cart softwre (like a million others out there) which based in windows NT with a COM+ object to guard the source code. We mainly offer this product to our hosting customers as an add-on solution to their hosting. Well, we want to migrate this to PHP/MySQL and I don't know how to protect the source code. My boss is suggesting to make a DSO but I really am not a C programmer to do all that. I want to make it all in PHP but somehow protect the code. Any ideas? buy the PHP Encoder from Zend. otherwise, have a well written licence -- teodor -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Convert
Hi Roman! On Fri, 29 Jun 2001, Roman wrote: Have you some program for convert Microsoft Access Database (*.mdb) to the MySQL database ? Search on MySQL site : dbf2mysql or mssql2mysql on windows you can move your data from Access to a MS-SQL, or to export it as DBF. -- teodor -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Problems upgrading APACHE/PHP/Mysql on remote server
Hi M! On Thu, 28 Jun 2001, M wrote: Complete msg subject is what can developer do when server provider upgrades any of Apache/PHP/Mysql softwares to newer version and this causes crash on already working transactions? I am posting this also into MySql discussion list. MySQL transation are known to be unstable (discl: I've never used them, for this stuff Postgres is the way to go). What sais your contract w/ them? Doesn't it specify a version of the software? If not, they are right. Before deploying, try to reproduce the same platform on a test box, and test on it. You'll find most of the problems. Also, check the changelogs of PHP releases, to see what nasty known bug was fixed in the next revision they don't have and might relate to your problems. etc. ciao -- teodor -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Pricing Advice Needed
Hi Brad! On Sat, 30 Jun 2001, Brad Hubbard wrote: On Fri, 29 Jun 2001 01:42, Thomas Deliduka wrote: I think in general it's about $100-$150/hour for programming/database work. Yankee dollars? Gawwd... I AM being exploited due to geographic disadvantage! to make you feel better, lemme tell you that after more than 3ys w/ PHP I earn somewhere arround 3 ( I mean 3!) $/h in Romania so let me tell you more about geographic disadvantages :) -- teodor -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Urgent Help: Problem with apache+php
Hi Imran! On Sat, 30 Jun 2001, Imran Hussain wrote: hi Iam running Freebsd4.3 i hv installed apache-1.3.20,php4.0.5 and postgres-6.5.3. there was no problem with the configuration of all the above packages, My problem is when i start apache it gives me this error. hub#/usr/local/apache/bin/apachectl start Syntax error on line 205 of /usr/local/apache/conf/httpd.conf: Cannot load /usr/local/apache/libexec/libphp4.so into server: /usr/local/apache/libexec/libphp4.so: Undefined symbol PQoidValue /usr/local/apache/bin/apachectl start: httpd could not be started hub# before this it was saying libphp4.so not found then i had to do ldconfig with the path to the lib dir then it gave me this errorcan anyone help me on this issue. as root: ldconfig -m /path/to/postgres/libs/dir/ e.g.: ldconfig -m /usr/local/pgsql/lib -- teodor -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Stopping stolen / spoofed / linked sessions
Hi adam! On Wed, 27 Jun 2001, adam (dahamsta) wrote: [Please copy replies off-list.] I want to use PHP4 sessions for authentication, but I'm having difficulty understanding how to get around users spoofing, stealing or linking sessions. Here's an example: Alice sends Bob a link from a site she's logged into. Alice has cookies turned off in her browser, so the session id will be in the URL she sends Bob. Eve intercepts the message, follows the link and now she can take over Alice's session, and any data that is associated with that session. For that matter, Bob can do the same thing. I can think of lots of ways around this, but most of them are kludges that don't really cut it. I can store a second authentication value in a cookie, but that would require cookies, which isn't acceptable. I could propogate a second authentication variable in the URL, but that's a lot of hassle and defeats the purpose of PHP sessions. I can check the HTTP_REFERER to see if the user came from my own site, but that can be spoofed. I can log and check the users IP address, but that can't be relied upon. Is there any reliable way around this? Am I missing something obvious? there was a long and interesting thread on bugtraq @ securityfocus.com recently regarding this (it started w/ uploading images, I don't recall what was the subject, but you can figure some keywords to search for ;) Among proposed solutions was to send a ticket and validate it for each operation. Worth a searchread if you're a web developer. -- teodor -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] MIME type
Hi Jon! On Sat, 26 May 2001, Jon Yaggie wrote: is there a function to get the mime of a given file? if so what? unless you upload it, nope you may try : using `magic' -- really, that one installed by Apache for mod_mime_magic.c parsing 'file' output -- teodor -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] looking for a class that handles cookies and sessions
Hi PeterOblivion! On Tue, 26 Jun 2001, [EMAIL PROTECTED] wrote: I need a class that can quickly help me set cookies and sessions, and check up against them anyone have an idea where i can get one like this? yes http://www.webdev.ro/products/phpx/phpx.tgz luckily enough, Daniel ([EMAIL PROTECTED]) put it up on this site so others can have access to it. it includes only the sources w/ no docs, but a simple example follows. quick jumps to the colorful sources are: - http://www.webdev.ro/products/phpx/code.php?file=ScriptletRequest.php - http://www.webdev.ro/products/phpx/code.php?file=ScriptletResponse.php - http://www.webdev.ro/products/phpx/code.php?file=Session.php $request = new HttpScriptletRequest(); $response = new HttpScriptletResponse(); $a_variable = $request-getAttribute('variable.name'); $a_cookie = $request-getCookie('baubau'); etc. the full API of request is a bigger, just have a look, and quite easy to use. /* for `slash trick' browsing u can use this: */ $request-setPathMapping('/module.name/module.entry/module.info'); if ($request-getAttribute('module.name') == 'News') { // do stuff } an so, for an url like: http://www.foo.com/News/ShowNews/123 you have the mapping: 'module.name' - News 'module.entry' - ShowNews 'module.info' - 123 of course u can use any name, just separate them with `/'. /* for session support */ $session = $request-getSession(); $someCart = new Cart(); // to save it to the session $session-setAttribute('cart.items', $someCart); // to get it (AS A COPY - changes aren't saved) $otherCart = $session-getAttribute('cart.items'); // to get it AS A REFERENCE (changes are saved) $otherCart = $sesion-getAttribute('cart.items'); You can use a $Request object as a containter/spacename for your variables along the request processing to have a more elegant variables control, IMO. Play with it, enhance it and share if you like :) -- teodor -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Creating a PDF document from an HTML Page
Hi Boaz! On Tue, 26 Jun 2001, Boaz Yahav wrote: Hi I'm trying to create a receipt in a PDF format. I have the receipt as HTML. Is there any class or module in PHP or other language that can read an HTML file and output a PDF file? if you intend to do it offline, try html2ps ps2pdf (quick shot) also you have htmldoc, which I dunno if it supports batch jobs. otherwise, you'll find a lot of Java based solution, google is your friend :) ciao -- teodor -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] RE: [PHP-WIN] Bug in mktime-function ?
RE: [PHP-WIN] Bug in mktime-function ?This is the output I get running 4.0.4pl1 or 3.0.17 on Win98/Apache Using 3/9/1935 Unix timestamp for this date is -1 Warning: unexpected error in date() in c:\inetpub\wwwdev\staffroot\myscu\date.php on line 13 Reconverting... What platform r u using? Ignatius -Original Message- From: Boget, Chris [mailto:[EMAIL PROTECTED]] Sent: Friday, 16 February 2001 02:16 To: 'Ignatius Teo' Cc: Php (E-mail) Subject: RE: [PHP-WIN] Bug in mktime-function ? Therefore any date on or before 1 Jan 1970 ain't going to work using mktime or any PHP function which returns a UNIX timestamp. I'm sorry, but this is wrong. The following works with no problems whatsoever. script language="php" $month = 3; $day = 9; $year = 1935; echo "Using $month/$day/$yearbr\n"; $oldDate = mktime( 0, 0, 0, $month, $day, $year ); echo "Unix timestamp for this date is $oldDatebrbr\n"; echo "Reconverting... " . date( "F d, Y", $oldDate ); /script Chris