Re: [PHP] Re: Good Free PHP Editor?
I'd definitely agree with that.. I've been using EditPlus for quite a while now, and have no complaints.. ""PHPBeginner.com"" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Have you tried EditPlus? www.editplus.com > > they are especially good for search, replace function and highlighting is > also very easy to use, you can even define your own functions to highlight. > > > > Sincerely, > > Maxim Maletsky > Founder, Chief Developer > > PHPBeginner.com (Where PHP Begins) > [EMAIL PROTECTED] > www.phpbeginner.com > > > > > -Original Message- > From: The Arting Starvist [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, March 13, 2001 1:04 AM > To: Andrew Halliday; [EMAIL PROTECTED] > Subject: [PHP] Re: Good Free PHP Editor? > > > I recently downloaded a newer EditPad Lite version that offers highlighting > and other nice improvements over the "classic" EditPad. > > m > > -Original Message- > From: Andrew Halliday <[EMAIL PROTECTED]> > To: [EMAIL PROTECTED] <[EMAIL PROTECTED]> > Date: Monday, March 12, 2001 12:04 AM > Subject: Good Free PHP Editor? > > > >Does anyone know of a good PHP enabled editor that fits the following > >criteria:? > > > >(in order of importance) > >- Is free > >- Runs under Windows > >- Has colors (syntax highlighting) > >- Can edit multiple files (ie multi threaded) > >- Reports line numbers > >- Has good search & replace functionality > > > >??? > > > >Ive been using editpad up till now but my code is starting to get so large > >that ill need syntax highlighting soon... > > > >AndrewH > > > > > > > -- > 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 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 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] OT question..
I think he's referring to the comment below.. ;) Ryan Christensen OlyPen Technical Support [EMAIL PROTECTED] 360.457.3000 800.303.8696 > -Original Message- > From: Jon Haworth [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, May 08, 2001 9:17 AM > To: '[EMAIL PROTECTED]' > Subject: RE: [PHP] OT question.. > > > But he IS the webmaster > > Cheers > Jon > > > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Sent: 08 May 2001 17:14 > To: [EMAIL PROTECTED]; Kelly Meeks; '[EMAIL PROTECTED]' > Subject: Re: [PHP] OT question.. > > > On Tue, May 08, 2001 at 06:10:18PM +0200, Christian Reiniger wrote: > > On Tuesday 08 May 2001 16:40, Kelly Meeks wrote: > > > Christian Reiniger > > LGDC Webmaster (http://sunsite.dk/lgdc/) > > > > What luck for the rulers that men do not think. > > > > - Adolf Hitler > > Could you please remove that signature. Thanks. > > -Egon > > > ** > 'The information included in this Email is of a confidential > nature and is > intended only for the addressee. If you are not the intended addressee, > any disclosure, copying or distribution by you is prohibited and may be > unlawful. Disclosure to any party other than the addressee, whether > inadvertent or otherwise is not intended to waive privilege or > confidentiality' > > ** > > -- > 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 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] conversion script
Would anyone be able to help me out with this: I have quite a few (almost 2000) .html files that I would like to change over to the .php extension. Past that, I would also like to add text to the top & bottom of each page (for template purposes.) Does anyone know of a script that would automate this process, going through all the documents in a directory, and making the needed changes? Thanks in advance.. ---- Ryan Christensen OlyPen Technical Support [EMAIL PROTECTED] 360.457.3000 800.303.8696 -- 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] Old PHP.net website..
Hi, I took some time one night to get a good portion of it downloaded, and can send you a textfile of the htm/js that's outputted once the server generates it.. (since you probably want that instead of the php-ized version..) Busy at the moment, so email me later tonight. Thanks! Ryan Christensen OlyPen Technical Support [EMAIL PROTECTED] 360.457.3000 800.303.8696 - Original Message - From: Nathan Handler <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, May 09, 2001 3:19 PM Subject: Re: [PHP] Old PHP.net website.. > Still lost.. where in here would it be...this looks more like the new > website stuff...where would I find how to put on that pop-up thing for menus > like in the old website? > > Best Regards, > > Nathan Handler > - Original Message - > From: <[EMAIL PROTECTED]> > To: "Ender" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> > Sent: Wednesday, May 09, 2001 5:06 PM > Subject: Re: [PHP] Old PHP.net website.. > > > > On Wed, May 09, 2001 at 04:59:41PM -0500, Ender wrote: > > > Does anyone remember the previous php.net website where you would hold > > > your cursor over a menu bar and it would pop up info? Does anyone know > > > how to do that or where the script for it is? > > > > cvs.php.net -> phpweb > > > > -Egon > > > > -- > > LinuxTag, Stuttgart, Germany: July 5-8 2001: http://www.linuxtag.de/ > > All known books about PHP and related books: http://php.net/books.php > > Concert Band of the University of Hohenheim: http://www.concert-band.de/ > > First and second bestselling book in German: http://www.php-buch.de/ > > > > -- > > 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 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 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] Old PHP.net website..
If you want it quicker though, I would suggest what Egon says.. it's not that hard to find. ttyl, Ryan Ryan Christensen OlyPen Technical Support [EMAIL PROTECTED] 360.457.3000 800.303.8696 - Original Message - From: Nathan Handler <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, May 09, 2001 3:19 PM Subject: Re: [PHP] Old PHP.net website.. > Still lost.. where in here would it be...this looks more like the new > website stuff...where would I find how to put on that pop-up thing for menus > like in the old website? > > Best Regards, > > Nathan Handler > - Original Message - > From: <[EMAIL PROTECTED]> > To: "Ender" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> > Sent: Wednesday, May 09, 2001 5:06 PM > Subject: Re: [PHP] Old PHP.net website.. > > > > On Wed, May 09, 2001 at 04:59:41PM -0500, Ender wrote: > > > Does anyone remember the previous php.net website where you would hold > > > your cursor over a menu bar and it would pop up info? Does anyone know > > > how to do that or where the script for it is? > > > > cvs.php.net -> phpweb > > > > -Egon > > > > -- > > LinuxTag, Stuttgart, Germany: July 5-8 2001: http://www.linuxtag.de/ > > All known books about PHP and related books: http://php.net/books.php > > Concert Band of the University of Hohenheim: http://www.concert-band.de/ > > First and second bestselling book in German: http://www.php-buch.de/ > > > > -- > > 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 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 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] PC MAG article
Lol.. quoted.. "PHP proponents argue that abstraction layers dumb down and slow down access to databases, but we think they can increase developer productivity, facilitate application migration, and cut training costs. " Cut training costs? Yeah.. let's use an inefficient system just so we can save some money? (even though PHP is already free!!!) hehe.. ---- Ryan Christensen OlyPen Technical Support [EMAIL PROTECTED] 360.457.3000 800.303.8696 - Original Message - From: Philip Olson <[EMAIL PROTECTED]> To: Mike <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Wednesday, May 09, 2001 5:26 PM Subject: Re: [PHP] PC MAG article > for informational purposes, it can be seen here : > > http://www.zdnet.com/pcmag/stories/reviews/0,6755,2713481,00.html > > no comment. :) > > regards, > philip > > > On Wed, 9 May 2001, Mike wrote: > > > As a devoted php programmer I was surprised how bad PC MAG blasted php this > > month.It sound as if it doesnt scale very well(Ive never had more than a few > > people on my site at once).Any comments??? > > > > Thanks > > Mike > > [EMAIL PROTECTED] > > > > > > > > > > -- > > 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 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 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] Perl 2 PHP
Does anyone know of a Perl to PHP converter? (I'm just about to start searching the net.. but wanted to see if I could save myself some time by looking here..) Thanks! Ryan Christensen -- 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] PHP Editor
I personally use EditPlus (v2).. I really like it's syntax highlighting.. I've also heard good things about PHPed.. ---- Ryan Christensen - Original Message - From: Daniel <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, May 09, 2001 4:52 PM Subject: [PHP] PHP Editor > Hi, > > Just wondering whether you guys use any type of editor when programming in > PHP? if so what have you found to be useful? > > > Thanks > > > Daniel > > > -- > 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 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] Uptime script?
I know I've seen one before, and before I go write my own version, does anyone know of a PHP script that echoes the uptime of a server (Linux) in days,hour,minutes, etc? Thanks! Ryan Christensen -- 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] Uptime script?
That's what I was wondering.. hehe.. I just want to be able to show users that the server is stable.. (this is for a server-status page.. shows general information.. only for members of the site anyways.) Ryan > -Original Message- > From: Christian Reiniger [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, May 16, 2001 11:19 AM > To: Matthew Schroebel; [EMAIL PROTECTED] > Subject: Re: [PHP] Uptime script? > > > On Wednesday 16 May 2001 15:16, Matthew Schroebel wrote: > > Why would you want to advertise that? Seems like you would be leaking > > information to crackers ... > > It's very difficult to imagine how 'uptime' information could be used to > cause mischief... > > chris@server:~$ uptime > 8:55pm up 45 days, 13:42, 1 user, load average: 0.07, 0.03, 0.00 > > -- > Christian Reiniger > LGDC Webmaster (http://sunsite.dk/lgdc/) > > ...1000100011010101101010110100111010113... > > -- > 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 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] Uptime script?
Take a machine down, knowing it's uptime? (I.e., it's easier to hack a box that's been up for 5 months.. as opposed to one that hasn't been??) Easy to fake.. yes.. however if that were the case, I would be the one doing the faking.. in which case I wouldn't be asking.. :) ---- Ryan Christensen - Original Message - From: Matthew Schroebel <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Wednesday, May 16, 2001 5:32 PM Subject: Re: [PHP] Uptime script? > If you were trying to take a machine down, it might be useful to know it. > Plus it's easily faked. > > > It's very difficult to imagine how 'uptime' information could be used to > > cause mischief... > > > > -- > 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 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] Uptime script?
No.. as I said in my original post, this is on Linux.. so I was actually wondering how it would be a risk in Linux.. not win.. Ryan Christensen OlyPen Technical Support [EMAIL PROTECTED] 360.457.3000 800.303.8696 - Original Message - From: MaD dUCK <[EMAIL PROTECTED]> To: Ryan Christensen <[EMAIL PROTECTED]> Cc: Matthew Schroebel <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Wednesday, May 16, 2001 6:45 PM Subject: Re: [PHP] Uptime script? > also sprach Ryan Christensen (on Wed, 16 May 2001 06:35:32PM -0700): > > Take a machine down, knowing it's uptime? (I.e., it's easier to > > hack a box that's been up for 5 months.. as opposed to one that > > hasn't been??) > > um, why? > please don't answer if you use windoze for then the answer is obvious. > no intention to flame or whatever, just reading bugtraq... > > martin; (greetings from the heart of the sun.) > \ echo mailto: !#^."<*>"|tr "<*> mailto:"; net@madduck > -- > "this week dragged past me so slowly; > the days fell on their knees..." > -- david bowie > > -- > 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 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] Trying to create a site-template system.. and..
First.. here's the synopsis of what I'm trying to do: I'm working on a site where everything is based off a really simple template system I'm using, see the chunk of my index page that deals with the plates for example: - $tmpl_file = fopen ("./template.htm", "r"); $tmpl = fread($tmpl_file,16000); $tmpl = str_replace("{title}", "$title", $tmpl); $tmpl = str_replace("{header}", "$header", $tmpl); $tmpl = str_replace("{header_url}", "$header_url", $tmpl); $tmpl = str_replace("{header_home}", "$header_home", $tmpl); $tmpl = str_replace("{header_cat}", "$header_cat", $tmpl); $tmpl = str_replace("{header_caturl}", "$header_caturl", $tmpl); $tmpl = str_replace("{header_title}", "$header_title", $tmpl); $tmpl = str_replace("{pretext}", "$pretext", $tmpl); $tmpl = str_replace("{content}", "$content", $tmpl); $tmpl = str_replace("{content_source}", $page_source, $tmpl); eval("echo \$tmpl;"); - The template file looks like "blah.. blah.. {title}.." the code above then takes the {blah} tags, and turns them into variables, which are defined in the actual content pages (which are included (via an include(); function..) The content files appear as: - $title = "testing"; $content = "etc"; - And so on.. My problem is.. that when I do something like - $content = show_source("/path/to/file"); // or $content = "Blah.. blah.. ".include("/some/file").".. some more blah.."; - It includes the files (or executes the code that is assigned to the variable), however it all appears OUTSIDE the template. To see what I'm saying, see http://olypen.com/ryan/go/main/news or http://olypen.com/ryan/go/source/source_index .. that will give you a better idea as to what I'm saying. Anyone have any thoughts/explanations as to why this is happening? I can provide more source.. or info if needed. Thanks in advance! -Ryan -- 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]
FW: [PHP] Trying to create a site-template system.. and..
Just a refresher.. I never got any feedback on this, and would appreciate any input anyone has. Thanks! Ryan > -Original Message- > From: Ryan Christensen [mailto:[EMAIL PROTECTED]] > Sent: Friday, October 26, 2001 6:03 PM > To: [EMAIL PROTECTED] > Subject: [PHP] Trying to create a site-template system.. and.. > > > First.. here's the synopsis of what I'm trying to do: > > I'm working on a site where everything is based off a really > simple template system I'm using, see the chunk of my index > page that deals with the plates for example: > > - > $tmpl_file = fopen ("./template.htm", "r"); > $tmpl = fread($tmpl_file,16000); > $tmpl = str_replace("{title}", "$title", $tmpl); > $tmpl = str_replace("{header}", "$header", $tmpl); > $tmpl = str_replace("{header_url}", "$header_url", $tmpl); > $tmpl = str_replace("{header_home}", "$header_home", $tmpl); > $tmpl = str_replace("{header_cat}", "$header_cat", $tmpl); > $tmpl = str_replace("{header_caturl}", "$header_caturl", > $tmpl); $tmpl = str_replace("{header_title}", > "$header_title", $tmpl); $tmpl = str_replace("{pretext}", > "$pretext", $tmpl); $tmpl = str_replace("{content}", > "$content", $tmpl); $tmpl = str_replace("{content_source}", > $page_source, $tmpl); > > eval("echo \$tmpl;"); > - > > The template file looks like "blah.. blah.. {title}.." the > code above then takes the {blah} tags, and turns them into > variables, which are defined in the actual content pages > (which are included (via an include(); function..) > > The content files appear as: > > - > $title = "testing"; > $content = "etc"; > - > > And so on.. > > My problem is.. that when I do something like > > - > $content = show_source("/path/to/file"); > // or > $content = "Blah.. blah.. ".include("/some/file").".. some > more blah.."; > - > > It includes the files (or executes the code that is assigned > to the variable), however it all appears OUTSIDE the > template. To see what I'm saying, see > http://olypen.com/ryan/go/main/news or http://olypen.com/ryan/go/source/source_index .. that will give you a better idea as to what I'm saying. Anyone have any thoughts/explanations as to why this is happening? I can provide more source.. or info if needed. Thanks in advance! -Ryan -- 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 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] Trailing "/" and Apache
That's likely not the problem.. More the fact that if you don't have the "ServerName" directive set to match the ip address you're accessing it with in this case.. (unless you have DNS pointing a domain to it that's configured as a vhost). So, try adding the line: ServerName 209.204.111.121 To your Apache config.. And watch the pages fly :) -Ryan > -Original Message- > From: Miles Thompson [mailto:[EMAIL PROTECTED]] > Sent: Monday, October 29, 2001 5:44 PM > To: Todd Cary; [EMAIL PROTECTED] > Subject: Re: [PHP] Trailing "/" and Apache > > > Todd, > > What is the DirectoryIndex set to in httpd.conf? Normally > it's something like > DirectoryIndex index.html, index.php (or whatever file you > want served as > the home page) > > Miles > > At 04:55 PM 10/29/01 -0800, Todd Cary wrote: > >With Linux and Apache, if I use the IP of > http://209.204.111.121/mydir, > >the index.html file is not > accessed. However, > >http://209.204.111.121/mydir/ does access it. This problem does not > >exist with IIS, so I am curious if there is some parameter > in Apache I > >can change. > > > >Thank you... > > > >Todd > > > >-- > >Todd Cary > >Ariste Software > >[EMAIL PROTECTED] > > > -- > 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 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] site last updated
You can do this in a per-page basis w/: $modified = stat("yourfile.html"); echo date("l, F dS",$modified[9]); (As with most things ;).. this can be found in the manual. Check @ php.net/stat for more info.. %Ryan > -Original Message- > From: oliver walkhoff [mailto:[EMAIL PROTECTED]] > Sent: Saturday, November 03, 2001 10:26 AM > To: [EMAIL PROTECTED] > Subject: [PHP] site last updated > > > hi all > > i am looking for a simple way to find (and then display) the > date of the last change to an entire web site. an example is > in the footer on > php.net: > > "Last updated: Sat Nov 3 13:10:40 2001 EST" > > thanks for your help > oliver walkhoff > > > -- > 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 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: Re: Re: How do I convert from perl to php?
Or.. $required = array($name,$addr,$phone); foreach($required as $x) { if(!$x) { print "error"; } } ~Ryan - Original Message - From: "Philip Hallstrom" <[EMAIL PROTECTED]> To: "Brandon Lamb" <[EMAIL PROTECTED]> Cc: "PHP List" <[EMAIL PROTECTED]> Sent: Tuesday, November 20, 2001 2:37 PM Subject: [PHP] Re: Re: Re: How do I convert from perl to php? > No, but this: > > $required = array('name','address','phone'); > foreach( $required as $key ) { > if( empty($HTTP_POST_VARS[$key]) ) { > print("Sorry, you left key empty."); > } > } > > should work. > > > On Tue, 20 Nov 2001, Brandon Lamb wrote: > > > What about this? > > > > $required = array('name','address','phone'); > > while ( list($key, $value) = each ($required) ) { > > if ( empty($value) ) { > > print("Sorry, you left $key empty."); > > } > > } > > > > - Original Message - > > From: "Philip Hallstrom" <[EMAIL PROTECTED]> > > Cc: <[EMAIL PROTECTED]> > > Sent: Tuesday, November 20, 2001 2:22 PM > > Subject: Re: Re: How do I convert from perl to php? > > > > > > You could do something like this... there are lots of ways to validate > > your data... > > > > while( list($key, $value) = each($HTTP_POST_VARS) ) { > > if( empty($value) ) { > > print("Sorry, you left $key empty."); > > } > > } > > > > > > > > > > -- > > 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 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 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] PHP shell scripting..
I have some questions about using PHP as a shell scripting language... mainly how you pass arguments to a script on the command line. Say I'm using: -- #!/usr/local/bin/php -q -- How do I define test from the command line (as an argument while executing the script)? Thanks in advance for the help! - Ryan Christensen -- 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] PHP shell scripting..
Thanks.. that helps out a lot. Next question.. is there a way I can prompt for input? For example.. have a prompt "Name: ".. that waits for the user to enter their name.. and then assignes whatever they enter to a variable. Think you can help? :) Thanks... - Ryan Christensen > -Original Message- > From: Kees Hoekzema [mailto:[EMAIL PROTECTED]] > Sent: Sunday, July 22, 2001 11:41 AM > To: Ryan Christensen > Cc: [EMAIL PROTECTED] > Subject: RE: [PHP] PHP shell scripting.. > > > Hello Ryan, > > Let me give you an example :) > Lets use your script, > > #!/usr/local/bin/php -q > >print "I am: $name\n"; > ?> > > > i called it echo-name.php and chmod 755 it. > Next, im going to call it: > > -- > Athena:~$ name=kees > Athena:~$ ./echo-naam > I am: kees > -- > > So the trick is to set the variable BEFORE you call the > script you can see all variables already used by linux with > "set" you'll get something like this: > > -- > Athena:~$ set > BASH=/bin/bash > BASH_VERSINFO=([0]="2" [1]="03" [2]="0" [3]="1" [4]="release" > [5]="i386-slackware-linux-gnu") > BASH_VERSION='2.03.0(1)-release' COLUMNS=80 > DIRSTACK=() > > (...snip...) > > TERM=xterm > UID=1034 > USER=kees > _=./echo-naam > file=/etc/profile.d/tetex.sh > ignoreeof=10 > name=kees > - > > As you can see, our variable name is there, and it is set. > to set a variable, simply type this at the commandline (or script) > - > variable=value > --- > where variable is your variable and value your value :) > > Good luck :) > -Kees -- 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] Installation error..
Quick question.. I'm installing PHP 4.0.6 on a fresh install of Trustix 1.2. It compiles fine (I've even slimmid down the modules I'm compiling it with down to just apxs+mysql), but when I try to restart apache, it gives me the following error: Starting httpd: Syntax error on line 241 of /etc/httpd/conf/httpd.conf: Cannot load /etc/httpd/modules/libphp4.so into server: /usr/lib/libimap.so: undefined symbol: SSL_CTX_set_tmp_rsa_callback Now, it mentions libimap.so, which is odd. after getting this error the first time I tried recompiling (after a "make clean".. which should clear out the previous config, right?) Thoughts? Ryan -- 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: Installation error..
Yup, I did. I actually later found out that all I had to do was remove the old libphp4.so file, THEN recompile. Thanks anyways, Ryan > -Original Message- > From: James Tan [mailto:[EMAIL PROTECTED]] > Sent: Saturday, August 04, 2001 5:35 AM > To: [EMAIL PROTECTED] > Subject: [PHP] Re: Installation error.. > > > hi Ryan, > > did u make clean on your php 2? > > i can't recall, u must delete a file config.*** (i can't recall the > extension...) b4 u reconfigure... > refer in the php install.txt > > hope it works :) > > regards, > > James > > > > Ryan Christensen wrote: > > > Quick question.. > > > > I'm installing PHP 4.0.6 on a fresh install of Trustix 1.2. It > > compiles fine (I've even slimmid down the modules I'm compiling it > > with down to just apxs+mysql), but when I try to restart apache, it > > gives me the following error: > > > > Starting httpd: Syntax error on line 241 of > > /etc/httpd/conf/httpd.conf: Cannot load > /etc/httpd/modules/libphp4.so > > into server: > > /usr/lib/libimap.so: undefined symbol: SSL_CTX_set_tmp_rsa_callback > > > > Now, it mentions libimap.so, which is odd. after getting > this error > > the first time I tried recompiling (after a "make clean".. which > > should clear out the previous config, right?) > > > > Thoughts? > > > > Ryan > > -- > ---PHP Rules--- > James Tan > Web programmer(php, c/c++, asp) > Irc: Unknown007(dalnet) > Country: Malaysia > Clients List: > http://www.ogaya.com > http://www.tahbauto.com > http://www.aseanvalues.com > http://www.e-cpo.com > http://your_own_portal? > > > > -- > 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 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] MySQL connection
I'm curious as to how the "hacker" would see all this information (the username.. password, etc..) just by going to a site where the SQL backend was down? Ryan > -Original Message- > From: BRACK [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, August 07, 2001 12:36 PM > To: [EMAIL PROTECTED] > Subject: [PHP] MySQL connection > > > I just wanned to bring the issue of security of MySQL connection: > > Let us imagine that SQL server was down for some hours (of > course without us knowing it) and at the same hours our SQL site > was visited by some kind of hacker, he can see on his screen all > our SQL connection info like username, password, and database > name. You may hide this information in different file than the file > that your users open then the hacker will see something like > "include("connect.inc");" or "require("connect.inc");" (of course IF > server is down). So you may only imagine the consequences of > this visit of the hacker. What can we do to protect our sensitive > information if SQL server is down? > > Youri > > -- > 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 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] close browser
Pretty sure it can, it just prompts the user before it is closed.. (otherwise JS would have a BIT too much power :) Ryan > -Original Message- > From: Tyler Longren [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, August 07, 2001 1:12 PM > To: [EMAIL PROTECTED] > Cc: [EMAIL PROTECTED] > Subject: Re: [PHP] close browser > > > PHP can't do that because php is serverside. You would need Javascript. > I'm not even sure if Javascript can do this. > > Tyler Longren > Captain Jack Communications > [EMAIL PROTECTED] > www.captainjack.com > > > On Tue, 7 Aug 2001 16:10:51 -0400 > "Jeremy Morano" <[EMAIL PROTECTED]> wrote: > > > Hi, > > > > Can anybody tell me what the code to close the browser is? > > > > -- > > 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 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 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] Rewriting a textfile for import into a db..
I have a few thousand entries that have been (until now) stored in text-files that I need to get imported into a MySQL database for a new system I'm writing that makes use of them. So.. the long and short of it, I was wondering if someone could help me write a script (or supply me with one.. Perl I'm guessing would be easiest) that can turn each line in the text file from: 123|blah|foo|bar|etc To be formatted like: INSERT INTO Table VALUES (123,'blah','foo','bar','etc'); Thanks in advance.. any help would be appreciated! Ryan -- 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]
FW: [PHP] Rewriting a textfile for import into a db..
Nevermind.. I discovered that this feature was built into MySQL already! Here's the cmd I'm using: LOAD DATA LOCAL INFILE '/home/user/whatever.txt' INTO TABLE Table FIELDS TERMINATED BY '|' ENCLOSED BY '\"' ESCAPED BY '\\' LINES TERMINATED BY '\n' .. for anyone who might have been looking for the same thing. Thanks! Ryan > -Original Message- > From: Ryan Christensen [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, August 07, 2001 3:34 PM > To: [EMAIL PROTECTED] > Subject: [PHP] Rewriting a textfile for import into a db.. > > > I have a few thousand entries that have been (until now) > stored in text-files that I need to get imported into a MySQL > database for a new system I'm writing that makes use of them. > So.. the long and short of it, I was wondering if someone > could help me write a script (or supply me with one.. Perl > I'm guessing would be easiest) that can turn each line in the > text file from: > > 123|blah|foo|bar|etc > > To be formatted like: > > INSERT INTO Table VALUES (123,'blah','foo','bar','etc'); > > Thanks in advance.. any help would be appreciated! > > Ryan > > > -- > 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 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]