[PHP] Deprecated configure options

2008-03-07 Thread Ian M. Evans
Was just upgrading to 5.2.5 and used the same configure line as I used for 5.2.0. Got the following notice: "Notice: Following unknown configure options were used: --enable-pic --with-dom --with-png --with-xml --enable-track-vars --enable-trans-sid --enable-yp --enable-mbstr-enc-trans --enable-

[PHP] Generating JavaScript menus on-the-fly

2008-03-07 Thread Ken Kixmoeller
Hey - - -- - -- -- I keep a profile of a user's rights and responsibilities in tables. Since this profile defines what a user can do in the system I am designing, I'd like to build a JavaScript menu navigation scheme. I need it to be driven programmatically, because the Admin users can ad

[PHP] Posting Summary for Week Ending 7 March, 2008: php-general@lists.php.net

2008-03-07 Thread PostTrack [Dan Brown]
Posting Summary for PHP-General List Week Ending: Friday, 7 March, 2008 Messages| Bytes | Sender ++-- 378 (100%) 575642 (100%) EVERYONE 38 (10.1%)

Re: [PHP] Newbie - Undefined Index Variable

2008-03-07 Thread Daniel Brown
On Fri, Mar 7, 2008 at 2:59 PM, revDAVE <[EMAIL PROTECTED]> wrote: > I have this: > > > {print 'page1';}else{print 'page2';} ?> > > I will get the error: > > Notice: Undefined index: nowtoctype in ... Check out isset(): http://php.net/isset Page 1\n"; } else { echo "Page 2\n"

[PHP] Newbie - Undefined Index Variable

2008-03-07 Thread revDAVE
I have this: page1';}else{print 'page2';} ?> I will get the error: Notice: Undefined index: nowtoctype in ... If the variable has not yet been defined... Is there a way to check if this var is already defined? ... (and then I can define it - if not) -- Thanks - RevDave Cool @ hosting4days .

Re: [PHP] validating mysql bound date

2008-03-07 Thread Larry Brown
Doesn't checkdate() do the sanity check for a valid date? On Fri, 2008-03-07 at 10:08 -0600, Richard Lynch wrote: > Something like this, perhaps: > > preg_match('/^((19|20)[0-9]{2})-([0-1]?[0-9])-([0-3]?[0-9])$/', > $input, $date_parts); > var_dump($date_parts); > > This doesn't completely rule

Re: [PHP] programming and design fees

2008-03-07 Thread Per Jessen
Lamp Lists wrote: > now, I didn't have such a big project "on side" ever. and I by default > ALWAY suck in calculations how much time I need for a project and what > to charge. I think I need about 120 hrs (3 weeks) to build this baby > (without design part). I need your opinion. is it enough time

[PHP] programming and design fees

2008-03-07 Thread Lamp Lists
hi, maybe my question is not exactly for php list, but since php IS involved and since you are such a great people, I hope the question will not disturb you :D I have a project for one electric wholesale store to build a web site. it has to be dynamic, php, database driven web site. it will have

Re: [PHP] SESSIOn when cookies are disabled

2008-03-07 Thread chetan rane
Thank you very much its worked great!!! On Fri, Mar 7, 2008 at 11:50 PM, Bastien Koert <[EMAIL PROTECTED]> wrote: > > > Date: Fri, 7 Mar 2008 23:45:51 +0530> From: [EMAIL PROTECTED]> To: > php-general@lists.php.net> Subject: [PHP] SESSIOn when cookies are > disabled> > Hi all> > how can we manage

RE: [PHP] SESSIOn when cookies are disabled

2008-03-07 Thread Bastien Koert
> Date: Fri, 7 Mar 2008 23:45:51 +0530> From: [EMAIL PROTECTED]> To: > php-general@lists.php.net> Subject: [PHP] SESSIOn when cookies are disabled> > > Hi all> > how can we manage session variables when cookies are disabled.> > > -- > Have A pleasant Day> Chetan. D. Rane> Location: India> Conta

Re: [PHP] SESSIOn when cookies are disabled

2008-03-07 Thread Daniel Brown
On Fri, Mar 7, 2008 at 1:15 PM, chetan rane <[EMAIL PROTECTED]> wrote: > Hi all > > how can we manage session variables when cookies are disabled. You can send the request with an appended PHPSESSID. RTFM: http://us.php.net/session -- Daniel P. Brown Senior Unix Geek -- PHP Gener

