[PHP] Can't add PHP4 module to Apache (win32)
Hi All! Just installed PHP4 & Apache. Apache has started well. Then I've added two strings from install.txt to the httpd.conf: LoadModule php4_module c:/php/sapi/php4apache.dll AddType application/x-httpd-php .php4 (I've PHP installed in c:\apps\PHP\) After Apache restart, I've got following message: Syntax error on line 203 of c:/apps/apache/conf/httpd.conf: Cannot load c:/apps/php/sapi/php4apache.dll into server: (126) The specified module could not be found: Any suggestions? Best regards, Andrew Kirilenko. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Refresh problems
Hello! Sorry for offtopic. I'm developing PHP page for the displaying some kind of statistic. It displays graphics for the selected user. Pictures updates every 5 minutes by external program. I've form with submit button. If I press this button with different user selected, everything is OK. But if I press this button for the same user selected, images doesn't update!!! I've added and to the page - it doesn't help! Please, help! Best regards, Andrew Kirilenko. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] RE: overloading variables in child classes
Hello! > Is there something I don't understand ? Yes. According OOP concepts, derived class inherits all functionality and data from the base. So, if you have $shared variable in the base class, your derived class will have it automatically. But PHP allows you to declare this variable once again in the derived class. In C++ you will get comilation error in this case. Best regards, Andrew Kirilenko. > -Original Message- > From: Alain Dresse [mailto:[EMAIL PROTECTED]] > Sent: Saturday, October 27, 2001 10:12 PM > To: [EMAIL PROTECTED] > Subject: [PHP] overloading variables in child classes > > > Hi all, > > I am a bit puzzled by the way PHP treates variables that have the > same name > in a base class and a child class. > It seems to me that if a child class and its parent both have a variable > with the same name, then they should be different variables. Instead, the > example below indicates that they is only one variable : > > class base { > var $shared; > function base() {$this->shared = "base";} > function test() {echo("\$shared in base : " . $this->shared . > "\n");} > } > > class child extends base { > var $shared; > function child(){$this->base(); $this->shared = "child";} > function test() { >echo ("\$shared in child : " . $this->shared . "\n"); > parent::test(); > } > } > > $the_child = new child(); > $the_child->test(); > > > I would have expected the output to be > $shared in child : child > $shared in base : base > > instead I have > $shared in child : child > $shared in base : child > > Is there something I don't understand ? > > Regards, > Alain Dresse > [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] RE: can't seem to compile 4.0
Hello! Yiu must have linux includes installed. Best regards, Andrew Kirilenko. > -Original Message- > From: Ray Todd Stevens [mailto:[EMAIL PROTECTED]] > Sent: Saturday, October 27, 2001 8:56 PM > To: [EMAIL PROTECTED] > Subject: [PHP] can't seem to compile 4.0 > > > I have been trying to get the php code to compile and can't seem to > make this work. I keep getting an error > > In file included from /usr/include/errno.h:36, > from zend_language_scanner.c:2718: > /usr/include/bits/errno.h:25: linux/errno.h: No such file or directory > > > Ray Todd Stevens Specialists in Network and Security > Consulting > Senior ConsultantSoftware audit service available > Stevens Services > Suite 21 > 3754 Old State Rd 37 N > Bedford, IN 47421 > (812) 279-9394 > [EMAIL PROTECTED] > > Thought for the day: > Kids do what we do not what we say > > For PGP public key send message with subject > please send PGP key > > If this message refers to an attachment the attachment > may arrive as a seperate mail message depending on the > type of mail client and gateway software you are using. > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] WindowsXP, PHP4 and MS SQL functions
Hello! Have you specified path to extensions? In my case: extension_dir = c:/apps/php/extensions/ Best regards, Andrew Kirilenko. > -Original Message- > From: Brandon Orther [mailto:[EMAIL PROTECTED]] > Sent: Thursday, November 01, 2001 1:41 AM > To: PHP User Group > Subject: [PHP] WindowsXP, PHP4 and MS SQL functions > > > Hello, > > I am trying to get php4 to use mssql function under WindowsXP. I don't > know if this is a problem or not. > I uncommented the extensions line in the php.ini file that says: > extension=php_mssql.dll > > But when I try to use mssql_connect it says call to undifiened function. > Does anyone know anything I should try to resolve this?> > > Thanks > Brandon > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] imageCopy :-(
Hello! You should open "test.bmp" first. Best regards, Andrew Kirilenko. > -Original Message- > From: jtjohnston [mailto:[EMAIL PROTECTED]] > Sent: Saturday, November 10, 2001 1:15 PM > To: [EMAIL PROTECTED] > Subject: [PHP] imageCopy :-( > > > Not that I'm sleep deprived ... :o) > > Simple, I create an image, add a bunch of text and what not. > Now I want to add a graphic. (Probably a couple, who knows?) > > imageCopy("test.bmp",$image,10,10,10,10,350,500,50); <== doesn't > work. > > Is this even the right function?? > > Description: > int ImageCopyMerge (resource dst_im, resource, src_im, > int dst_x, = 10 > int dst_y, = 10 > int src_x, = 10 > int src_y, = 10 > int src_w, = 350 > int src_h, = 500 > int pct = 50 > ) > > So what am I doing wrong? > > snip--- > header("Content-type: image/png"); > > $height = 350; > $width = 500; > $image = imagecreate($width, $height+350); > > $white = imagecolorallocate($image, 255, 255, 255); > $red = imagecolorallocate($image, 255, 0, 0); > $green = ImageColorAllocate($image, 0, 255, 0); > $blue = ImageColorAllocate($image, 0, 0, 255); > $black = imagecolorallocate($image, 0, 0, 0); > > ImageString($image,5,30, 30 +350, "hello",$blue); > > imageCopy("test.bmp",$image,10,10,10,10,350,500,50); > > imagepng($image); > imagedestroy($image); > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] url exist?
Hello! The simpliest way: $f = @fopen("http://foobar.baz/somefile.ext";, "r"); if ($f) { fclose($f); echo "exists!" } else { echo "no exists!" } Best regards, Andrew Kirilenko. > -Original Message- > From: jtjohnston [mailto:[EMAIL PROTECTED]] > Sent: Friday, November 16, 2001 9:16 AM > To: [EMAIL PROTECTED] > Subject: [PHP] url exist? > > > Any way of finding out if this exists? > > http://www.somewhere.com/image.jpg > > if yes {} else {}; > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Re: strpos
Hello! if (!strpos(...)) will be better... Best regards, Andrew Kirilenko. > -Original Message- > From: Martin Thoma [mailto:[EMAIL PROTECTED]] > Sent: Friday, November 16, 2001 9:28 AM > To: [EMAIL PROTECTED] > Subject: [PHP] Re: strpos > > > strpos return false if the search fails. You have therefore to test for: > > if (strpos(...,...) === false) > > or > > if (strpos(...,...) !== false) > > Martin > > > Jtjohnston wrote: > > > I suppose I'm doing this right? I want to know if the user entered > > "\.jpeg" or "\.jpg". If he didn't, it should error. > > > > It errors anyways? What do I have to do add slashes in my ??? > > :o) > > > > // if((!strpos($yourimage, "\.jpg")) || (!strpos($yourimage, > > "\.jpeg"))) \\ <--- tried both! > > if((!strpos($yourimage, ".jpg")) || (!strpos($yourimage, ".jpeg"))) > > { > > error_found("error found"); > > $errorfound++; > > } > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Regular expressions?
Hello! You should write something like this: if (preg_match("/(.*)<\/H2>/Ui", $str, $matches)) echo $matches[1]; U modufier - ungreedy match i modifier - case insentensive >Where can I start to learn reg-exp? If you want to get more abot regexp - read php manual at least.Or try to find some good perl book (there are a lot of free in the net). Or type "regexp tutorial" in google. > Should I use the ereg- oder preg-functions? I prefer preg style, because of more flexible and powerful syntax. Best regards, Andrew Kirilenko. > -Original Message- > From: Martin Thoma [mailto:[EMAIL PROTECTED]] > Sent: Friday, November 16, 2001 9:31 AM > To: [EMAIL PROTECTED] > Subject: [PHP] Regular expressions? > > > Hello! > > I need to search for strings between html-tags. For example, I need to > know if the String "Searchstring" is between "" and "" > (case-insensitive). > > How is it done? > > I think I need regular expressions, but I have no idea about it. I'm not > getting to clever out of the php-documentaion. Where can I start to > learn reg-exp? Should I use the ereg- oder preg-functions? Help! > > Martin > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Re: strpos
Oops. Forgot about 0 return ;( > -Original Message- > From: Martin Thoma [mailto:[EMAIL PROTECTED]] > Sent: Friday, November 16, 2001 9:42 AM > To: [EMAIL PROTECTED] > Subject: Re: [PHP] Re: strpos > > > > if (!strpos(...)) > > will be better... > > Why? > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] how to pass PhP variables thru HREF command
Hello! Yes, you are right. And ou can get passed values in the predication.php via: global $HTTP_GET_VARS; $hometeam = $HTTP_GET_VARS["hometeam"]; $awayteam = $HTTP_GET_VARS["awayteam"]; Best regards, Andrew Kirilenko, Seniour Programmer / System Administrator, Internet Service. -Original Message- From: David Yen [mailto:[EMAIL PROTECTED]] Sent: Friday, June 22, 2001 3:46 AM To: [EMAIL PROTECTED] Subject: [PHP] how to pass PhP variables thru HREF command Hi. am using SQL Server. I wrote a php page that displays the NFL game schedule after query the database. I want to create link to a game prediction page (written in php) for each game. There will be two variables that will be passed thru the Href command. Would the code look something like this? Thank you for your help. _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] OOP
Hello! Is it possible to do normal inheritance on PHP? I've following code: ---> class one { function one() { echo "one "; } } class two extends one { function two() { echo "two "; } } class three extends two { function three() { echo "three"; } } $foo = new three(); <--- And the output of this programm is "three", but not "one two three" :( Best regards, Andrew Kirilenko, Seniour Programmer / System Administrator, Internet Service. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] converting Word documents to something sensible
Hello! Try to use StarOffice. Seems, it's possible to make automatic conversion from word.DOC into something more suitable. Or, you can use PDF printer (standard adobe tool), but only under windows. Best regards, Andrew Kirilenko, Senior Programmer / System Administrator, Internet Service. -Original Message- From: Phil Driscoll [mailto:[EMAIL PROTECTED]] Sent: Sunday, June 24, 2001 3:39 PM To: php general Subject: [PHP] converting Word documents to something sensible I have to build a web site for a local government education authority in the UK which will allow them to make available a large range of documents to schools. They INSIST on submitting documents in Word format. I think it is immoral to make the schools have to accept documents in that format so I am determined to translate them to something sensible (html, rtf or pdf will do) at the server. The server is a Linux box so there's no opportunity to play any tricks with COM. Has anyone come across any tools to do this, using php or otherwise? Cheers -- Phil Driscoll -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] where can I find a good documentation on regular expressions?
Hello! Try to find some good PERL or PHP book. You can get one from http://194.84.74.116/iced/lp.tar.gz Best regards, Andrew Kirilenko, Senior Programmer / System Administrator, Internet Service. -Original Message- From: Mick Foster [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 05, 2001 8:34 PM To: [EMAIL PROTECTED] Subject: [PHP] where can I find a good documentation on regular expressions? where can I find a good documentatio on regular expressions? I´m desperate in need of it... thanks for your time -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] OOP Problems
Hello! I have following problem: init(); $container->test1->foo(); $container->test2->foo(); $container->test2->owner->test1->foo(); $container->test1->owner->test2->foo(); class ccontainer { function ccontainer() { } function init() { $this->test1 = new ctest(&$this); $this->test2 = new ctest(&$this); } } class ctest { function ctest(&$owner) { $this->owner = $owner; } function foo() { echo "test!"; } } ?> Output of this script is: ---> test! test! test! Fatal error: Call to a member function on a non-object in c:\www\a.php on line 8 <--- How to solve this problem??? Best regards, Andrew Kirilenko, Senior Programmer / System Administrator, Internet Service. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]