[PHP] Installing both static and dynamic modules

2002-10-08 Thread Jonathan Duncan
le and the static cgi module on my server and I haven't had any problems. I have the cgi module for running php scripts as cron jobs. Anyone know why the statement? Thanks, Jonathan Duncan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: mysql_num_rows error

2002-10-08 Thread Jonathan Duncan
Omar, I would first take the select statement and try running it in mysql to make sure it actually runs (substituting a valid value for the variable of course). Then if it has problems you can see what error messages mysql gives you. Good Luck, Jonathan Duncan "Omar Campos" <[EM

Re: [PHP] Installing both static and dynamic modules

2002-10-09 Thread Jonathan Duncan
because I run both the Apache module and the > JD> static cgi module on my server and I haven't had any problems. I have the > JD> cgi module for running php scripts as cron jobs. > > JD> Anyone know why the statement? > > JD> Thanks, > JD> Jonathan Duncan > &

[PHP] Multi-Dimensional Arrays

2002-10-09 Thread Jonathan Duncan
;"; $brand="Brand2"; $itemnumber="123456"; $itemname="Another Item Name"; $itemqty=9; array_push($cartArray, array($itemnumber=>"$brand", "$itemqty", "$itemname")); print_r($cartArray).""; echo $cartArray[0][0].""; Thank you, Jonathan Duncan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Multi-Dimensional Arrays

2002-10-10 Thread Jonathan Duncan
Yeah, you rock, that works great. Not to mention you have a great name. Jonathan Duncan "Jonathan Sharp" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > try doing this for each item: > > $cartArray[] = array('itemnum

[PHP] Parse an email message for content

2002-06-10 Thread Jonathan Duncan
the link that is provided and then have the article abstract listed below. Can anyone point me in the correct direction on how I can learn how to do this? Thank you very much, Jonathan Duncan The daily email message I get comes in the following format: *-*-*-* Start Email Message *-*-*-* EMAIL

Re: [PHP] Parse an email message for content

2002-06-10 Thread Jonathan Duncan
uot; delimiter that comes in the message. However, I do not know where to start. Any pointers? Thanks, Jonathan Duncan "Ed Lazor" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > You'll need to have a cgi version of PHP

Re: [PHP] Parse an email message for content

2002-06-10 Thread Jonathan Duncan
Michael, Wow, correct you are: http://www.php.net/manual/en/ref.mailparse.php Thank you, I will definitely see what that has to offer me. Jonathan Duncan "Michael Geier" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > while not

[PHP] Header won't redirect

2003-09-19 Thread Jonathan Duncan
com/index.php?pagename=checkout If I change the header to redirect to a location without any variable directive like this http://www.routerbitworld.com/index.php ...works fine. Why can't I send a variable this way? Thanks, Jonathan Duncan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Brain cramp with arrays

2003-09-19 Thread Jonathan Duncan
Mike, Have you looked at the Next: http://us2.php.net/manual/en/function.next.php and Previous: http://us2.php.net/manual/en/function.prev.php ... functions? Regards, Jonathan Duncan "Mike Morton" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I am having

Re: [PHP] Re: Header won't redirect

2003-09-19 Thread Jonathan Duncan
Marek and Rob, Doh! That was it. I am still finding things that I used to assign globally. It is a good thing, but it makes for a bit of work. Thanks to Jay too. I appreciate everyone's help. Have a good one, Jonathan Duncan "Marek Kilimajer" <[EMAIL PROTECTED]>

Re: [PHP] Re: Header won't redirect

2003-09-19 Thread Jonathan Duncan
Jay, Try replying to the group so that your contributions stay with the thread instead of being orphaned and lost. Regards, Jonathan Duncan "Jay Blanchard" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] [snip] Jay, good guess, but wrong! While register_globals d

Re: [PHP] Re: Header won't redirect

2003-09-19 Thread Jonathan Duncan
Perhaps it is just Outlook Express but many of your replies are showing as ophans. Jonathan "Jay Blanchard" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] [snip] Try replying to the group so that your contributions stay with the thread instead of being orphaned and lost. [/snip] I

[PHP] Errors running PHP from command line

2003-11-07 Thread Jonathan Duncan
sions/current/namazu.so" in Unknown on line 0 localhost # Thanks, Jonathan Duncan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Errors running PHP from command line

