Re: [PHP] Getting full HTTP request the page was requested with?

2002-12-15 Thread Hatem Ben
$url = http://myserver.com;; $sockhandle = @fsockopen($url, 80, $errno, $errstr); if(!$sockhandle) { $mes = server $url not available!; $result = centerh5$mes/h5/center; return $result; } else { $request = GET / HTTP/1.1\r\n; $request .= User-Agent: Mozilla/4.0 (compatible; MSIE 5.5; Windows

[PHP] how could a php script return a dns error ?

2002-12-28 Thread Hatem Ben
Hello all, I got a strange problem, a wrong php script was upladed in my hosting server and make my website return a dns error ! i've discoverd after one day that my index.php was a wrong one ! normally it should return another error related to script not to dns ! can someone explain me this ?

Re: [PHP] how could a php script return a dns error ?

2002-12-28 Thread Hatem Ben
I don't get a dns error on this I get - 'zero sized reply' can someone explain me this ? Is this caused by server configuration or something else ? I would say that a php error cannot directly cause dns problems - so the error message may be wrong ! (what is generating the message ?)

Re: [PHP] how could a php script return a dns error ?

2002-12-28 Thread Hatem Ben
it's not an IE specefic :)) netscape or opera or whatever will return the same error message. - Original Message - From: Paul Reed [EMAIL PROTECTED] To: 'Hatem Ben' [EMAIL PROTECTED] Sent: Saturday, December 28, 2002 10:19 PM Subject: RE: [PHP] how could a php script return a dns error

Re: [PHP] how could a php script return a dns error ?

2002-12-28 Thread Hatem Ben
-tn.com not available!: $errno : $errstr/h5/center; } else { echo centerh5server dynamix-tn.com is available!: $errno : $errstr/h5/center; } and run it from here, it return server not available. - Original Message - From: Leif K-Brooks To: Hatem Ben Cc: [EMAIL PROTECTED] Sent

Re: [PHP] how could a php script return a dns error ?

