RE: [PHP] Is there a 'Beginner's' PHP List

2007-11-15 Thread Instruct ICC
> Date: Thu, 15 Nov 2007 10:17:29 -0500 > From: [EMAIL PROTECTED] > To: [EMAIL PROTECTED] > Subject: Re: [PHP] Is there a 'Beginner's' PHP List > CC: php-general@lists.php.net > > On Nov 14, 2007 10:29 PM, Instruct ICC <[EMAIL PROTECTED]> wrote: >

RE: [PHP] Cannot send a hyperlink

2007-11-15 Thread Instruct ICC
> No access to the server command line to install it! > And, I am into this guy too deep to switch technologies. For the next time > around, no problem, this time I am just trying to get php to do what it is > supposed to do. [sarcastic]Rough install.[/sarcastic] If you can write a php script, y

RE: [PHP] file_exists

2007-11-15 Thread Instruct ICC
> >> Something like the following would be much better (untested)... > >> > >> $page = realpath(dirname(__FILE__).'/inc/'.$_GET['page'].'.php'); > >> $expecteddir = realpath(dirname(__FILE__).'/inc'); > >> if (substr($page, 0, strlen($expecteddir)) != $expecteddir) > >> { > >> // Ideally retu

RE: [PHP] file_exists

2007-11-15 Thread Instruct ICC
> My server is down right now so I can't do my usual example script. A likely story. Just kidding. Stut, YOU WERE RIGHT, AND I WAS WRONG. Your code is golden. _ Help yourself to FREE treats served up daily at the Messenger Café. S

RE: [PHP] file_exists

2007-11-15 Thread Instruct ICC
> >> No, you've missed the point. $expecteddir is a fixed variable that you, > >> the script author, specify. It does not contain anything coming from > >> external veriables. You then compare the full path you build from the > >> external variables to $expecteddir to verify that the file is in

RE: [PHP] file_exists

2007-11-15 Thread Instruct ICC
> Date: Thu, 15 Nov 2007 13:16:46 + > From: [EMAIL PROTECTED] > To: [EMAIL PROTECTED] > CC: php-general@lists.php.net > Subject: Re: [PHP] file_exists > > Instruct ICC wrote: > > > > > >> Date: Thu, 15 Nov 2007 00:20:52 + > >>

RE: [PHP] Re: file_exists

2007-11-15 Thread Instruct ICC
> > I think file_exists returns false for remote files ;) > > Even if it did (it doesn't: > http://uk3.php.net/manual/en/wrappers.ftp.php), I'd still rather not let > someone steal my /etc/passwd or /etc/shadow etc. files. > > As I said before. Some form of regexp or similar restriction is 1

RE: [PHP] Cannot send a hyperlink

2007-11-15 Thread Instruct ICC
> Next time Brad, please try to take a look yourself at the line the error > indicates (and the lines around it aswell) and TRY to figure out what > MIGHT be wrong. > > - Tul If it's not on the line it reported, it may be immediately above that line. The only unhelpful error I've seen (once y

RE: [PHP] Cannot send a hyperlink

2007-11-15 Thread Instruct ICC
> Still parsing as text and not html! You should be able to do this in both PHPmailer and "Example 1127. Sending HTML email" before I finish reading the 60 emails I have remaining to catch up on this list. Including any download. ___

RE: [PHP] Cannot send a hyperlink

2007-11-15 Thread Instruct ICC
> We are sending email now, > But we are back to the original problem, > No hyperlink! > > $email = $_REQUEST['email'] ; > $fromaddress .= '[EMAIL PROTECTED]'; > $fromname .= 'Zone of success Club'; > $eol="\r\n"; > $headers .= "From: ".$fromname."<".$fromaddress.">".$eol; > $headers .= "Reply-To:

RE: [PHP] file_exists

2007-11-14 Thread Instruct ICC
> Date: Thu, 15 Nov 2007 00:20:52 + > From: [EMAIL PROTECTED] > To: [EMAIL PROTECTED] > CC: php-general@lists.php.net > Subject: Re: [PHP] file_exists > > Philip Thompson wrote: >> I've run into similar problems where I *thought* I was looking in the >> correct location... but I wasn't. Take

RE: [PHP] Is there a 'Beginner's' PHP List

2007-11-14 Thread Instruct ICC
> Date: Wed, 14 Nov 2007 13:20:16 -0800 > From: [EMAIL PROTECTED] > To: php-general@lists.php.net > Subject: [PHP] Is there a 'Beginner's' PHP List > > Come to think of it - if there is a more basic 'newbie' forum list (for PHP > beginners like myself) that anyone knows of (I found a few listed

RE: [PHP] Newbie question - current date - time

2007-11-14 Thread Instruct ICC
> Date: Wed, 14 Nov 2007 09:39:19 -0800 > From: [EMAIL PROTECTED] > To: php-general@lists.php.net > Subject: [PHP] Newbie question - current date - time > > Hi Folks, > > Newbie question : > > - how do I get and display the current date? > - how do I get and display the current time? > > I see t

RE: [PHP] enhanced_list_box

2007-11-12 Thread Instruct ICC
> I am using this function enhanced_list_box. This works > fine. Except the return value is None. How is it possible for it to > return a proper value. It reads a list from a data base. while $row is valid you do stuff. then when $row is invalid, you return it. But maybe you knew that. To ret

RE: [PHP] Need a hint how to track an error

2007-11-12 Thread Instruct ICC
> >> My php program is working with Firefox, but not with Internet Explorer. > > > > Nothing to do with php, your problem is javascript. > > > >> Is there a tool to find the problem? > > > > For IE, try > > > > http://www.microsoft.com/downloads/details.aspx?familyid=e59c3964-672d-4511-bb3e-2d5e1d

RE: [PHP] Help securing a server : Owned by W4n73d H4ck3r

2007-11-09 Thread Instruct ICC
> >The person doing this seems to be relatively new to the scene, > > only defacing websites with common vulnerabilities that you can find > > anywhere on the Internet (http://astalavista.box.sk/ for example). > > Check out Zone-H (http://www.zone-h.net/) to see if your domains are > > on th

RE: [PHP] Re: PHP ide?

2007-11-09 Thread Instruct ICC
> >> Ubuntu = Debian + New Life > > > > Mandriva has Eclipse and PHPEclipse 'out of the box' along with Apache > > and PHP > > I can build a fully functional development machine from a pile of bits > > in under an hour ;) > > And currently that includes downloading the latest updates :) > > > >

RE: [PHP] PHP ide? Back On Topic

2007-11-09 Thread Instruct ICC
> But I highly doubt you'll find a first-class PHP code IDE (Zend Studio) that > is also a first-class HTML layout tool (Dreamweaver). My 2006 rant said I'll accept multiple tools. I'll have to find that post and see if my needs have changed. Ahh here: I am looking for a tool (or tools) that

RE: [PHP] PHP ide?

2007-11-08 Thread Instruct ICC
Blah blah blah...electricity You see where I'm going. >> You forgot Adam and Eve For those who believe "You see where I'm going". For the others, you get vacuum fluctuations LOL. _ Boo! Scare away worms, viruses and so much

RE: [PHP] PHP ide? Back On Topic

2007-11-08 Thread Instruct ICC
CTED]> To: php-general@lists.php.net> Date: Fri, 9 Nov 2007 01:03:13 +0100> Subject: Re: [PHP] PHP ide? OT>> On Friday 09 November 2007 00:47:56 you wrote:>> On Fri, 2007-11-09 at 00:28 +0100, Børge Holen wrote:>>> On Friday 09 November 2007 00:03:32 Instruct ICC w