2003-11-13 Thread Jonathan Duncan
Thanks. Turns out I just needed to comment some things out of my php.ini. Jonathan Jake McHenry <[EMAIL PROTECTED]> said: > > -Original Message- > > From: Jonathan Duncan [mailto:[EMAIL PROTECTED] > > Sent: Friday, November 07, 2003 7:04 PM > > To: [EMAI

[PHP] Parsing Content

2002-03-04 Thread Jonathan Duncan
s and their text and paste them into a new file. This project may be bigger than a bread box, so any ideas or pointers to resources that could help me learn how to do this would much appreciated. Thank you, Jonathan Duncan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Parsing Content

2002-03-05 Thread Jonathan Duncan
That is perfect, thank you Philip and Erik. I forgot what a great resource DevShed is. Thanks again, Jonathan Duncan "Erik Price" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED].; > > On Monday, March 4, 2002, at 06:10 PM, Jonathan Duncan wrote: > >

[PHP] Dynamically creating PHP before it is executed

2002-03-08 Thread Jonathan Duncan
yone have any idea how to do this an easier way? Thanks Jonathan Duncan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Dynamically creating PHP before it is executed

2002-03-08 Thread Jonathan Duncan
ol'];"; // Set the measurement columns $setitem .= "\$$col"; } Afterwhich I write $headers to a file, $setitemvar to a file, $setitem to a file and call the page that is supposed to include these files I have just writed so that the PHP code that I have just dynamically written wi

Re: [PHP] Dynamically creating PHP before it is executed

2002-03-08 Thread Jonathan Duncan
Sam, The questions you write are good. I am not sure why they can't. I just assumed that if I make lines of code like: \$$col and populate them like: $column1 $column2 $column3 that I would have to then evaluate them on a different page. Am I incorrect? Thanks, Jonathan D

[PHP] Processing Code created on the fly

2002-03-29 Thread Jonathan Duncan
s the contents of the variables, which is raw PHP code, but does not process it. The results is that the raw PHP code that is in the variables doesn't get process, but is output at text on the resulting HTML page. Can anyone help me figure this out? I would really appreciate it. Thanks in advance

Re: [PHP] Processing Code created on the fly

2002-03-29 Thread Jonathan Duncan
Jason, That is a good point and that being the case, following is my code. Thanks, Jonathan Duncan *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* $account $service"; This is file that calls the above function: (The lines with the *s are supposed to take the data from the variables and

Re: [PHP] Processing Code created on the fly

2002-03-29 Thread Jonathan Duncan
mes. Any other ideas or examples on how to implement eval on this? Thanks for the help, Jonathan Duncan "Jason Wong" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]... > On Saturday 30 March 2002 11:16, Jonathan Duncan wrote: > > > > These variables are p

Re: [PHP] PHP Frameworks - Opinion

2006-08-03 Thread Jonathan Duncan
On Tue, 1 Aug 2006, Gabe wrote: What's the common consensus as to a solid PHP framework to use for application development? There seems to be a number of them out there, but I'm not sure which one's are the most robust, actively developed, secure, etc etc. Thoughts? I echo others in th

Re: [PHP] Re: PHP Frameworks - Opinion

2006-08-03 Thread Jonathan Duncan
On Fri, 4 Aug 2006, Jens Kleikamp wrote: Matt Todd wrote: Because of this, I determined to build my own framework. This was a few months ago, and Canvas[1] was the result of my labor. I produced this framework while working on numerous projects at the university I work at. This allowed me to

Re: [PHP] Best way to get PHP5

2006-08-09 Thread Jonathan Duncan
On Wed, 9 Aug 2006, Chris W. Parker wrote: Hello, Generally (well, actually 100%) I just use whatever version of PHP is included with a certain distro (Redhat pre-Fedora, Fedora Core, CentOS). None of the versions I've used have come with PHP5 and I'd really like to get with the times and use

RE: [PHP] Best way to get PHP5

2006-08-09 Thread Jonathan Duncan
On Wed, 9 Aug 2006, Chris W. Parker wrote: Jack Gates on Wednesday, August 09, 2006 10:16 AM said: On Wednesday 09 August 2006 12:02, Chris W. Parker wrote: I know that Fedora Core 5 offers PHP 5.1.2 but I've heard some negative things about it in general (FC5).

RE: [PHP] Best way to get PHP5

2006-08-10 Thread Jonathan Duncan
On Wed, 9 Aug 2006, Chris W. Parker wrote: Jonathan Duncan <mailto:[EMAIL PROTECTED]> on Wednesday, August 09, 2006 3:55 PM said: If you want to really learn Linux, try Gentoo. If you just want a very good and easy to use Linux, go with SuSE. To keep this related to the ques