2002-12-28 Thread Hatem Ben
- Original Message - From: Sean Burlington [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, December 28, 2002 9:24 PM Subject: Re: [PHP] how could a php script return a dns error ? Hatem Ben wrote: This is what i get exactly : error The page cannot be displayed

[PHP] RE : [PHP] how could a php script return a dns error ?

2002-12-28 Thread Hatem Ben
- Original Message - From: Michael J. Pawlowsky [EMAIL PROTECTED] To: Hatem Ben [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Saturday, December 28, 2002 11:20 PM Subject: Re: [PHP] how could a php script return a dns error ? The problem is that it can mean a bunch of things When I

Re: [PHP] how could a php script return a dns error ?

2002-12-28 Thread Hatem Ben
Sorry I've just removed the file. - Original Message - From: John Nichel [EMAIL PROTECTED] To: Hatem Ben [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Sunday, December 29, 2002 12:55 AM Subject: Re: [PHP] how could a php script return a dns error ? I went to it in Netscape 4.x, 6 7

Re: [PHP] how could a php script return a dns error ?

2002-12-28 Thread Hatem Ben
/snip It's not censorship they are economising by using a proxy server and using one that gives unhelpful error messages BTW - they in this case are the people providing you with your connection (not the web hosting company) they are not blocking the site but when the page returns

[PHP] highlight keywords issue

2003-01-12 Thread Hatem Ben
Heya all, I'm trying to highlight search keywords in a string, everything work expect when this keyword is inside a tag like this : keyword (php) : a href=?go=phpphp/a img src=php.gif border=0 alt=php.net will be highlighted to : a href=?go=b style=color: black; background-color:

Re: [PHP] highlight keywords issue

2003-01-12 Thread Hatem Ben
I have find this code very helpfull : - Original Message - From: Timothy Hitchens (HiTCHO) [EMAIL PROTECTED] To: 'Hatem Ben' [EMAIL PROTECTED]; 'PHP List' [EMAIL PROTECTED] Sent: Sunday, January 12, 2003 2:28 PM Subject: RE: [PHP] highlight keywords issue You will need to break apart

Re: [PHP] highlight keywords issue

2003-01-12 Thread Hatem Ben
- Original Message - From: Timothy Hitchens (HiTCHO) [EMAIL PROTECTED] To: 'Hatem Ben' [EMAIL PROTECTED]; 'PHP List' [EMAIL PROTECTED] Sent: Sunday, January 12, 2003 2:28 PM Subject: RE: [PHP] highlight keywords issue You will need to break apart the entire document then process each area inside

Re: [PHP] class inside class

2003-01-13 Thread Hatem Ben
Assuming you have class WebPage { var $property1; function get_property1() { return $this-$property1; } } class Sample extends WebPage{ } To access $property1 from your WebPage class just do $page = new Sample; $prop1 = $page-get_property1(); Otherwise try to send a

[PHP] create executable from php script

2003-01-22 Thread Hatem Ben
heya all, I remember that some developers started a project to create stand-alone application from php script, can someone guide me to find it again ? I haven't found any url talking about it. Regards, Hatem -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] create executable from php script

2003-01-22 Thread Hatem Ben
nop, not the php-gtk , but something that can create binary executable code from any php script. Do you mean gtk.php.net? Hatem Ben wrote: heya all, I remember that some developers started a project to create stand-alone application from php script, can someone guide me to find it again

Re: [PHP] create executable from php script

2003-01-22 Thread Hatem Ben
I know it also, still related with php-gtk. Thanks anyway Hatem - Original Message - From: Chris Shiflett [EMAIL PROTECTED] To: Hatem Ben [EMAIL PROTECTED]; Marek Kilimajer [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Wednesday, January 22, 2003 4:42 PM Subject: Re: [PHP] create

[PHP] Vars inside an sql query [Regular expression question]

2003-06-12 Thread Hatem Ben
Greetings all, I got a headache doing this, i need to get vars inside an sql query. For example : $query = select * FROM `table` where id='$value' order by name; preg_match_all(/^('\$(.*)')/si, $query,$matches); any help plz ? Thanks, Hatem

Re: [PHP] Re: Vars inside an sql query [Regular expression question]

2003-06-12 Thread Hatem Ben
Oh, ok this is how i want to do it exactly : query.php ?php $query = select * FROM `table` where id='$value' order by name; ? parse.php ?php $fcontents = join('' , file('query.php')); preg_match_all(/^('\$(.*)')/si, $fcontents,$matches); print_r($matches) ? Thanks

Re: [PHP] Re: Vars inside an sql query [Regular expression question]

2003-06-12 Thread Hatem Ben
Sorry this is more correct : -- starting query.php select * FROM `table` where id='$value' order by name -- ending query.php Hatem Ben [EMAIL PROTECTED] a écrit dans le message de news: [EMAIL PROTECTED] Oh, ok this is how i want to do it exactly : query.php ?php $query

Re: [PHP] Re: Vars inside an sql query [Regular expression question]

2003-06-12 Thread Hatem Ben
I agree with you Jay, but those cases are already done, and i got no problem with RE there Thanks anyway Hatem - Original Message - From: Jay Blanchard [EMAIL PROTECTED] To: Monu Ogbe [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Thursday, June 12, 2003 3:17 PM Subject: RE: [PHP] Re: Vars

[PHP] Vars inside an sql query [Regular expression question] - Again

2003-06-12 Thread Hatem Ben
I'm asking again the same question, coz i guess my question wasn't clear. i just need to retreive vars inside query.txt, my regular expression seems to be correct for me, but i don't find why it doesn't wrk -- Starting query.txt select * FROM `table` where id='$value' order by name --

Re: [PHP] Vars inside an sql query [Regular expression question] - Again

2003-06-12 Thread Hatem Ben
It's not working also - Original Message - From: Marek Kilimajer [EMAIL PROTECTED] To: Hatem Ben [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Thursday, June 12, 2003 5:23 PM Subject: Re: [PHP] Vars inside an sql query [Regular expression question] - Again preg_match_all

Re: [PHP] Vars inside an sql query [Regular expression question] - Again

2003-06-12 Thread Hatem Ben
Well, it's finally working, but still very confusing ... thanks all ?php $fcontents = join('' , file('query.txt')); preg_match_all('/(\'\$(.*)\')/si', $fcontents,$matches); print_r($matches) ? Regards, Hatem - Original Message - From: Hatem Ben [EMAIL PROTECTED] To: [EMAIL PROTECTED

[PHP] one corrupted image and imagecreatefromjpeg

2003-06-18 Thread Hatem Ben
Hey all, I have one corrupted image in a list of thoughsand of images, and the program stop with this message Corrupt JPEG data: bad huffman code Any idea to ignore this image and continue ? i cannot detect which image is corrupted and imagecreatefromjpeg return true thank you, Hatem

[PHP] Fw: PHP forever ;)

2003-06-25 Thread Hatem Ben
Hey all, just to inform u that the choice for baccalaureat 2003 website in tunisia was PHP and redhat (www.bac.tn) http://193.95.69.17/ the 1st year it was using oracle, windows, then windows 2000 in load balancing and now redhat linux !! this is what i call the good choice ;) Cheers,

Re: [PHP] WYSIWYG CMS Part2

2003-02-07 Thread Hatem Ben
Warning: Access denied for user: 'root@localhost' (Using password: YES) in /home/sascha/www/docs/freecon/includes/global.inc.php on line 8 Warning: MySQL Connection Failed: Access denied for user: 'root@localhost' (Using password: YES) in /home/sascha/www/docs/freecon/includes/global.inc.php on

Re: [PHP] MIME Decoding Class

2003-02-08 Thread Hatem Ben
http://sourceforge.net/projects/phpmimeclass Jonathan Chum [EMAIL PROTECTED] a écrit dans le message de news: [EMAIL PROTECTED] I'm looking through Google for MIME decoding classes, one developed by Richard Heyes used in Pear and a few others. What I'm curious is how complete are these

[PHP] where is cookie limitation on php ?

2003-03-21 Thread Hatem Ben
Greetings all, Can someone tell me where is the limitation on the number/size of cookies that could be used ? Assuming we have : ?php $table = array(a,b,c,d); $table = array_pad($table, 20,e); while (list($key, $value) = each ($table)) { setcookie( DX_A[$key], $value ); } setcookie( DX_B, test

Re: [PHP] Humour in programming?

2003-04-01 Thread Hatem Ben
hehe and the good news, ppl don't have to upgrade to the latest PHP 2.0.2 ... coz the php 2.0.1 don't seems to be seriously buggy ;-) Cheers, Hatem - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Tuesday,

Re: [PHP] Images retrieved from MYSQL database using PHP becoming corrupted.

2002-11-04 Thread Hatem Ben
hello, Check the PHP-DB archives you'll find a code for the upload, and this one for viewing image : ? $mysql_hostname = ; $mysql_username = ; $mysql_passwd = ; $mysql_dbname = ; // Connecting, selecting database $link = @mysql_connect($mysql_hostname,$mysql_username, $mysql_passwd)

[PHP] missing Parser Error ?

2002-11-10 Thread Hatem Ben
why PHP don't return a parse error here ? code case browse : $text = $myobject-browse();;; // some codes ... break; /code i guess syntax isn't correct or what do you think ?! Best regards Hatem -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[PHP] xslt question

2002-11-15 Thread Hatem Ben
hey all I'm using xslt_process(), and noticed that it add a meta just after the head : meta http-equiv=Content-Type content=text/html; charset=UTF-8 Where can i change it, or desactivate it ? thanks Hatem -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Whois Search in PHP

2002-11-17 Thread Hatem Ben
this is what the whois server return exactly for Google (using whois.internic.net): Whois Server Version 1.3 Domain names in the .com, .net, and .org domains can now be registered with many different competing registrars. Go to http://www.internic.net for detailed information.

Re: [PHP] Whois Search in PHP

2002-11-17 Thread Hatem Ben
emails to [EMAIL PROTECTED] :))) Hatem - Original Message - From: Chandu Nannapaneni [EMAIL PROTECTED] To: Hatem Ben [EMAIL PROTECTED] Sent: Sunday, November 17, 2002 8:21 PM Subject: Re: [PHP] Whois Search in PHP No... U got me wrong.. Actually I'm looking for PHP scripts which can

Re: [PHP] OOP-classes in PHP

2002-11-17 Thread Hatem Ben
just change make your new class global : class overall { var $loaded; function load($class){ eval (global \$$class;); eval(\$$class = new $class;); return true; } } then you can call it using $overall = new overall; $overall-load('foo'); // This should work now ;). $foo-foo(); Hatem

Re: [PHP] OOP - transfering object-pointer

2002-11-19 Thread Hatem Ben
It wrks okay here; I guess i'm keeping register_global= On in php.ini ! Try debuging your sample using get_declared_classes and you'll find what you're missing class overall { var $loaded; function load($class){ eval (global \$$class;); eval(\$$class = new $class;);

Re: [PHP] Creating mySql search feature.....

2002-11-24 Thread Hatem Ben
Hello, What you need is : 1- parse your query and make it boolean apple orange become apple and orange and so on 2- then you can generate a MySQL query based on that like this way --- SELECT id, field1 match (field1) against (' apple orange ') as relevance FROM hospitality WHERE

[PHP] Huffman encoding

2002-11-24 Thread Hatem Ben
Hey all I'm looking to implement the huffman encoding in PHP, but i would like to ask if it isn't already done ? (why reinventing the wheel) Thx Hatem -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Huffman encoding / almost done

2002-11-24 Thread Hatem Ben
Sorry for the last email (i wasn't looking to highjack any thread :( very sorry guys !) - Original Message - From: Hatem Ben [EMAIL PROTECTED] To: PHP [EMAIL PROTECTED] Sent: Sunday, November 24, 2002 2:06 PM Subject: [PHP] Huffman encoding Hey all I'm looking to implement

Re: [PHP] Re: How to create zip files in PHP ?

2002-11-27 Thread Hatem Ben
check this, it could help : http://www.phpclasses.org/browse.html/class/42.html Hatem - Original Message - From: Derick Rethans [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, November 27, 2002 4:26 PM Subject: [PHP] Re: How to create zip files in PHP ? Php User wrote: How

Re: [PHP] Help with the PHP

2002-11-28 Thread Hatem Ben
Welcome to the new world ;) before clicking or asking start reading what is PHP (http://www.php.net), and in what it could be usefull. then you can getting started here : http://www.php.net/manual/en/tutorial.php - Original Message - From: Ted Frank [EMAIL PROTECTED] To: [EMAIL

[PHP] PHP.net broken

2003-11-24 Thread Hatem Ben
Greetings, it's from PHP.net : Parse error: parse error, expecting `')'' in /local/Web/sites/phpweb/include/layout.inc on line 29 Fatal error: Call to undefined function: make_image() in /local/Web/sites/phpweb/index.php on line 117 Regards, Hatem -- PHP General Mailing List

Re: [PHP] math in PHP

2004-09-20 Thread Hatem Ben Yacoub
?php $var = 1+1+1+1; eval(echo $var;); // return 4 // OR eval(\$res = $var;); echo $res; // return 4 also ... ? -Hatem - Original Message - From: Whitehawk Stormchaser [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, September 18, 2004 11:15 PM Subject: [PHP] math in PHP