[PHP] SESSIOn when cookies are disabled

2008-03-07 Thread chetan rane
Hi all how can we manage session variables when cookies are disabled. -- Have A pleasant Day Chetan. D. Rane Location: India Contact: +91-9986057255 other ID: [EMAIL PROTECTED] [EMAIL PROTECTED]

Re: [PHP] Hot job opportunity - Sr. Software Developer/Architect

2008-03-07 Thread Richard Lynch
On Thu, February 28, 2008 10:39 am, Nick Gasparro wrote: > I have an immediate need for a Sr. Developer/Architect; with one of > Denver's > Best employers. They are a Web 2.0 company, rapidly growing and very > profitable. They will pay top compensation and provide relocation > assistance for the

Re: [PHP] regular expressions question

2008-03-07 Thread Richard Lynch
The + requires at least one character. The * is "0 or more" characters. http://php.net/pcre On Wed, March 5, 2008 9:13 am, It Maq wrote: > Hi, > > I am using that right now and i have don't know how to include blank > fields. For example if a user does not fill a field in a form i want > to acce

Re: [PHP] validating mysql bound date

2008-03-07 Thread Richard Lynch
Something like this, perhaps: preg_match('/^((19|20)[0-9]{2})-([0-1]?[0-9])-([0-3]?[0-9])$/', $input, $date_parts); var_dump($date_parts); This doesn't completely rule out bogus dates such as 2008-02-30 however. I think MySQL would just convert that to MAR 1, 2008 anyway... But if you want that

Re: [PHP] Logging session timeout in DB

2008-03-07 Thread Richard Lynch
On Wed, March 5, 2008 2:08 am, Angelo Zanetti wrote: > I am implementing a system where when a user is logged in and out that > a > date time is set in a database for each action for each used. We can > then > trace who logged in a and when. > > No what I would like to know is how can I record when

Re: [PHP] Re: Variable post as array

2008-03-07 Thread Richard Lynch
Are you really using temp_name when you want tmp_name? On Wed, March 5, 2008 4:37 am, Pieter du Toit wrote: > Just to add, if i try to echo the $_FILES['txtPhoto']['temp_name'] it > tells > me that temp_name is also an array, but when i echo > $_FILES['txtPhoto']['name'] it gives me the correct na

Re: [PHP] Array questions...

2008-03-07 Thread Richard Lynch
On Wed, March 5, 2008 9:35 am, Robert Cummings wrote: No textbook, but here's some advice... Think of a variable like a house address for an actual house. 123 Maple Street An array is just an apartment building: 125 Maple Street, Unit 1 125 Maple Street, Unit 2 125 Maple Street, Unit 3 . . .

Re: [PHP] imagerotate

2008-03-07 Thread Richard Lynch
On Wed, March 5, 2008 11:17 am, Zeshan Uddin wrote: > * > Code for rotate.php > > // File and rotation > $filename = 'image.png'; > $degrees = 18; > > // Content type > header('Content-type: image/png'); > > // Load > $source = imagecreatefrompng($filename); > > // Rotate

Re: [PHP] Re: Preserving URL after redirect?

