Re: [PHP] PHP + Cron jobs

2008-09-29 Thread Shawn McKenzie
Waynn Lue wrote: Yup, you're completely right. I checked the cronjob and got this: PHP 5.2.6 (cgi) (built: Aug 11 2008 13:39:32) Copyright (c) 1997-2008 The PHP Group Zend Engine v2.2.0, Copyright (c) 1998-2008 Zend Technologies with Advanced PHP Debugger (APD) v0.9, , by George

Re: [PHP] How to submit form via PHP

2008-09-29 Thread Shawn McKenzie
Lupus Michaelis wrote: Ashley Sheridan a écrit : From the link you gave, we stick on http://www.w3.org/TR/html401/types.html#type-uri, so it references an IETF RFC http://www.ietf.org/rfc/rfc1808.txt that describes what is an URI. The fourth section describes how we have to determine

Re: [PHP] Don't understand what is this $arr['N']['#']

2008-09-27 Thread Shawn McKenzie
Ashley Sheridan wrote: On Sat, 2008-09-27 at 23:10 +0400, ANR Daemon wrote: Greetings, Richard Heyes. In reply to Your message dated Friday, September 26, 2008, 12:41:32, Please don't top post any more. thank you. Because it's such a cardinal sin and will result in you being sent straight

[PHP] Re: Just testing IGNORE!!!

2008-09-24 Thread Shawn McKenzie
uaca man wrote: Did IGNORE!!! pass or fail the testing? -Shawn -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Error message

2008-09-20 Thread Shawn McKenzie
Terry J Daichendt wrote: The error message told it all. Jochem was correct albiet not in the style I prefer. I had the code in an HTML page after the header. I've been a programmer for 15 years but I'm brand new to PHP. Anyone can make a rookie mistake. Thanks everyone for the help. Everyone

Re: [PHP] Re: New Server Install

2008-09-11 Thread Shawn McKenzie
blocking this port either on your computer, the server, or the router/switch or whatever else you are using to connect the computers on the network Ash www.ashleysheridan.co.uk http://www.ashleysheridan.co.uk -- Forwarded message -- From: Shawn McKenzie

Re: [PHP] tedd's back from vacation

2008-09-10 Thread Shawn McKenzie
tedd wrote: At 10:05 PM -0400 9/9/08, Dan Joseph wrote: Look, just because we let you out of your cage, doesn't mean you have to go breaking your bones! No more vacations! BTW, was that dance in response to MSU winning 2 games in a row? -- -Dan Joseph Dan: I only root for two schools:

Re: [PHP] tedd's back from vacation

2008-09-10 Thread Shawn McKenzie
Wolf wrote: Shawn McKenzie [EMAIL PROTECTED] wrote: tedd wrote: At 10:05 PM -0400 9/9/08, Dan Joseph wrote: Look, just because we let you out of your cage, doesn't mean you have to go breaking your bones! No more vacations! BTW, was that dance in response to MSU winning 2 games

Re: [PHP] Re: Recommendation

2008-09-10 Thread Shawn McKenzie
tedd wrote: At 9:16 AM +0100 9/10/08, Colin Guthrie wrote: Shawn McKenzie wrote: I don't understand the question. It is an email account that I check and I get mail from that address all the time. Of course it's late/much wine and there may be some humor here that is totally escaping me

[PHP] Re: New Server Install

2008-09-10 Thread Shawn McKenzie
Robbert van Andel wrote: I am working on a new webserver running Fedora 9. I installed php-mysql and php-mssql via yum. When I try to connect to our mysql server using php, I get the following error: Can't connect to MySQL server on 'mysqlservername' (13) Here's the weird part, I can

[PHP] Re: New Server Install

2008-09-10 Thread Shawn McKenzie
Shawn McKenzie wrote: Robbert van Andel wrote: I am working on a new webserver running Fedora 9. I installed php-mysql and php-mssql via yum. When I try to connect to our mysql server using php, I get the following error: Can't connect to MySQL server on 'mysqlservername' (13) Here's

Re: [PHP] translations for PHP app

2008-09-09 Thread Shawn McKenzie
tedd wrote: At 9:12 PM -0500 9/7/08, Shawn McKenzie wrote: Hi All, I'm looking for professional translations from English of the following: - admin.php lang file just under 150 PHP defines - user.php lang file just under 30 PHP defines - a javascript file with about 25 single word defines

Re: [PHP] Recommendation

2008-09-09 Thread Shawn McKenzie
I don't understand the question. It is an email account that I check and I get mail from that address all the time. Of course it's late/much wine and there may be some humor here that is totally escaping me. -Shawn tedd wrote: At 10:15 AM -0500 9/2/08, Shawn McKenzie wrote: Eric Butera

