Re: [PHP] PHP debugger



NOTE: If you are interesting in PHP Debuggers, this is not the mail, check the start of the thread since after I decided to try JasonPruim Debug :p we are trying to solve one specific  problem.

Now, to who is following the thread ... don't hung me, but i think the problem was there was because there was no permission to write in a logfile.

---> BEGIN failed--compilation aborted at /home/httpd/bin/esnic/whois.pl line 9.
line9 = use EPP::Client;
right at Client.pm there is the declaration og the log file.

My inexcusable big mistake, don't check the logs before, in fact i saw it yesterday looking for other thing. But since running the sccript from command line there was no error... I didn't realise to check them :-/

Now it works :)

Thank you very much for following and assistance.



Edward Kay escribió:
-----Original Message-----
From: Jason Pruim [mailto:japruim@xxxxxxxxxx]
    

  
Morning,

So looking at those scripts I realized that perl is nothing like php ;)

Is there other info that the different places need? or is it just a
different URL?

I'm wondering why you could do something like:

<?PHP

switch(strtolower($ext)) {
case 'es';
case 'com.es';
case 'org.es';
case 'edu.es';
case 'gob.es';
	$cmd = HTTP://www.myCool.es/?query="$nom.$ext";
	break;
case 'eu';
	$cmd = HTTP://www.myCool.eu/?query="$nom.ext";
	break;
default;
	$cmd = HTTP://www.whois.com/?query="$nom.ext";
break;
}
?>

instead of calling out to a different script?

Also, I noticed that in your script where you have "default:" in your
switch, you have a : instead of a ;

    

Actually, the colon is correct: http://uk.php.net/switch

You also need to enclose your string declarations correctly and add the $
before ext, e.g.
$cmd = "http://www.whois.com/?query=$nom.$ext";
or
$cmd = 'http://www.whois.com/?query='.$nom.'.'.$ext;

Edward


  

--

JPEG image



Relevant Pages

  • Re: [PHP] PHP console script vs C/C++/C#
    ... My script is taking a longer time to execute than I want. ... I prefer to write in PHP because that is what I know best. ... This is why I am thinking about rewriting my whole script in a C language. ... Perhaps there are different methods I could be using to speed up execution. ...
    (php.general)
  • Re: How to Add a Feeback Form
    ... I saw nothing in that script that indicates where the form is e-mailed to so ... Greg Maxey/Word MVP ... PHP or not. ... have the support available yet. ...
    (microsoft.public.frontpage.programming)
  • How best to show PHP source? (was: One page, multiple submit buttons)
    ... script to add to the top of a PHP script to enable showing its ... Maybe anybody submitting their own PHP code for critique here ... Anything posted to a newsgroup is a "snapshot" of what the ... there ought to be a FAQ for this ...
    (comp.lang.php)
  • Re: [PHP] PHP console script vs C/C++/C#
    ... My script is taking a longer time to execute than I want. ... I prefer to write in PHP because that is what I know best. ... thinking about rewriting my whole script in a C language. ... execution of the code. ...
    (php.general)
  • Email form script
    ... I have a web form that posts to a .php ... who cannot run .php on their server. ... Or does anyone have a .asp script that will ... Thank you for choosing FormToEmail by FormToEmail.com ...
    (microsoft.public.scripting.jscript)