2008-03-07 Thread Richard Lynch
On Thu, March 6, 2008 6:42 am, Jochem Maas wrote: > big boys use mod_rewrite, go grab a kilt :-) If mod_rewrite gives you the willies... You don't really NEED it here... Just don't create /wi/* directories, and use $_SERVER['PATH_INFO'] instead. Store all the school data somewhere else, and let

Re: [PHP] CVS Scripts

2008-03-07 Thread tedd
At 8:05 AM -0500 3/7/08, Eric Butera wrote: On Fri, Mar 7, 2008 at 3:58 AM, Adrian Walls <[EMAIL PROTECTED]> wrote: I am going to code this up myself with wrappers around the cvs commands I need. Good luck! Sounds like that might be the best solution since you have such specific needs. The

Re: [PHP] Preserving URL after redirect?

2008-03-07 Thread Richard Lynch
On Wed, March 5, 2008 11:18 am, Skip Evans wrote: > "shortname", in this case "madison", and then sets > a session variables for school ID that allows the > user to access this school's data. > > Then it redirects back to > > http://prepcube.com/ Don't redirect to this. Your session data has "w

Re: [PHP] Pear Installation Problem - Ubuntu

2008-03-07 Thread Richard Lynch
SPM decided to move stuff to a different place, namely inside of a /usr/share/php/PEAR directory, instead of just /usr/share/PEAR. So change your include path and be done with it. On Wed, March 5, 2008 11:59 am, Stephen wrote: > My LAMP is on Ubuntu 7.10 > > I am trying to use PEAR, for the first

Re: [PHP] Universaly Accepted Naming Conventions..?

2008-03-07 Thread Richard Lynch
On Wed, March 5, 2008 1:06 pm, John Papas wrote > Are there any in PHP? > > It seems like there are those that draw upon the C/unix naming > conventions and those that follow the Java/OO style. There are several popular "standards" out there. The PEAR coding standard and the Zend one tend to get

Re: [PHP] How to measure memory leakage/usage in PHP?

2008-03-07 Thread Richard Lynch
On Wed, March 5, 2008 9:57 pm, Zareef Ahmed wrote: >I am looking into the concepts behind memory management in PHP. > Which > kind of approach will be best to measure memory leakage or usage in a > PHP > script? > > I can measure my apache process but is there any way by which I can > know > wh

Re: [PHP] Re: Transferring files between computers using php

2008-03-07 Thread Richard Lynch
On Thu, March 6, 2008 11:10 pm, Chris wrote: > >> If ssh keys are installed on the remote hosts then scp works >> transparently and you just stick the scp in a cron job. Am I >> missing >> something? > > Yeh - looks like you have to log in to "A" and then it uses > key-forwarding to let you log

Re: [PHP] Transferring files between computers using php

2008-03-07 Thread Richard Lynch
On Thu, March 6, 2008 7:58 pm, Rahul wrote: > I have a small file to be transferred between two computers every few > seconds. Use rsync -- Some people have a "gift" link here. Know what I want? I want you to buy a CD from some indie artist. http://cdbaby.com/from/lynch Yeah, I get a buck. So?

Re: [PHP] Transferring files between computers using php

2008-03-07 Thread Shawn McKenzie
Peter Ford wrote: > Aschwin Wesselius wrote: >> Rahul wrote: >>> I have a small file to be transferred between two computers every few >>> seconds. I'm using unix with a bare bones version of php, i.e. just >>> the original thing that gets installed when I run "yum install php". >>> As there is no

Re: [PHP] CVS Scripts

2008-03-07 Thread Eric Butera
On Fri, Mar 7, 2008 at 3:58 AM, Adrian Walls <[EMAIL PROTECTED]> wrote: > I am going to code this up myself with wrappers around the cvs commands I > need. Good luck! Sounds like that might be the best solution since you have such specific needs. The whole signature thing was just some friendly

Re: [PHP] Transferring files between computers using php

2008-03-07 Thread Aschwin Wesselius
Peter Ford wrote: Here's overkill: use "fuse" to make two sshfs filesystems :) # Make some directories to mount the remote stuff onto mkdir -p mount_point_for_B mkdir -p mount_point_for_C # Use 'fuse' to make SSHFS mounts from the remotes to the new directories sshfs B:/path_to_where_the_file_i

Re: [PHP] Transferring files between computers using php

2008-03-07 Thread Peter Ford
Aschwin Wesselius wrote: > Rahul wrote: >> I have a small file to be transferred between two computers every few >> seconds. I'm using unix with a bare bones version of php, i.e. just >> the original thing that gets installed when I run "yum install php". >> As there is no webserver on any of these

RE: [PHP] CVS Scripts

2008-03-07 Thread Adrian Walls
Thanks Chris and to everyone else who actually replied with some useful info, it's much appreciated. I am going to code this up myself with wrappers around the cvs commands I need. It would have been nice if there was some sort of framework for doing this already. The reason I joined this lis

Re: [PHP] Transferring files between computers using php

2008-03-07 Thread Aschwin Wesselius
Rahul wrote: I have a small file to be transferred between two computers every few seconds. I'm using unix with a bare bones version of php, i.e. just the original thing that gets installed when I run "yum install php". As there is no webserver on any of these machines, I was wondering if there