Re: [PHP] translations for PHP app

2008-09-08 Thread Shawn McKenzie
Wolf wrote: Shawn McKenzie wrote: Hi All, I'm looking for professional translations from English of the following: - admin.php lang file just under 150 PHP defines - user.php lang file just under 30 PHP defines - a javascript file with about 25 single word defines - about 19 PHP files with 2

Re: [PHP] translations for PHP app

2008-09-08 Thread Shawn McKenzie
Per Jessen wrote: Shawn McKenzie wrote: I need translations from English into the most common languages of my users: Spanish, French, Italian, Chinese, Indian, Russian. Also, anyone having expertise in other languages, I would love to have them, please contact me. Maybe it's worth trying

[PHP] translations for PHP app

2008-09-07 Thread Shawn McKenzie
Hi All, I'm looking for professional translations from English of the following: - admin.php lang file just under 150 PHP defines - user.php lang file just under 30 PHP defines - a javascript file with about 25 single word defines - about 19 PHP files with 2 defines in each Most defines are 1

Re: [PHP] Google Chrome

2008-09-03 Thread Shawn McKenzie
Per Jessen wrote: Stut wrote: On 2 Sep 2008, at 20:23, Diogo Neves wrote: Now is the time ;) Indeed: http://www.google.com/chrome But only for Windows for now :( I guess we'll have to wait a little longer then ... /Per Jessen, Zürich Will somebody volunteer to test on Wine or Mono?

[PHP] Re: PHP on 64bit Ubuntu

2008-09-03 Thread Shawn McKenzie
alexander lind wrote: Hi All I just tested my PHP app on Ubuntu 64bit, and found that all my php scripts would consume about 5x more RAM memory there, compared to how much they use on my macbook pro (which to make things a bit more confusing also runs a 64bit OS). A page that would take up

Re: [PHP] Recommendation

2008-09-02 Thread Shawn McKenzie
Eric Butera wrote: I'm on there too. http://www.linkedin.com/in/ericbutera Me too... http://www.linkedin.com/in/rsmckenzie -Shawn -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Mozilla user agent escapes detection

2008-09-02 Thread Shawn McKenzie
Jochem Maas wrote: Dave M G schreef: PHP List, I have a script, part of which is taken from a script I found on the 'net, which tries to detect the user agent of the browser accessing the site. One of the reasons I'm doing this is to find out if the browser is a desktop or mobile. Part of

Re: [PHP] Recommendation

2008-09-02 Thread Shawn McKenzie
Dan Joseph wrote: What about also creating a PHP General List group? Has anyone created Groups on linkedin before? Maybe we could get quite a few people linked thru one? Well, if you go to groups, groups directory here are already quite a few PHP groups. That's why I haven't joined one.

Re: [PHP] PHP IDE needed

2008-08-27 Thread Shawn McKenzie
VamVan wrote: use Aptana its awesome and free as well. thanks And it's Eclipse as well :-) -Shawn -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Variable name as a string

2008-08-27 Thread Shawn McKenzie
ioannes wrote: Could someone tell me how to get the name of a variable as a string. This would be useful in form submission with multiple check-boxes to match against database records. At the moment I use ${var.$ID[$x]} or someting like that to go through all the possible matches, but it

Re: [PHP] Re: Variable name as a string

2008-08-27 Thread Shawn McKenzie
ioannes wrote: Actually, you are right, as you just put the checkbox index in the POST and get the value from there. So you just need the number of checkboxes...sorry. ioannes wrote: Yes, Tedd, this does however incur the overhead of find out what i is, because it could be a range of IDs

[PHP] Re: Sending a POST variable to an ASP page

2008-08-27 Thread Shawn McKenzie
shaun thornburgh wrote: Hi, I need to send a post variable to an ASP page, can I do this within my PHP script? I don't need to view the page, or get any acknowledgment back, just send the single POST variable... Thanks for your advice

Re: [PHP] Re: Variable name as a string