RE: [PHP] PHP ide?

2007-11-08 Thread Instruct ICC
ah blah...electricity You see where I'm going. > From: [EMAIL PROTECTED]> To: php-general@lists.php.net> Date: Fri, 9 Nov 2007 00:28:59 +0100> Subject: Re: [PHP] PHP ide?>> On Friday 09 November 2007 00:03:32 Instruct ICC wrote:>>

RE: [PHP] PHP ide?

2007-11-08 Thread Instruct ICC
> > > > > Just wondering if anyone uses an IDE and if so what ones? > > > > > > > > > > Ta, > > > > > > > > > > H. > > > > > > > > Quanta +, of course. > > > > Other is to much work and not worth the effort... > > > > I really cannot see what so many of you guys see in eclipse, it's a > > > > mist

RE: [PHP] PHP ide?

2007-11-08 Thread Instruct ICC
> On Thu, 2007-11-08 at 21:47 +0100, Børge Holen wrote: > > On Thursday 08 November 2007 11:02:07 Hulf wrote: > > > Just wondering if anyone uses an IDE and if so what ones? > > > > > > Ta, > > > > > > H. > > > > > > Quanta +, of course. > > Other is to much work and not worth the effort... > >

RE: [PHP] More info on timeout problem, with code

2007-11-06 Thread Instruct ICC
> Thanks for the comment. I removed the trailing semi-colon in the two > areas where it was being sent to mysql_query() and tried the code again. > I'm still getting the same basic problem -- it silently aborts somewhere > around 22,000 to 26,000 records being processed out of just under 30,000. >

RE: [PHP] More info on timeout problem