[PHP] Why Should I Use Zend Optimizer?

2006-03-27 Thread Jonathan Duncan
I posted this on the Zend.com forums but have not been able to get a response yet. So I decided to ask the people that know. I do not understand the need for an optimizer. What exactly is Zend Optimizer optimizing? If it is changing my code, then how about if I just learn how to code better

[PHP] Blank Page instead of Errors

2004-03-19 Thread Jonathan Duncan
TICE) error_reporting(E_ALL & E_PARSE & E_NOTICE) ... and some others. Still nothing. Is there something that I am missing? Why can I not see any error messages? Thank you, Jonathan Duncan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Blank Page instead of Errors

2004-03-19 Thread Jonathan Duncan
GENIUS!! Why didn't I think of that. You were correct. The php.ini file that was being used was elsewhere. I found it, and restarted apache and now I get errors! I knew it was something simple, it always is, after the fact. Thanks again! Jonathan Duncan "John W. Holmes" &l

Re: [PHP] Page that checks if a user exists on a remote system

2004-12-01 Thread Jonathan Duncan
Perhaps this gets more into server administration, but it is mixed so much into the php script, which is why I am asking it here. Yes, sudo was one of my first thoughts. As far as the implementation goes though. How do you work the remote access bit? Using ssh do you use the ssl cert switch

Re: [PHP] Page that checks if a user exists on a remote system

2004-12-01 Thread Jonathan Duncan
I have put this in my sudoers file using visudo to edit it: www ALL = NOPASSWD: /usr/local/bin/sudo puser, (puser) NOPASSWD: /usr/bin/ssh /usr/bin/id However the www user is still being asked for a password. Is this too off topic for this list? Jonathan "Jonathan Duncan" <[EM

Re: [PHP] Page that checks if a user exists on a remote system

2004-12-01 Thread Jonathan Duncan
Looks like I was missing a comma after the ssh command and before the id command. Jonathan "Jonathan Duncan" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] >I have put this in my sudoers file using visudo to edit it: > > www ALL = NOPASSWD: /usr/loc

RE: [PHP] Page that checks if a user exists on a remote system

2004-12-02 Thread Jonathan Duncan
ike this: $idResults = `su admin | ssh [EMAIL PROTECTED] id bigbob 2>&1`; echo "id: (".$idResults.")\r\n"."\r\n"; if (ereg("no such user", $idResults)) { echo 'username is available!';

Re: [PHP] Page that checks if a user exists on a remote system

2004-12-03 Thread Jonathan Duncan
Ok, so this is what I have done: *-*-*-*-*-*-*-*-*-*-* $idResults = `sudo -u admin ssh [EMAIL PROTECTED] id usertocheck 2>&1`; echo "id: (".$idResults.")\r\n"."\r\n"; if (ereg("no such user", $idResults)) { echo 'id blah!'; } *-*-*-*-*-*-*-*-*-*-* And, here are the results that I get when I

Re: [PHP] Page that checks if a user exists on a remote system

2004-12-03 Thread Jonathan Duncan
am trying to do this? Has not anyone else wanted that functionality also? Thank you, Jonathan Duncan On Fri, 3 Dec 2004, Christophe Chisogne wrote: Jonathan Duncan wrote: I will also be doing a remote command to add a user to the remote system (ServerB) from the same PHP script. If you want to

RE: [PHP] Page that checks if a user exists on a remote system

2004-12-03 Thread Jonathan Duncan
ty is very important. I will post back with my results. Thanks, -- Jonathan Duncan http://www.nacnud.com On Fri, 3 Dec 2004, Stefan wrote: Hi! Have you thougt of writing the userdata to a database and running a perl script by cron to do the rest? This would be an interesting opinion for security purpo

Re: [PHP] Page that checks if a user exists on a remote system

2004-12-03 Thread Jonathan Duncan
ED]> wrote in message news:[EMAIL PROTECTED] > On Saturday 04 December 2004 02:47, Jonathan Duncan wrote: > > [snip] > >> rethink my strategy. Thanks to everyone. Richard, I consider myself a >> highly security conscious person, but you are making me >> think more l

Re: [PHP] Page that checks if a user exists on a remote system