2008-08-27 Thread Shawn McKenzie
tedd wrote: At 1:58 PM -0500 8/27/08, Shawn McKenzie wrote: ioannes wrote: Actually, you are right, as you just put the checkbox index in the POST and get the value from there. So you just need the number of checkboxes...sorry. for ($i = 1; $i = 4; $i++) { $a = 'a' . $i; $b

[PHP] Re: PHP editor for linux

2008-08-15 Thread Shawn McKenzie
It flance wrote: Hi, What do you think is the best php editor for linux. I'm using the Debian distribution. Thanks I use Aptana which is based on eclipse and has built-in HTML/JS/PHP?SVN stuff. Also a cool plugin that lets you easily develop for the iPhone and preview it.

[PHP] Re: Conditional compilation

2008-08-15 Thread Shawn McKenzie
Herman Gomez wrote: Hi, Here is something I used to do in C/C++ to include/exclude automaticaly all debugging code at compiling time: #define debug TRUE #ifdef(debug) //debugging code #endif That way I can include/exclude easily all debugging code in the final compiled code. In PHP I

Re: [PHP] Re: Conditional compilation

2008-08-15 Thread Shawn McKenzie
Robert Cummings wrote: On Fri, 2008-08-15 at 18:34 -0500, Shawn McKenzie wrote: Herman Gomez wrote: Hi, Here is something I used to do in C/C++ to include/exclude automaticaly all debugging code at compiling time: #define debug TRUE #ifdef(debug) //debugging code #endif That way I can

[PHP] Re: regex

2008-08-13 Thread Shawn McKenzie
Philip Thompson wrote: Figured it out. Just needed to stretch my brain a lil. On Aug 13, 2008, at 3:07 PM, Philip Thompson wrote: ?php function blegh ($subject) { // I know this pattern doesn't exactly work $pattern = '/(.*).php\?action=([^].*)/'; $pattern = '/(.*).php\?action=([^]+)+/';

Re: [PHP] Re: Variable number of parameters

2008-08-07 Thread Shawn McKenzie
Philip Thompson wrote: Oops! Meant to send this to the list On Aug 7, 2008, at 9:31 AM, Philip Thompson wrote: On Aug 6, 2008, at 4:25 PM, Shawn McKenzie wrote: Philip Thompson wrote: Is it possible to grab a variable number of parameters and send the appropriate amount to another

[PHP] Re: ReflectionClass

2008-08-07 Thread Shawn McKenzie
Viktor Popov wrote: Hi, Do you know where can I find more information about using the ReflectionClass. What is it for? In which situation can I use it and so on. Thank you in advance! Viktor http://php.net/language.oop5.reflection -Shawn -- PHP General Mailing List

[PHP] Re: Scripts for removing Reg entries

2008-08-07 Thread Shawn McKenzie
Perkins, Ryan wrote: I was looking thru some of the scripts that were mentioned and I am wondering if there is a way to write on that will delete registry entries? I am trying to uninstall Office 97 on XP machines and there are a lot of pieces left after the uninstall has run. I would need to

[PHP] Re: Variable number of parameters

2008-08-06 Thread Shawn McKenzie
Philip Thompson wrote: Is it possible to grab a variable number of parameters and send the appropriate amount to another function? ?php // Some class $this-db-prepare(SELECT * FROM `table` WHERE (`id`=?)); $this-db-bind('ii', $id1); $this-db-prepare(SELECT * FROM `table` WHERE (`id`=? AND

[PHP] Re: Version Control Software

2008-08-06 Thread Shawn McKenzie
Benjamin Darwin wrote: After reading a topic on the list here about someone losing their website, and having a minor mistake on my own that cost me a week's work on a file (basically, tested the file, then uploaded to the live site and took the daily backup off the live site.. only to find the

[PHP] Re: An appeal to your better nature

2008-08-06 Thread Shawn McKenzie
Richard Heyes wrote: Hi, Seems my 1and1 server has finally gone kaput taking my website with it, and in the tradition of all good IT professionals, I have no backups. :( So this is an appeal to you to ask if you have downloaded anything from phpguru.org at all, could you please send it to me so

Re: [PHP] Not found regex

2008-08-04 Thread Shawn McKenzie
Manoj Singh wrote: Hi All, Thanks for your replies. Actually i am placing this regex in .htaccess file. Here i have to redirect all the request to https if it is not for ogg file. The complete code is: RewriteCond %{HTTPS} off RewriteCond %{REQUEST_URI} ^.+\.ogg$ //Need some tweaking here. I

Re: [PHP] Not found regex

2008-08-04 Thread Shawn McKenzie
Boyd, Todd M. wrote: -Original Message- From: Shawn McKenzie [mailto:[EMAIL PROTECTED] Sent: Monday, August 04, 2008 10:33 AM To: php-general@lists.php.net Subject: Re: [PHP] Not found regex Manoj Singh wrote: Hi All, Thanks for your replies. Actually i am placing this regex

Re: [PHP] Creating new site

2008-07-31 Thread Shawn McKenzie
what I have and want to do. Also, inventing the wheel once, might give good experience or am I going slippery way ? Shawn McKenzie wrote: Micah Gersten wrote: Depending on the size of the site, you might want to consider a PHP framework to start with. There's usually no point in reinventing

Re: [PHP] Get Remote-Image

2008-07-31 Thread Shawn McKenzie
Richard Heyes wrote: Gutentag, I'm staring at the screen thinking Huh...?. He didn't even apologize for his English! -Shawn -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Get Remote-Image

2008-07-31 Thread Shawn McKenzie
Daniel Brown wrote: On Wed, Jul 30, 2008 at 9:50 PM, Konrad Priemer [EMAIL PROTECTED] wrote: kann mir mal wer auf die Sprünge helfen, ich bekomme es gerade nicht geregelt ein Image on-the-fly von einem Remote-Host per fsockopen auf meinen Server zu ziehen. Irgendwo hab ich da voll die Blockade

Re: [PHP] Get Remote-Image

2008-07-31 Thread Shawn McKenzie
Daniel Brown wrote: On Thu, Jul 31, 2008 at 11:14 AM, Shawn McKenzie [EMAIL PROTECTED] wrote: No, http://us2.php.net/manual/de/function.copy.php What do you mean, no, McKenzie? ;-P If you use the short method, it redirects properly. Putting him through us2 and specifying

Re: [PHP] Creating new site

2008-07-30 Thread Shawn McKenzie
Micah Gersten wrote: Depending on the size of the site, you might want to consider a PHP framework to start with. There's usually no point in reinventing the wheel. Someone mentioned CakePHP which utilizes MVC. I'm looking into porting my stuff to the Zend Framework which makes MVC optional,

Re: [PHP] Creating new site

2008-07-30 Thread Shawn McKenzie
Hélio Rocha wrote: U may want to see Ruby On Rails www.rubyonrails.org . It's also a framework but for Ruby. In my opinion it's stronger than cake and there are some IDE's that do support and debug it. Cumps, Hélio Rocha There's also .NET http://www.microsoft.com. It's also a framework but

[PHP] Re: Php Help

2008-07-30 Thread Shawn McKenzie
[EMAIL PROTECTED] wrote: I cannot get Php to run on Solaris 10... Here is the error I am getting Trying to run php outside of apache ld.so.1: php: fatal: libldap-2.3.so.0: open failed: No such file or directory With

[PHP] Re: very very small CMS

2008-07-18 Thread Shawn McKenzie
OOzy Pal wrote: Hello I am looking for a simple php CMS. Can anyone help? What should it do? -Shawn -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Having trouble logging into a PHP Database program

2008-07-18 Thread Shawn McKenzie
Jason Pruim wrote: Here is my authentication function: ?PHP function authentication($user, $pass, $link1){ // Keep in mind, PASSWORD has meaning in MySQL // Do your string sanitizing here // (e.g. - $user = mysqli_real_escape_string($_POST['user']);)

Re: [PHP] Randomly missing a function

2008-07-17 Thread Shawn McKenzie
Micah Gersten wrote: Try returning a value from CreateUser and checking it before sending the E-Mail. Thank you, Micah Gersten onShore Networks Internal Developer http://www.onshore.com Exactly! You'll find that CreateUser() is called, however for whatever reason the user isn't created. Do

Re: [PHP] Math Weirdness

2008-07-16 Thread Shawn McKenzie
Jochem Maas wrote: Robert Cummings schreef: On Tue, 2008-07-15 at 12:37 -0400, tedd wrote: At 12:31 PM -0400 7/15/08, Robert Cummings wrote: Umm... here it is to unlimited precision: ¼ Cheers, Rob. Yeah and here's ƒ Like or not, that's all there is to it. Weird... you're client

[PHP] Re: DB search and case sensitive comparison

2008-07-15 Thread Shawn McKenzie
Angelo Zanetti wrote: Hi all, I have a question and I can't seem to get around the problem or finding a total solution. I have a DB with a list of entries, one of the tables has fields and one of the fields is called the lookup_string field. This field is used to checkup values when users

[PHP] Re: Removeing duplicates inside for/foreach loop.

2008-07-15 Thread Shawn McKenzie
Niccolo Machiavelli wrote: $array = array( 1 = array(order_number = 10DA0DDEDAF97DB, order_payment_first_name = Mike, order_payment_last_name = Smith), 2 = array(order_number = 10DA0DDEDAF97DB, order_payment_first_name = Mike, order_payment_last_name = Smith), 3 = array(order_number

Re: [PHP] OT - RE: [PHP] scalable web gallery

2008-07-11 Thread Shawn McKenzie
Jim Lucas wrote: tedd wrote: The only downside of the classroom environment is that I can honestly learn more from this group et al than I can in a classroom. I just don't see academia keeping up with technology. By time the instructors prepare their class-notes, their class-notes are

Re: [PHP] Relocating and POSTing

2008-07-10 Thread Shawn McKenzie
Daniel Brown wrote: On Thu, Jul 10, 2008 at 2:32 PM, Richard Heyes [EMAIL PROTECTED] wrote: 1. Use the query string. Eg header('Location: http://www.xxx.com?name=valuename2=value2'); That's GET, not POST, as the subject requests. ;-P 2. Use sessions if you're not trying to

Re: [PHP] Re: What font/size do you use for programming?

2008-07-09 Thread Shawn McKenzie
tedd wrote: At 11:54 PM -0500 7/8/08, Shawn McKenzie wrote: Font: Agent Orange Size: 64pt 64pt! And I thought I my eyesight was poor at 14pt. Cheers, tedd Just kidding... Seriously, I just use what ever is default for the app I'm using. I used to use zend, now I use Aptana or kate

[PHP] Re: Linking stuff

2008-07-08 Thread Shawn McKenzie
Philip Thompson wrote: Hi all. I think I might be having a brain-fart afternoon, but I can't think of how to accomplish this. I want these centers to be linked to 1 another. If center A links to B and C, I want B to be linked to A and C, and C to A and B. So... it should look something

Re: [PHP] push data directlly to the client(was Creating zip files)

2008-07-08 Thread Shawn McKenzie
It flance wrote: Hi, Thank you for your answer. Now i figured out how to build the zip archive. I am using a class that returns the compressed data: $zipedresult = $zipfile-zipped_file(); This data, i can write it to a file. but i would like to make it downloadable without having to store it

Re: [PHP] Keeping POST values when paging

2008-07-08 Thread Shawn McKenzie
Stut wrote: On 8 Jul 2008, at 21:09, Philip Thompson wrote: On Jul 8, 2008, at 2:42 PM, Thiago H. Pojda wrote: On Tue, Jul 8, 2008 at 4:11 PM, Philip Thompson [EMAIL PROTECTED] wrote: On Jul 8, 2008, at 12:32 PM, tedd wrote: At 4:18 PM +0100 7/8/08, Mayer, Jonathan wrote: In the end I

Re: [PHP] push data directlly to the client(was Creating zip files)

2008-07-08 Thread Shawn McKenzie
Shawn McKenzie wrote: It flance wrote: Hi, Thank you for your answer. Now i figured out how to build the zip archive. I am using a class that returns the compressed data: $zipedresult = $zipfile-zipped_file(); This data, i can write it to a file. but i would like to make it downloadable

[PHP] Re: What font/size do you use for programming?

2008-07-08 Thread Shawn McKenzie
tedd wrote: Hi gang: I'm running a Mac (so I know mine is a bit different size wise) but I'm currently using Veranda at 14 point for coding. Just out of curiosity, what font and size do you ppls use for your programming? Cheers, tedd Font: Agent Orange Size: 64pt 19 Westinghouse

[PHP] Re: Session variables disappear (some of them only)

2008-07-07 Thread Shawn McKenzie
karma wrote: Hi, Ted Fabrice, thanks for your answers. Sessions variables are only stored in a local file. The dir permissions are ok, and I've tried to store these files in another dir (/var/tmp/php) just to check. The session id is transmitted via cookies only : session.use_cookies =

[PHP] Re: Session variables disappear (some of them only)

2008-07-07 Thread Shawn McKenzie
karma wrote: Hi, Ted Fabrice, thanks for your answers. Sessions variables are only stored in a local file. The dir permissions are ok, and I've tried to store these files in another dir (/var/tmp/php) just to check. The session id is transmitted via cookies only : session.use_cookies =

Re: [PHP] Looking for a reasonable explanation as to why $_REQUEST exists

2008-07-07 Thread Shawn McKenzie
Eric Butera wrote: On Mon, Jul 7, 2008 at 3:10 AM, mike [EMAIL PROTECTED] wrote: I have never had a use for this feature. To me it introduces another register_globals style atttack vector. I see no need why people need to combine post/get/etc variables into the same superglobal. I actually run

Re: [PHP] Re: [PHP-DOC] Network Interface Card Name

2008-07-07 Thread Shawn McKenzie
Per Jessen wrote: Thiago H. Pojda wrote: On Mon, Jul 7, 2008 at 8:19 AM, Kapil Kapil [EMAIL PROTECTED] wrote: Hi ! I want to get the name of network interface card, like - VIA Rhine I Fast Ethernet Adapter. Is there any function in php for this or perhaps a way to find it out? Not really

Re: [PHP] Looking for a reasonable explanation as to why $_REQUEST exists

2008-07-07 Thread Shawn McKenzie
Eric Butera wrote: On Mon, Jul 7, 2008 at 11:23 AM, Shawn McKenzie [EMAIL PROTECTED] wrote: When you use register_globals it extracts the vars from get, post, cookie and session, or used to. But, I don't think session vars are in $_REQUEST. -Shawn http://us2.php.net/manual/en/ini.core.php

Re: [PHP] Looking for a reasonable explanation as to why $_REQUEST exists

2008-07-07 Thread Shawn McKenzie
They can be what? I was wrong, the S is $_SERVER not $_SESSION. -Shawn Daniel Brown wrote: On Mon, Jul 7, 2008 at 11:23 AM, Shawn McKenzie [EMAIL PROTECTED] wrote: When you use register_globals it extracts the vars from get, post, cookie and session, or used to. But, I don't think session

[PHP] Re: rfc822_write_address() / CVE-2008-2829 problem

2008-07-07 Thread Shawn McKenzie
Matt Graham wrote: From: M. Sokolewicz [EMAIL PROTECTED] Matt Graham wrote: PHP had potential vulnerability CVE-2008-2829 http://bugs.php.net/bug.php?id=42862 for a reasonable discussion and an (unofficial) patch. I'm just curious as to what other PHP users are doing about the problem, since

Re: [PHP] Looking for a reasonable explanation as to why $_REQUEST exists

2008-07-07 Thread Shawn McKenzie
mike wrote: On 7/7/08, Eric Butera [EMAIL PROTECTED] wrote: Laziness/convenience. I always get my data from the exact source I want. If someone chooses to use REQUEST it shouldn't break their application. You say it is a security risk, but not really. As long as everything is

Re: [PHP] Looking for a reasonable explanation as to why $_REQUEST exists

2008-07-07 Thread Shawn McKenzie
mike wrote: On 7/7/08, Eric Butera [EMAIL PROTECTED] wrote: Laziness/convenience. I always get my data from the exact source I want. If someone chooses to use REQUEST it shouldn't break their application. You say it is a security risk, but not really. As long as everything is

[PHP] Re: Question before I end up writing alot of extra code...

2008-07-07 Thread Shawn McKenzie
Jason Pruim wrote: Hi everyone! So it's been a nice long weekend, I come in to work and try and mess with a project that I'm working on to get some new features added. All was going well until I realized that now my application is breaking... Here's the details... PHP 5.2 MySQL 5.2 I

Re: [PHP] Question before I end up writing alot of extra code...

2008-07-07 Thread Shawn McKenzie
Jason Pruim wrote: MAIN PAGE: ?PHP echo $row['Tab']; //what do you get? if($row['Tab'] == done){ $Tchecked1 = CHECKED; $Tchecked2 = NULL; }else{ $Tchecked1 = NULL; $Tchecked2 = CHECKED; } echo fieldsetTabBR input type=radio name=rdoTab value=done $Tchecked1Done BR input

Re: [PHP] Asynchronous PHP Execution

2008-07-05 Thread Shawn McKenzie
Richard Heyes wrote: and exec/shell (but that doesn't seem to be asynchronous), but neither seems optimal. It can be if you redirect the output streams and put an ampersand after it: ?php exec('sleep 5 /dev/null 2/dev/null '); echo 'Script ended'; ? This tiny sample should end

Re: [PHP] Asynchronous PHP Execution

2008-07-05 Thread Shawn McKenzie
Richard Heyes wrote: Also: exec('sleep 5 /dev/null '); Maybe? Two ampersands you mean? Why - what does it do? You're also not redirecting STDERR. My bad. I was trying to shorten your command. redirects stdout and stderr, unfortunately in c shell though. -Shawn -- PHP General

Re: [PHP] Asynchronous PHP Execution

2008-07-05 Thread Shawn McKenzie
Richard Heyes wrote: Also: exec('sleep 5 /dev/null '); Maybe? Two ampersands you mean? Why - what does it do? You're also not redirecting STDERR. I can't always remember because I think some things that are in c shell but aren't available in bourne have been incorpoated into bash. So

[PHP] Re: Hi,

2008-07-04 Thread Shawn McKenzie
John Jairo Vega Angulo wrote: Hi, How are u doing these days?Yesterday I found a web of a large trading company from china,which is an agent of all the well-known digital product factories,and facing to both wholesalers,retailsalers,and personal customer all over the world. They export all

Re: [PHP] PHPExcel

2008-07-03 Thread Shawn McKenzie
Richard Heyes wrote: Happy 4th of July! How did you know it was my sisters birthday today? Been an exciting week, first Canada's birthday was on Monday, now my sister's birthday today. What a thrill ride. Isn't it the 3rd? It is in the great Republic of Texas. -Shawn -- PHP General

Re: [PHP] PHPExcel

2008-07-03 Thread Shawn McKenzie
Dan Shirah wrote: UGH! I am now constantly getting an error of PHP Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to allocate 936 bytes) on line 689 Is there a way to continuously write to the file and avoid getting this error? On 7/3/08, Dan Shirah [EMAIL PROTECTED]

Re: [PHP] PHPExcel

2008-07-03 Thread Shawn McKenzie
On 7/3/08, Dan Shirah [EMAIL PROTECTED] wrote: GOT IT!!! I changed my code to the following: $sql = SELECT * FROM brev_pending_summary_detail WHERE name = '$name_code'; if (!empty($case_age)) { $sql.= AND case_age_group = '$case_age'; } if (!empty($case_cat)) { $sql.= AND case_category

[PHP] Re: Installed 5.2.6 but phpinfo() still says 5.0.2

2008-07-03 Thread Shawn McKenzie
x0ml wrote: I've installed PHP version 5.2.6 but phpinfo() and php -v both report back the old version 5.0.2. I even copied php.ini-dist from the distribution to /etc/php.ini and restarted the physical server. It still does show version 5.2.6 as the current version. As a sidenote, I'm

[PHP] Re: Log files

2008-07-02 Thread Shawn McKenzie
Mark Bomgardner wrote: I am writing an application in which I want to create log files. I am weighing the difference between using text files and using a database to house the data. It appears to me that there is really no advantage either way or is there? There are pros and cons to both

[PHP] Re: Execute command line as a different user

2008-07-01 Thread Shawn McKenzie
Matt palermo wrote: My PHP is running as a user with limited rights. I'd like to execute a command line as a different user. I'm trying to delete a file and the PHP user doesn't have access to do this. I know the username and password for the admin user that has rights to delete a file. Is

[PHP] Re: Execute command line as a different user

2008-07-01 Thread Shawn McKenzie
Shawn McKenzie wrote: Matt palermo wrote: My PHP is running as a user with limited rights. I'd like to execute a command line as a different user. I'm trying to delete a file and the PHP user doesn't have access to do this. I know the username and password for the admin user that has

[PHP] Re: Inspiration for a Tombstone.

2008-06-30 Thread Shawn McKenzie
tedd wrote: Hi gang: For a break in our normal serious thinking, I suggested tombstone wit of: Always on the edge of greatness Dan offered: /cruelWorld or /Dan or ?php function dan($dateOfDeath) { return Daniel P. Brown: 01-01-1970 - .$dateOfDeath; }

[PHP] Re: Include Problem

2008-06-24 Thread Shawn McKenzie
Shaun wrote: Hi, I am having problems with an include statement, i am using the following statement in an effort to include a footer file on my page: include(/cms/templates/footer.php); However I get the following error: Warning: main(/cms/templates/footer.php): failed to open stream: No

[PHP] Re: exec() Error

2008-06-24 Thread Shawn McKenzie
Wei, Alice J. wrote: Hi, I have got a task from my client asking me to build something that allows the variables in the PHP file passed to another PHP file or a file in a different computer language to perform some operations on another remote machine. According to my client, he

Re: [PHP] Re: Military Service WAS [PHP] Capitalization of variable

2008-06-23 Thread Shawn McKenzie
Jay Blanchard wrote: [snip] www.goarmy.com http://www.gocoastguard.com/ [/snip] http://www.airforce.com/ Army, 1990-1995, crypto-ranger! -shawn (formerly Shawn) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Uploading files without saving them

2008-06-23 Thread Shawn McKenzie
Daniel Brown wrote: On Mon, Jun 23, 2008 at 6:05 PM, James Colannino [EMAIL PROTECTED] wrote: Ah, I see. What would happen if two people just happened to upload files with the same filename at the same time? Would one stomp over the other, or does PHP have mechanisms to handle that sort of

Re: [PHP] Re: Military Service WAS [PHP] Capitalization of variable

2008-06-23 Thread Shawn McKenzie
Daniel Brown wrote: On Mon, Jun 23, 2008 at 5:41 PM, Shawn McKenzie [EMAIL PROTECTED] wrote: Army, 1990-1995, crypto-ranger! 96 Bravo? That was the alternative MOS I was considering upon enlisting in the Army a few years after the Coast Guard. It was between that and 68W (combat

Re: [PHP] Capitalization of variable

2008-06-21 Thread Shawn McKenzie
tedd wrote: At 11:41 PM -0400 6/18/08, Ron Piggott wrote: How do I make the first letter of a variable be a capital? I am using this with names. If the user types ron I want to save it as Ron. Thanks for your help. Ron Not everyone wants their name capitalized. Cheers, tedd Yeah!

Re: [PHP] Problem with php execution and variables

2008-06-13 Thread Shawn McKenzie
SenTnel wrote: Hello! Im new to programing and this is the situation I have with a first level basic php tutorial: One of the samples uses a simple order form that submits to this page and is supposed to return the values entered on that form. This is the code not working: ? echo pYour

Re: [PHP] Problem with php execution and variables

2008-06-13 Thread Shawn McKenzie
SenTnel wrote: Thank you Shawn! Just to make sure, the long way IS the correct way? Thanks again! Shawn McKenzie wrote: SenTnel wrote: Hello! Im new to programing and this is the situation I have with a first level basic php tutorial: One of the samples uses a simple order form

Re: [PHP] Capture homepage screenshot

2008-06-13 Thread Shawn McKenzie
Daniel Brown wrote: On Fri, Jun 13, 2008 at 1:46 PM, Shiplu [EMAIL PROTECTED] wrote: Hello, How can i capture homepage screenshot of a webpage by php? I know a way. I'll run a executable written in C/C++. when It will be called to process a screen shot It will just load the webpage in firefox

Re: [PHP] PHP Runs But Does Not Display on Linux

2008-06-12 Thread Shawn McKenzie
Wei, Alice J. wrote: Hi, Guys: Thanks for all of you who helped out, and I can now get this to work, by installing the PHP into the Linux Fedora box I have. What is odd is that on the download page of http://www.php.net, it mentioned the following on the downloads page: We do not

Re: [PHP] Command-line PHP memory limit

2008-06-12 Thread Shawn McKenzie
Per Jessen wrote: Rene Fournier wrote: Is it possible to set a unique memory limit for PHP scripts that are run from the command line? (That is, different from what's specified in php.ini.) This might specific to openSUSE, but the typical installation comes with separate php.inis for apache

[PHP] Re: Reiterative Copy() in a Directory Alternative

2008-06-10 Thread Shawn McKenzie
Wei, Alice J. wrote: Hi, I have a scenario here where I wanted to read through a directory and copy all the files into another directory out on the server somewhere. It appears that I cannot do reiterative copying from the files to another folder, according to the error I keep seeing:

Re: [PHP] Imagick installation issue

2008-06-10 Thread Shawn McKenzie
BornPlayDie wrote: Yes, I forgot to mention, I did restart apache. Date: Sat, 7 Jun 2008 20:21:26 -0400 From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: [PHP] Imagick installation issue CC: php-general@lists.php.net On 6/7/08, BornPlayDie [EMAIL PROTECTED] wrote: I am trying to

[PHP] Re: mssql extension

2008-06-10 Thread Shawn McKenzie
Shawn McKenzie wrote: Mathieu Pelletier wrote: Hello ! My Workstation/server: Window XPApache 2.2.4 (win32) PHP/5.2.3SQl Server 2003 I have never been able to load mssql extension in my life...In my php .ini file, I removed the ; correctly : extension=php_mssql.dll Other extensions

[PHP] Re: mssql extension

2008-06-09 Thread Shawn McKenzie
Mathieu Pelletier wrote: Hello ! My Workstation/server: Window XPApache 2.2.4 (win32) PHP/5.2.3SQl Server 2003 I have never been able to load mssql extension in my life...In my php .ini file, I removed the ; correctly : extension=php_mssql.dll Other extensions work fine, for example I

[PHP] Re: Search like php.net's URL thingy

2008-06-05 Thread Shawn McKenzie
Ryan S wrote: Hey, one of the things that make the php.net site so cool is how easy it is to find info for a function or a list of topics.. eg: http://php.net/arrays http://php.net/count I'm sure nearly all of you reading this have done it more times than you would care to count, i'm trying

Re: [PHP] Re: Search like php.net's URL thingy

2008-06-05 Thread Shawn McKenzie
Then check $SERVER['REDIRECT_URL'] for the failed request. On Thu, Jun 5, 2008 at 2:41 PM, Shawn McKenzie [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Ryan S wrote: Hey, one of the things that make the php.net http://php.net site so

Re: [PHP] Re: Search like php.net's URL thingy

2008-06-05 Thread Shawn McKenzie
. Nate On Thu, Jun 5, 2008 at 2:57 PM, Shawn McKenzie [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: As far as I remember, errordocument still send the code, in this case 404 to the client. In the case of IE, this will display IEs built-in error doc if the server supplied one

<    3   4   5   6   7   8   9   10   11   12   >