2007-11-05 Thread Instruct ICC
> Sounds much like what I'm trying to do. I have had to give up, for the > time being, on using PHP to upload the datafile; it's about 56 MB in size > and nothing I do seems to let me upload anything larger than a 2MB file. :( I don't know if it's been mentioned in this thread, but 2M is a defaul

RE: [PHP] More info on timeout problem

2007-11-05 Thread Instruct ICC
> I'm now wondering if some error is occurring that, for some reason, is > silently ending the routine. I'm building what may be a very long SQL INSERT > statement for each line in the CSV file that I'm reading; could I be hitting > some upper limit for the length of the SQL code? I'd thi

RE: [PHP] Threads

2007-11-02 Thread Instruct ICC
> >>> Greetings everyone, I was wondering where I could find information on the > >>> status and possibilities of threads being included in PHP. Or if you are > >>> knowledge-able on the status of threads, if it is a planned addition or > >>> not > >>> and the reasons as such. I understand PHP is

RE: [PHP] Including GD inside HTML code

2007-11-01 Thread Instruct ICC
> Alberto García Gómez wrote: > > I trying to include some image generate for a function that use GD. > > > > eg.: > > > > function myfunct(){ > > [MY_CODE] > > } > > > > but when I call the function it generate me a lot of symbols, letters and > > numbers but no image. > > > > WHAT CAN I

RE: [PHP] Threads

2007-11-01 Thread Instruct ICC
>> Greetings everyone, I was wondering where I could find information on the >> status and possibilities of threads being included in PHP. Or if you are >> knowledge-able on the status of threads, if it is a planned addition or not >> and the reasons as such. I understand PHP is not thread safe, t

RE: [PHP] system command

2007-10-27 Thread Instruct ICC
>> Maybe something to do with the last line (but I get several lines) >> Return Values >> >> Returns the last line of the command output on success, and FALSE on failure. >> >> > > I have within a web page: > $a=system('/usr/bin/lynx -dump http://api.hostip.info/country.php?ip='.$aa); > ?> > ...

RE: [PHP] Executing PHP

2007-10-26 Thread Instruct ICC
> > Well on Mac/Unix/Linux you could type "ps" at the terminal to see the path > > to the running processes or "which php" to see which one you would invoke. > > > > Maybe you can upgrade to a Mac? > > > > Parallels running Windows XP didn't show me such info in the Task Manager; > > sorry. > >

[PHP] RE: [Ticket #29] [PHP] Executing PHP

2007-10-26 Thread Instruct ICC
What the hell is this? Is Charlie Schulz trying to get me to click on this link? > Date: Fri, 26 Oct 2007 15:08:10 -0400 > From: [EMAIL PROTECTED] > To: [EMAIL PROTECTED] > Subject: [Ticket #29] [PHP] Executing PHP > > Your ticket has been submitted. Please reply to this email (keeping the > s

RE: [PHP] system command

2007-10-26 Thread Instruct ICC
>> Use double quotes to get the value of $a or else you get the literal string >> "$a". >> >> $aa=system("lynx -dump http://api.hostip.info/country.php?ip=$a",$location); >> or >> $aa=system('lynx -dump http://api.hostip.info/country.php?ip='.$a,$location); >> >> > Thanks! 1st solution did not wo

RE: [PHP] Executing PHP

2007-10-26 Thread Instruct ICC
Well on Mac/Unix/Linux you could type "ps" at the terminal to see the path to the running processes or "which php" to see which one you would invoke. Maybe you can upgrade to a Mac? Parallels running Windows XP didn't show me such info in the Task Manager; sorry. > Date: Thu, 25 Oct 2007 15:

RE: [PHP] Question about time...

2007-10-25 Thread Instruct ICC
> >> I want to be able to display something like an image of a turkey > >> during the month of november from now until I'm dead. > > > > And how will the application know when you are dead? > > Well, I code all of my applications to receive RFID signals, and I > had a RFID transmitter embedded

RE: [PHP] mail from

2007-10-25 Thread Instruct ICC
> > in my php.ini, I have this set > > sendmail_from = [EMAIL PROTECTED] The first thing I'd do is verify if the script is really using the php.ini you think it is by having the script output phpinfo. _ Peek-a-boo FREE Tricks & Tre

RE: [PHP] system command

2007-10-24 Thread Instruct ICC
> Date: Thu, 25 Oct 2007 09:43:14 +0800 > From: [EMAIL PROTECTED] > To: php-general@lists.php.net > Subject: [PHP] system command > > I tried: > > $a=$_SERVER["REMOTE_ADDR"]; > echo "REMOTE_ADDR=$a"; > if($a="192.168.250.108") { > $a="61.64.101.101"; > } > > > $aa=system('lynx -dump http

RE: [PHP] Question about time...

2007-10-24 Thread Instruct ICC
> > > I want to be able to display something like an image of a turkey > >> during the month of november from now until I'm dead. > > > >And how will the application know when you are dead? > > When you stop paying for hosting, the application get's the idea when > it's bits go poof! Yep, tha

RE: [PHP] Question about time...

2007-10-24 Thread Instruct ICC
> I want to be able to display something like an image of a turkey > during the month of november from now until I'm dead. And how will the application know when you are dead? _ Windows Live Hotmail and Microsoft Office Outlook –

RE: [PHP] help with code not wrking

2007-10-24 Thread Instruct ICC
> From: [EMAIL PROTECTED] > To: php-general@lists.php.net > Date: Wed, 24 Oct 2007 15:27:28 -0400 > Subject: [PHP] help with code not wrking > > Hi all, > > > > I have inherited a problem script from a client, and it's a simple upload > function. > > The problem is that while the image is b

RE: [PHP] echo VS print : that's a cool behavior !

2007-10-23 Thread Instruct ICC
> Hello everyone. > > We all know the difference between print and echo, but has someone ever > tried to combine them together ?? > > Right, try this : > > echo "coucou " . print('v ' . print('u ' . print('toctoc ') . 'hihi ') ) . > 'tata ' . print('zozo ' . print('pupu ')); > > > And guess

RE: [PHP] This, then that.

2007-10-20 Thread Instruct ICC
> > >> > I want to prohibit an image from being shown to anyone who is not > > >> > permitted (i.e., logged in). > > >> > > > >> > The way I want to do this is to: > > >> > > > >> > 1. Set [file] permissions... > > >> > > >> > > >> > > >> What if 2 or more users access the application at th

RE: [PHP] This, then that. [solved?]

2007-10-20 Thread Instruct ICC
> >> I think I found a solution. > >> > >> Here's the url: > >> > >> http://www.webbytedd.com/bbb/image-test1/ > >> > >> The point is that the image is only accessible via this script, is > >> this correct? > > > >I can access it without a script: > >http://www.webbytedd.com/bbb/image-test1/i

RE: [PHP] This, then that. [solved?]

2007-10-19 Thread Instruct ICC
> but in the img tag, try src="display_image.php?id=anId" > and in display_image.php, test if the user is authorized before displaying > the image. > Then a direct call to display_image.php?id=anId would still have a chance to > authenticate the user. Forgot to reiterate: Keep the images where

RE: [PHP] This, then that. [solved?]

2007-10-19 Thread Instruct ICC
> Hi gang: > > I think I found a solution. > > Here's the url: > > http://www.webbytedd.com/bbb/image-test1/ > > The point is that the image is only accessible via this script, is > this correct? I can access it without a script: http://www.webbytedd.com/bbb/image-test1/images/a.jpg It may

RE: [PHP] This, then that.

2007-10-19 Thread Instruct ICC
> I want to prohibit an image from being shown to anyone who is not > permitted (i.e., logged in). > > The way I want to do this is to: > > 1. Set [file] permissions... What if 2 or more users access the application at the same time? Set the permissions so only the PHP application can acces

RE: [PHP] p-s-e-x-e-c

2007-10-19 Thread Instruct ICC
> > > When I run the command on the server itself, it > > > works just fine. When I run the same command via a webpage, the text file > > > does not generate. > > > > > > I also have a similar problem but reversed. It works in a webpage but not > > on the command line. > > mysql_connect, mssql_c

RE: [PHP] p-s-e-x-e-c

2007-10-18 Thread Instruct ICC
> When I run the command on the server itself, it > works just fine. When I run the same command via a webpage, the text file > does not generate. I also have a similar problem but reversed. It works in a webpage but not on the command line. mysql_connect, mssql_connect, and a non-db function.

RE: [PHP] p-s-e-x-e-c

2007-10-18 Thread Instruct ICC
> Hi. I'm wanting to run an executable that generates a text file, and I'm > having some issues. When I run the command on the server itself, it works > just fine. When I run the same command via a webpage, the text file does not > generate. My first impression was that the permissions were wrong.

RE: [PHP] round()

2007-10-12 Thread Instruct ICC
> > > Yes, but precision is not the issue. > > > php -r '$t=123.45; echo $t . "\n"; $t+=0.001; echo $t . "\n";' 123.45 123.451 php -r '$t=123.45; echo $t . "\n"; $t+=0.0001; echo $t . "\n";' 123.45 123.45 php -r '$t=123.45678901234567; echo $t . "\n";' 123.45678901235 Ge

RE: [PHP] round()

2007-10-12 Thread Instruct ICC
> > Yes, but precision is not the issue. > > > > It doesn't make any difference if you are rounding. > > You still have to make a decision Uuhm, what was $t on the platform before the round please (the += .000..1 post)? Then that will confirm that precision is not the problem. Als

RE: [PHP] RE: round()

2007-10-11 Thread Instruct ICC
> well, > seems to be OS dependent: > > PHP_OS:Linux (Suse 9.x 32bit) | PHP_VERSION:5.0.3 > $t=1.255; > round($t,2):1.26 > $t += .0001; > round($t,2):1.26 > > > PHP_OS:WINNT (2000) | PHP_VERSION:5.2.4 > $t=1.255; > round($t,2):1.25 > > $t += .0001; > round($t,2):1.26 > > -- > Vie

RE: [PHP] round()

2007-10-10 Thread Instruct ICC
> While we're entertaining algorithms, has anyone else noticed that > php's round() isn't the most accurate algorithm to round? For those that replied that there is a problem, can you provide examples? precision The optional number of decimal digits to round to, defaults to 0

RE: [PHP] Looking for help with a complex algorithm

2007-10-10 Thread Instruct ICC
If the OP wants any single valid set, then this seems to work. If he wants all valid sets, no joy. I added a 10.00 and a 0.22 to the $values array and varied the position of the 10.00 (before and after 3.76) and it seems to pull the first set where the first member in the $values array is a memb

RE: [PHP] Looking for help with a complex algorithm

2007-10-09 Thread Instruct ICC
> CC: php-general@lists.php.net > From: [EMAIL PROTECTED] > Date: Tue, 9 Oct 2007 15:58:22 -0400 > To: [EMAIL PROTECTED] > Subject: Re: [PHP] Looking for help with a complex algorithm > > And that is when I realize how much more I still need to learn about > php... IMHO, I don't think this has an

RE: [PHP] Looking for help with a complex algorithm

2007-10-09 Thread Instruct ICC
I never heard of the knapsack problem before this post. But the w in the w*x terms appear to be 1, and he seems to want an exact value, not "less than or equal to". I think my brute force factorial technique is a solution, but dynamic programming may be more efficient? Not familiar with DP alth

RE: [PHP] Looking for help with a complex algorithm

2007-10-09 Thread Instruct ICC
> Date: Tue, 9 Oct 2007 14:01:30 -0500 > From: [EMAIL PROTECTED] > To: php-general@lists.php.net > Subject: [PHP] Looking for help with a complex algorithm > > Good afternoon gurus and guru-ettes! > > I am searching for an algorithm that will take a list of monetary values > and determine which o

RE: [PHP] Socket how to die if connection broken

2007-10-08 Thread Instruct ICC
> I dont get that error > > Warning: socket_write() expects parameter 1 to be resource, null given in > /path/script.php on line 34 > > but just the original error msg > > Warning: socket_write(): unable to write to socket [32]: Broken pipe in Multiple times still? Or just the one time? Use h

RE: [PHP] Socket how to die if connection broken

2007-10-08 Thread Instruct ICC
HP] Socket how to die if connection broken > > Hi I got this error > > Warning: socket_write() expects parameter 1 to be resource, null given in > /path/script.php on line 34 > > Thanks > > ----- Original Message - > From: "Instruct ICC" <[EMAIL

RE: [PHP] Socket how to die if connection broken

2007-10-08 Thread Instruct ICC
Remove the @ and see if you get any useful message. > From: [EMAIL PROTECTED] > To: [EMAIL PROTECTED] > CC: php-general@lists.php.net > Date: Mon, 8 Oct 2007 19:04:45 +0100 > Subject: Re: [PHP] Socket how to die if connection broken > > Hi Stut Ive tried your example but still cant get it to wor

RE: [PHP] Socket how to die if connection broken

2007-10-08 Thread Instruct ICC
> But if the socket connection gets broken it creates an error msg > > Warning: socket_write(): unable to write to socket [32]: Broken pipe in > Warning: socket_write(): unable to write to socket [32]: Broken pipe in > Warning: socket_write(): unable to write to socket [32]: Broken pipe in > >

RE: [PHP] Alternating Anything

2007-10-05 Thread Instruct ICC
> > its mysterious statements like this that make code fragile, > > imho. i prefer the modulus approach. > > I would have agreed before reading the clarification. Not so sure > now... > > At the risk of semantic nitpicking, and only because I find this > discussion stimulating (pity us poor gee

RE: [PHP] Re: Super bizarre changing variable!!

2007-10-04 Thread Instruct ICC
> Brian Dunning wrote: > > I'm running the following code: > > > > $query3 = "DELETE FROM table1 WHERE referer=$referer ORDER BY creation > > LIMIT $numtodelete"; > > $result3 = mysql_query($query3); > > $string = "$total found, $n kept, $numtodelete extras removed ($query3)"; > > $x = mysql_quer

RE: [PHP] Beginner Tutorials for using CLASSES in PHP4

2007-09-29 Thread Instruct ICC
> From: [EMAIL PROTECTED] > Today's post was > prompted by my desire to prototype yet another suite of > browse-read-edit-add-delete functions for someone. I was just going to ask you what is BREAD. Cool, basically a Web-based CRUD? I can't find anything on it, can you point me to some sites?

RE: [PHP] Page Numbering (To The Unsubscribe Guy)

2007-09-21 Thread Instruct ICC
Just for grins, tell us the steps you took to unsubscribe. There is a link at the bottom of every email inviting you to unsubscribe. So I'm sure you began there. Tell us where it failed. _ Kick back and relax with hot games and co

RE: [PHP] MAX_FILE_SIZE not working with file uploads

2007-09-20 Thread Instruct ICC
In the To: php-general@lists.php.net> Date: Thu, 20 Sep 2007 14:45:36 -0500> From: [EMAIL PROTECTED]> Subject: [PHP] MAX_FILE_SIZE not working with file uploads>> The punchline question is: What am I missing?>> Now for the details.>> I have a form through which a user uploads image files. In t

RE: [PHP] disappearing array?

2007-09-20 Thread Instruct ICC
Wow this formatted badly. (new hotmail on Safari -- MS made FF not even render well) Anyway, are you sure you are reaching the code you want to reach? Perhaps !== is overkill and maybe even wrong when you should use ==. Same with the other === usage? Try some echo "HERE1\n"; echo "HERE2\n"; t

RE: [PHP] MAX_FILE_SIZE not working with file uploads

2007-09-20 Thread Instruct ICC
In the _ More photos; more messages; more whatever – Get MORE with Windows Live™ Hotmail®. NOW with 5GB storage. http://imagine-windowslive.com/hotmail/?locale=en-us&ocid=TXT_TAGHM_migration_HM_mini_5G_0907 -- PHP General Mailing Li

RE: [PHP] blocking exec() silently

2007-09-14 Thread Instruct ICC
> From: [EMAIL PROTECTED] > Actually in this example, there is an error handling function provided > in the comments. I'm commenting again because I want to stress the distinctions between errors E_ERROR, warnings E_WARNING, *USER* and other "messages/notices/etc.": http://php.net/manual/en/ref

RE: [PHP] blocking exec() silently

2007-09-14 Thread Instruct ICC
> Instruct ICC schrieb: > > I was going to mention > > http://php.he.net/manual/en/features.safe-mode.functions.php and ask > > you if you need any of those functions, but I prefer Nathan's answer. > > You may be able to set the error reporting in conjunction wi

Re: [PHP] blocking exec() silently

2007-09-13 Thread Instruct ICC
On 9/12/07, Samuel Vogel <[EMAIL PROTECTED]> wrote: > > Hey guys, > > Actually I'm still looking for a way to block for example the exec() > function without throwing an error! From: "Nathan Nobbe" <[EMAIL PROTECTED]> i dont know why you wouldnt just use the disable_functions directive in php.i

RE: [PHP] SEARCHING for an answer...

2007-09-11 Thread Instruct ICC
From: Jason Pruim <[EMAIL PROTECTED]> Here is the relevant code (I think...) $search = $_GET["search"]; $self = $_SERVER['PHP_SELF']; $qstring = "SELECT * FROM current WHERE FName like '%$qstring%' or LName like '%$qstring%' or Add1 like '%$qstring%' or Add2 like '% $qstring%' or City like '%$

RE: [PHP] Security Issue

2007-09-05 Thread Instruct ICC
It was able to call up external includes using the below code which resulted that the server was used to send out spam. How can I protect the code? Is ../inc/ in the web path? $_SERVER['DOCUMENT_ROOT'] If so, then what do you mean by "external includes"? You need to move inc/ to a path unre

Re: [PHP] Reload page after form submit

2007-08-30 Thread Instruct ICC
From: Martin Marques <[EMAIL PROTECTED]> Stut wrote: Wagner Garcia Campagner wrote: header('Location: index.php'); Although technically speaking that should be an absolute URL. AFAIK, they are both equivalent. Ahhh, if the OP meant, "Load a different page after doing some form processi

Re: [PHP] Reload page after form submit

2007-08-30 Thread Instruct ICC
From: Afan Pasalic <[EMAIL PROTECTED]> rough code, to give you an idea: ('".mysql_real_escape_string($first)."', '".mysql_real_escape_string($last)."') "); } else { $query = mysql_query(" select first, last from table where id=xyz ")

RE: [PHP] Reload page after form submit

2007-08-30 Thread Instruct ICC
From: "Wagner Garcia Campagner" <[EMAIL PROTECTED]> Is there a way to tell PHP to reload the page after the user submit the information, so the page is always updated?? Thanks in advance, Wagner. I don't get your fundamental problem. When a user submits a form, the page handling the submissio

RE: [PHP] Reload page after form submit

2007-08-30 Thread Instruct ICC
From: "Wagner Garcia Campagner" <[EMAIL PROTECTED]> Hello, I'm building a web page just like a blog... Where the user input some information... (name, website and comment) This information is stored in a file... And then the page displays it... When the user access the page the first time, t

Re: [PHP] Spam Post Defense / ID spam form posts

2007-08-23 Thread Instruct ICC
Because that means messing with the recipient list - that's donkey work your client should do, hence my use of reply-to-all. Wouldn't gmail thread it but still have 2 copies? I could send email TO/CC/BCC the list to a specific folder, but I'd still get the copy to me directly in another folder.

Re: [PHP] Spam Post Defense / ID spam form posts

2007-08-23 Thread Instruct ICC
Why don't you and others just reply to the list? (I'm smiling when I say this.) Wow, that's for that egg-sucking lesson. I would think it was clear from my answer that I know what a socket is. Sorry. You understood the concept but it wasn't clear to me that you understood about the socket.

Re: [PHP] Spam Post Defense / ID spam form posts

2007-08-23 Thread Instruct ICC
Not sure what you mean by "hand off the socket to multiple threads on multiple servers". I think you're talking about detecting that a POST is spam and passing that off to another machine to handle it. Yes, that is what I meant. A socket is a lower level "object" that the web server is using to

[PHP] Spam Post Defense / ID spam form posts

2007-08-23 Thread Instruct ICC
Can server1 receive a web page form post from remoteAttacker, identify it as spam (or a DoS or DDoS attack), hand off the socket to multiple threads on multiple servers owned by server1's owner, return multiple responses to remoteAttacker which normally would have been a single response returned

RE: [PHP] ptting the variable inside the input

2007-08-22 Thread Instruct ICC
From: "Hulf" <[EMAIL PROTECTED]> This does not work echo $title=$row['title']; echo ""; Ta, R. I'll pull a Johnny Carson divining moment and say: Did you need the first 'echo'? Does $title need to be set? Try: $title=$row['title']; You missed a double quote after your backslash; the atte

RE: [PHP] XHTML/CSS templates for developers

2007-08-04 Thread Instruct ICC
dered HTML? Thank you kindly for any insight. - sf To the person who started this post and everyone answering it... I would appreciate your thoughts on this post as well: From : Instruct ICC <[EMAIL PROTECTED]> Sent : Thursday, August 2, 2007 1:46 PM To :php-general@lists

[PHP] Separation of Roles; with Salaries

2007-08-02 Thread Instruct ICC
Finally I have the green light to get some separation of roles/duties. First there was just me. "Web Programmer", yet all web related hats. Then there was the "Server Administrator", and me, the "Web Developer" (sort of like peers). Although the admin doesn't like to change the server setting

Re: [PHP] Profile / Debug w/o server modification?

2007-08-01 Thread Instruct ICC
From: "Richard Lynch" <[EMAIL PROTECTED]> Your dev box should only match in software versions (okay, and any really funky specialized hardware like a hardware random number generator MAYBE). Regarding duplicating the box versus software: I'm working on a C++ project on a Mac Pro and a MacBook P

Re: [PHP] Profile / Debug w/o server modification?

2007-07-31 Thread Instruct ICC
From: "Richard Lynch" <[EMAIL PROTECTED]> Your dev box should only match in software versions (okay, and any really funky specialized hardware like a hardware random number generator MAYBE). Don't ask them for a Gigaplex Mu-on 16-cpu 64 Gig RAM 4 Terabyte hard drive box. Take an old box out of y

RE: [PHP] Unexpected values in an associative array

2007-07-31 Thread Instruct ICC
From: Ken Tozier <[EMAIL PROTECTED]> Hi I think this is probably just a misunderstanding on my part, but I'm creating associative arrays with string keys from MySQL query results and when I put a value in the array, I get the expected key association along with an index key that has a diffe

Re: [PHP] Profile / Debug w/o server modification?

2007-07-29 Thread Instruct ICC
From: "Richard Lynch" <[EMAIL PROTECTED]> On Fri, July 27, 2007 10:01 pm, Instruct ICC wrote: > If you mean get a dev box. You don't know how long I've been asking > for one > to match the production box. Your dev box should only match in software v

RE: [PHP] Authentication

2007-07-27 Thread Instruct ICC
From: "Dan Shirah" <[EMAIL PROTECTED]> All, I looked on PHP.net but I couldn't not find anything suitable to answer my question. Within PHP, is there a way to pull the name of the user that is currently logged into the PC? I know with some of the _SERVER functions you can pull the IP of the m

Re: [PHP] Profile / Debug w/o server modification?

2007-07-27 Thread Instruct ICC
From: "Richard Lynch" <[EMAIL PROTECTED]> > But xdebug and apd are probably moot. > > BTW, I'm not using separate development and production machines. Right there is your first problem. Solve that first. If you mean get a dev box. You don't know how long I've been asking for one to match the

[PHP] Profile / Debug w/o server modification?

2007-07-27 Thread Instruct ICC
Are there any "magic functions" like __sleep and __wakeup that get called upon entry and exit of user functions or user object methods? Something like __hookEntry For User Functions __hookExit For User Functions __hookOoEntry For User Object Methods __hookOoExit For User Object Methods Basicall

Re: [PHP] double output from trigger_error from command line

2007-07-20 Thread Instruct ICC
From: "Richard Lynch" <[EMAIL PROTECTED]> There's the display_error_in_browser or whatever it is that might be causing the second output... From the command line? _ http://imagine-windowslive.com/hotmail/?locale=en-us&ocid=TXT_T

Re: [PHP] repetition of tedious references

2007-07-19 Thread Instruct ICC
From: tedd <[EMAIL PROTECTED]> Olav: Mine too. But, Rasmus gave me this: $action = isset($_GET['action']) ? $_GET['action'] : null; Which could be translated to: $language = isset ($_SERVER["HTTP_ACCEPT_LANGUAGE"]) ? ($_SERVER["HTTP_ACCEPT_LANGUAGE"]) : "*"; I think that might help. Any

Re: [PHP] Re: Pirate PHP books online?

2007-07-18 Thread Instruct ICC
First "Hitler and the Nazis"[1] reference. You lose! Thanks for playing. :-) [1] http://en.wikipedia.org/wiki/Godwin's_Law Dang I didn't know that existed, thanks for the reference now I have something for all my other discussions. ROFLMAO __

RE: [PHP] Error on installing under Windows Vista leads to inability to uninstal

2007-07-18 Thread Instruct ICC
From: Stephan G <[EMAIL PROTECTED]> php-5.2.3-win32-installer.msi It has the following md5 sum, taken locally on my system: 4d042f649d9c264477e1b421c64c6435 I can confirm the same md5 sum. "The installer has encountered an unexpected error installing this package. This may in

Re: [PHP] Error on installing under Windows Vista leads to inability to uninstal

2007-07-18 Thread Instruct ICC
He did say "or Win XP". I'll have to go back to find your original post to see if I can help. Well, from your subject, maybe you can use a System Restore point? --- If you need a stable, secure OS, get Ubuntu. If you need a stable, secure OS, and need new hardware, get

Re: [PHP] Re: Pirate PHP books online?

2007-07-18 Thread Instruct ICC
From: Tijnema <[EMAIL PROTECTED]> I didn't read the full thread (because it is 80 emails...) But really, it isn't special that these books are found on the net, and you really can't stop them, nor can the author of the book. With a quick search, I found these books related to PHP(all "free" to

Re: [PHP] double output from trigger_error from command line

2007-07-18 Thread Instruct ICC
From: "Instruct ICC" <[EMAIL PROTECTED]> From: "Olav Mørkrid" <[EMAIL PROTECTED]> sorry. still get it twice. c:\>php -r "error_reporting(E_ALL ^ E_NOTICE); trigger_error(\"hello\", E_USER_ERROR);" PHP Fatal error: hello in Command line

Re: [PHP] double output from trigger_error from command line

2007-07-18 Thread Instruct ICC
From: "Olav Mørkrid" <[EMAIL PROTECTED]> sorry. still get it twice. c:\>php -r "error_reporting(E_ALL ^ E_NOTICE); trigger_error(\"hello\", E_USER_ERROR);" PHP Fatal error: hello in Command line code on line 1 Fatal error: hello in Command line code on line 1 - if i do error_reporting(0) then

Re: [PHP] Sessions Lose Form Field Data When Back Button Used?

2007-07-17 Thread Instruct ICC
From: "Richard Lynch" <[EMAIL PROTECTED]> It's still browser-dependent, really, but now your browser isn't doing what YOU want for your form-filling-in-experience... I like this. I'll have to add it to my "operator error", "pass the buck" bag of tricks. There's still nothing you can do abo

  1   2   >