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 ;

May be causing some grief :)


On Apr 29, 2008, at 4:54 AM, J. Manuel Velasco - UBILIBET wrote:

Hi,

Thanks for the replay, at least the debugger runs and it's easy to install :)

I am new here, this is a small company and I am the only computing man, so the person who implemented theses scripts are far away to ask for something.

Since I deduced there are different whoises scripts because the way to make the petition is different depending on the domain (es) the query is to an organization, ESNIC, (eu) query is to another organization, EURID and for the rest it is executed just the *NIX whois command.

So since the connection, and the data exchange structure are different, we need diferent scripts.

I attach now the files I metioned in my last email. If anybody can check why the whois_es script doesn't run... you will be my idol !

Note: I hae change the name os the scripts since they are located in specific place.

Thanks in advance.

Jason Pruim escribió:


On Apr 28, 2008, at 10:58 AM, J. Manuel Velasco - UBILIBET wrote:

Ok, so I am going to try this one, Jason Pruim, let's check how it works ... :p

PROBLEM DESCRIPTION:
In my whois web-app, when a EU doamin is queried, whois.pl perl script is lunched and I got the right result to my PHP script I the result is shown at the web. If I do the query to a ES domain, other whois.pl script is lunched, but passthru doesn't execute it. Both scripts are almost the same, they are in the same file structure, same machine, same permissions...

Have you tried to use a program to compare the files? Make sure that only the necessary lines are different?


The most strange is that I logged the command petition and If I copy and paste exaclty the same that is passed to passthru, the command for the whois to ESNIC is executed in the command line and shows the result.

Collegues told me to check the ENV, permissions, and so on, I did with no results, also, the other perl script that is almost the same is executed, so I feel very very lost.

Three files attached:
whois_es.pl         -> perl script to query whois in ESNIC
whois_eu.pl         -> perl script to query whois in EURID
container.php -> intermediate page where the commands are build and passthru is executed.

Is there any particular reason you are using different perl scripts instead of a simple whois script for all of them?

Also... the only attachment was your logo :)




Thank you very much for any hint. I feel lost almost one week with this BUG.

Jason Pruim escribió:


On Apr 28, 2008, at 10:32 AM, Thijs Lensselink wrote:

Quoting Daniel Brown <[EMAIL PROTECTED]>:

On Mon, Apr 28, 2008 at 7:00 AM, J. Manuel Velasco - UBILIBET
<[EMAIL PROTECTED]> wrote:

Hello,

Anybody knows a good debugger for PHP and basic usage?

   There's a pretty good one known as Jason Pruim.  ;-P

ROFL!


Yall have too much time on your hands! :P





--
</Daniel P. Brown>
Dedicated Servers - Intel 2.4GHz w/2TB bandwidth/mo. starting at just
$59.99/mo. with no contract!
Dedicated servers, VPS, and hosting from $2.50/mo.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php





--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



--

Jason Pruim
Raoset Inc.
Technology Manager
MQC Specialist
3251 132nd ave
Holland, MI, 49424-9337
www.raoset.com
[EMAIL PROTECTED]





--
<Manucastellano.jpg>

--

Jason Pruim
Raoset Inc.
Technology Manager
MQC Specialist
3251 132nd ave
Holland, MI, 49424-9337
www.raoset.com
[EMAIL PROTECTED]




--
<Manucastellano.jpg>
<whois_es.pl><whois_eu.pl><container.php>

--

Jason Pruim
Raoset Inc.
Technology Manager
MQC Specialist
3251 132nd ave
Holland, MI, 49424-9337
www.raoset.com
[EMAIL PROTECTED]



Reply via email to