2004-12-06 Thread Jonathan Duncan
"user_email_account_management_requests" and the remote script with check that for any tasks it needs to do. Thanks again to all those who helped me with this. I have learned quite a bit and enjoyed it. Best regards, -- Jonathan Duncan http://www.nacnud.com On Mon, 6 Dec 2004, Richard Lync

[PHP] php variables in a backtick command

2004-12-11 Thread Jonathan Duncan
I am trying to run a shell command with backticks. However, I get a parse error. Is it because I have an array variable in there? $result = `adduser -l=$dist_id -p=$user['password'] --f="$user['name_first'] $user['name_last']"`; Do I need to assign the value to a regular variable before I put

Re: [PHP] php variables in a backtick command

2004-12-11 Thread Jonathan Duncan
ell. What do you need the > shell for? You might(albeit unlikely) also come across a situation > where the shell is something like /bin/false, or /bin/falselogin, or > /bin/scponly, or basicly something that doesn't particularly work that > well as a shell. > > Rory > > On S

Re: [PHP] php variables in a backtick command

2004-12-11 Thread Jonathan Duncan
---- Original Message - > From: "Jonathan Duncan" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Saturday, December 11, 2004 8:09 PM > Subject: [PHP] php variables in a backtick command > > >> I am trying to run a shell command with backticks.

[PHP] Re: php variables in a backtick command

2004-12-11 Thread Jonathan Duncan
So I tried it that way and it worked, that is annoying though, having to add extra lines to the code and assign the contents of one variable to another. Any way around this? Jonathan "Jonathan Duncan" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] >I am tr

[PHP] Something is messing up the php output

2005-06-22 Thread Jonathan Duncan
I have a site that has this problem every once in a while, and seemingly randomly. It is a database driven site, as indicated by the error. This same page when loaded numerous times will sometimes work just fine, and then sometimes it will give an error message like this:

Re: [PHP] Something is messing up the php output

2005-06-22 Thread Jonathan Duncan
:[EMAIL PROTECTED] >I bet if you connect using the IP directly it will solve your problem. > > > > Thanks, > > Matt Babineau > Criticalcode > 858.733.0160 > [EMAIL PROTECTED] > http://www.criticalcode.com > > -Original Message- > From: Jonathan Dun

Re: [PHP] Something is messing up the php output

2005-06-22 Thread Jonathan Duncan
Yes, it has happened on different servers, none of them is bleeding edge, still using Apache 1.x and PHP 4.3.x. The sites are not using any character sets other than default. The machines are in a heat controlled environment and monitored for change so I would know if there was that kind of pr

Re: [PHP] What software do you use for writing PHP?

2005-12-15 Thread Jonathan Duncan
On Tue, 6 Dec 2005, Eric Gorr wrote: Quoting Torgny Bjers <[EMAIL PROTECTED]>: I recommend Zend Studio if you can afford it since it has a GUI for both Windows and Linux And for those interested in using a real computer, it's GUI also runs under MacOSX. http://zend.com/store/products/zen

Re: [PHP] What software do you use for writing PHP?

2005-12-15 Thread Jonathan Duncan
On Thu, 15 Dec 2005, Richard Davey wrote: On 15 Dec 2005, at 18:31, Jonathan Duncan wrote: And for those interested in using a real computer, it's GUI also runs under MacOSX. http://zend.com/store/products/zend-studio/requirements.php Actually, it does not. I installed it on m

[PHP] PHP not seeing MySQL functions

2006-01-16 Thread Jonathan Duncan
I just got a new web server with RedHat Enterprise Linux 4 on it. It came with MySQL 4.1.x and PHP 4.3.9 on it. I uninstalled the MySQL 4 and put MySQL 5 on it. When I run a PHP script that has a DB connection in it I get: Fatal error: Call to undefined function: mysql_connect() in /var/ww

[PHP] Downloading very large files

2006-02-13 Thread Jonathan Duncan
I have an application that delivers files to the client browser. These files a very large video files. 250mb+ each. I have two options: 1) I could have PHP deliver the file with "fread", or 2) I could have PHP present a link to the file. However, for security purposes, I would rather not h

Re: [PHP] Downloading very large files

2006-02-13 Thread Jonathan Duncan
lable, and then give the right people the encryption key. Put it behind a .htaccess file allowing only the IP of the correct person - remove the .htaccess entry after a certain lengh of time. Why are the videos secure? Copyright? Privacy? Bandwidth? On 2/13/06, Jonathan Duncan <[EMAIL PROTECTED