Re: [PHP] math in PHP

2004-09-20 Thread Hatem Ben Yacoub
-Hatem - Original Message - From: "Whitehawk Stormchaser" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, September 18, 2004 11:15 PM Subject: [PHP] math in PHP > Hi! > I have been trying to make some sort of calculator in PHP, but I have stumbled > on a problem... I have

[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 (http://www.php.n

[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, Hat

[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

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 Regards, Hatem - Original Message - From: "Hatem Ben" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: "Marek Kilimajer" <[EMAIL PROTECTED]> Sent: Thursday, June 12, 2003 4:

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 expr

[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 -- E

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: [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 exact

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 parse.php Thanks "Chris Hayes" <[EMAIL PROTECTED]> a écrit dans le message de news: [EMAIL PROTECTED] > At 13:54 12-6-03, you wrote: > >>I got a headache doing this, i need to get vars inside an sql query. For > >

[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] 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: T

[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 : This is what php return : Array ( [DX_A] => Array ( [4] => e [5] => e [6] => e [7] => e [8] =>

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

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 li

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:

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] 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: http://www.ph

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 snip

Re: [PHP] highlight keywords issue

2003-01-12 Thread Hatem Ben
it's really boring without good docs - 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 Subj

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

[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) : php will be highlighted to : php">php php.gif" border=0 alt="php.net"> I have tryed to separate text from html, then highlight it then join ht

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

2002-12-28 Thread Hatem Ben
> >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 whe

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

[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 prob

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 g

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

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

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 ?

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 mes

[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] 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 = "$mes"; return $result; } else { $request = "GET / HTTP/1.1\r\n"; $request .= "User-Agent: Mozilla/4.0 (compatible; MSIE 5.5; Windows 98)\r\n"; $r

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 PROT

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: >

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 enc

[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] 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

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;"); print_r(get_declared_

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(); H

Re: [PHP] Whois Search in PHP

2002-11-17 Thread Hatem Ben
time it return a fresh information, just use the suitable server. PS : send your emails to [EMAIL PROTECTED] :))) Hatem - Original Message - From: "Chandu Nannapaneni" <[EMAIL PROTECTED]> To: "Hatem Ben" <[EMAIL PROTECTED]> Sent: Sunday, November 17, 2002

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. GOOGLE.COM.IS.THE.

[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 : Where can i change it, or desactivate it ? thanks Hatem -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] missing Parser Error ?

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

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 : Hope this will help Hatem "Darren McPhee" <[EMAIL PROTECTED]> a écrit dans le message de news: [EMAIL PROTECTED] > I have spent the last 3 days trying to figure this out. And will probably > g