[PHP] php5.2.4 and apache2.0.63 on WinXp
Hello, I found this address somewhere on the php.net site indicating I should send my questions to this email. I am trying to get php and apache to work together. it's a new install. I installed apache2.0.63 first and tested localhost : it worked fine I then installed php5.2.4 in c:\PHP\ I adjusted - after some internetsearches - the httpd.conf to : #BEGIN PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL LoadModule php5_module C:\PHP\php5apache2_2.dll PHPIniDir C:\PHP\ ScriptAlias /php/ c:/php/ AddType application/x-httpd-php .php .php3 .phps Action application/x-httpd-php /php/php.exe After relaunching apache i keep getting the message : CANNOT load c:/PHP/php5apache2_2.dll. the specified module could not be found. PS : I've set my environmental variables : PHPRC to c:\PHP\ And my path does contain ; c:\PHP\ Anyone can help me? kind regards, Ramses -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: php5.2.4 and apache2.0.63 on WinXp
Ramses escreveu: Hello, I found this address somewhere on the php.net site indicating I should send my questions to this email. I am trying to get php and apache to work together. it's a new install. I installed apache2.0.63 first and tested localhost : it worked fine I then installed php5.2.4 in c:\PHP\ I adjusted - after some internetsearches - the httpd.conf to : #BEGIN PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL LoadModule php5_module C:\PHP\php5apache2_2.dll PHPIniDir C:\PHP\ ScriptAlias /php/ c:/php/ AddType application/x-httpd-php .php .php3 .phps Action application/x-httpd-php /php/php.exe After relaunching apache i keep getting the message : CANNOT load c:/PHP/php5apache2_2.dll. the specified module could not be found. PS : I've set my environmental variables : PHPRC to c:\PHP\ And my path does contain ; c:\PHP\ Anyone can help me? kind regards, Ramses --- Try these links. (With non-traditional settings, however, easier to configure) http://www.educar.pro.br/i_en/apache/v20/ http://www.educar.pro.br/i_en/php/v5/ http://www.educar.pro.br/i_en/mysql/v50/ -- zerof http://www.educar.pro.br/ Apache - PHP - MySQL - Boolean Logics - Project Management -- Você deve, sempre, consultar uma segunda opinião! -- Deixe todos saberem se esta informação foi-lhe útil. -- You must hear, always, one second opinion! In all cases. -- Let the people know if this info was useful for you! -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] saving outside website content via php...
why no just save the searhed url in a db field. next time you just need call the iframe with the last or N search anyway if you still want to save all the searched page try using curl http://ar.php.net/manual/en/function.curl-exec.php saludos On Sat, May 31, 2008 at 8:11 PM, blackwater dev [EMAIL PROTECTED] wrote: I'm using the google api to allow people to search the web via my site. The pages are simply iframed within my site. Is it possible for me to give them a 'save' button and let them save the page they are viewing in it's current state? I don't mean save to their computer but I would use php to save it to disk or the db. How can I do this and pull in all the css, images, etc? Thanks! -- Los sabios buscan la sabiduría; los necios creen haberla encontrado. Gabriel Sosa -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Anybody got a little spare time to help me out with a little OOP
Hey! snip Here would be my incarnation of this script ?php $sample_string=From http://www.ezee.se/ The UK police are by far one of the most open to being greedy and corrupted by their afore mentioned greed, case and point: the hundreds of extra speed cameras that are put in place with an idea of making more money rather than public safety, cameras that get fines that are around 100 million pounds per year! Heres one example..; $break = 12; $words=explode( , $sample_string, $break); $words[($break-1)] = ... read more inside!; echo join(' ', $words); /snip Thanks for replying, but how and where do I put that into the script? all that this- stuff is confusing Cheers! R -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] saving outside website content via php...
Gabriel Sosa wrote: why no just save the searhed url in a db field. next time you just need call the iframe with the last or N search anyway if you still want to save all the searched page try using curl http://ar.php.net/manual/en/function.curl-exec.php saludos On Sat, May 31, 2008 at 8:11 PM, blackwater dev [EMAIL PROTECTED] wrote: I'm using the google api to allow people to search the web via my site. The pages are simply iframed within my site. Is it possible for me to give them a 'save' button and let them save the page they are viewing in it's current state? I don't mean save to their computer but I would use php to save it to disk or the db. How can I do this and pull in all the css, images, etc? Thanks! Or if you don't have access to curl, you can use file_get_contents() on a URL if allow_url_fopen=on. -Shawn -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Anybody got a little spare time to help me out with a little OOP
If you want to know what $this- means then take a look at http://www.tonymarston.net/php-mysql/databaseobjects.html Other articles on OOP with PHP are: http://www.tonymarston.net/php-mysql/databaseobjects2.html http://www.tonymarston.net/php-mysql/dateclass.html http://www.tonymarston.net/php-mysql/good-bad-oop.html http://www.tonymarston.net/php-mysql/hero-or-heretic.html http://www.tonymarston.net/php-mysql/oop-for-heretics.html http://www.tonymarston.net/php-mysql/what-is-oop.html http://www.tonymarston.net/php-mysql/object-relational-mappers-are-evil.html -- Tony Marston http://www.tonymarston.net http://www.radicore.org Ryan S [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hey! snip Here would be my incarnation of this script ?php $sample_string=From http://www.ezee.se/ The UK police are by far one of the most open to being greedy and corrupted by their afore mentioned greed, case and point: the hundreds of extra speed cameras that are put in place with an idea of making more money rather than public safety, cameras that get fines that are around 100 million pounds per year! Heres one example..; $break = 12; $words=explode( , $sample_string, $break); $words[($break-1)] = ... read more inside!; echo join(' ', $words); /snip Thanks for replying, but how and where do I put that into the script? all that this- stuff is confusing Cheers! R -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Anybody got a little spare time to help me out with a little OOP
On 1-Jun-08, at 8:15 AM, Ryan S wrote: Thanks for replying, but how and where do I put that into the script? all that this- stuff is confusing Tony Marsten's links seem to be very good, but let me offer you a simpler introduction. Once you can think in an OOP fashion, procedural-/functional-based programming seems archaic. Object-oriented programming is all about thinking about everything as objects people, cars, flowers, dogs, pictures, food items... whatever your application manages. You model up these real-world objects using simple PHP syntax. Objects can refer to themselves (or their inheritance) using $this-, which means me or mine. When using $this-, the object is referring to a property or method (aka function) within itself or inherited from one of its parents, whichever comes first. ~Ted
Re: [PHP] Anybody got a little spare time to help me out with a little OOP
http://en.wikipedia.org/wiki/Object_oriented_programming I remember having troubles understanding OOP, especially going from Pic Microcontroller assembly to Java, but I found the Wikipedia article helped a lot. I still write in functions, but I understand OO :-) . BTW : Hello list. I just joined. Michael Kubler *G*rey *P*hoenix *P*roductions http://www.greyphoenix.biz Ted Wood wrote: On 1-Jun-08, at 8:15 AM, Ryan S wrote: Thanks for replying, but how and where do I put that into the script? all that this- stuff is confusing Tony Marsten's links seem to be very good, but let me offer you a simpler introduction. Once you can think in an OOP fashion, procedural-/functional-based programming seems archaic. Object-oriented programming is all about thinking about everything as objects people, cars, flowers, dogs, pictures, food items... whatever your application manages. You model up these real-world objects using simple PHP syntax. Objects can refer to themselves (or their inheritance) using $this-, which means me or mine. When using $this-, the object is referring to a property or method (aka function) within itself or inherited from one of its parents, whichever comes first. ~Ted
[PHP] ecommerce data sharing?
Does anyone know of a project for sharing ecommerce related data? Such as abstracted order histories so that tables of related items can be built for recommending items? -- Michael McGlothlin Southwest Plumbing Supply smime.p7s Description: S/MIME Cryptographic Signature
Re: [PHP] ecommerce data sharing?
Does anyone know of a project for sharing ecommerce related data? Such as abstracted order histories so that tables of related items can be built for recommending items? Sounds like a huge privacy can of worms and worm related matter. -- Richard Heyes In Cambridge? Employ me http://www.phpguru.org/cv ++ | Access SSH with a Windows mapped drive | |http://www.phpguru.org/sftpdrive| ++ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] saving outside website content via php...
Yes, but file_get_contents will get me the code which I could then echo back out to the browser but that wouldn't give me any external images, css files or js. On Sun, Jun 1, 2008 at 11:23 AM, Shawn McKenzie [EMAIL PROTECTED] wrote: Gabriel Sosa wrote: why no just save the searhed url in a db field. next time you just need call the iframe with the last or N search anyway if you still want to save all the searched page try using curl http://ar.php.net/manual/en/function.curl-exec.php saludos On Sat, May 31, 2008 at 8:11 PM, blackwater dev [EMAIL PROTECTED] wrote: I'm using the google api to allow people to search the web via my site. The pages are simply iframed within my site. Is it possible for me to give them a 'save' button and let them save the page they are viewing in it's current state? I don't mean save to their computer but I would use php to save it to disk or the db. How can I do this and pull in all the css, images, etc? Thanks! Or if you don't have access to curl, you can use file_get_contents() on a URL if allow_url_fopen=on. -Shawn -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] APC + PHP Problem (apc_fcntl_lock failed: Bad file descriptor)
Hello, I am running a production server with APC and php. We recently had a crash where APC bombed out. When it does this, the server serves empty, white pages. Here is what the error_log says. [Mon Jun 2 11:20:36 2008] [apc-error] apc_fcntl_lock failed: Bad file descriptor [Mon Jun 02 11:20:37 2008] [notice] child pid 6104 exit signal Segmentation fault (11) [Mon Jun 2 11:20:40 2008] [apc-error] apc_fcntl_lock failed: Bad file descriptor [Mon Jun 2 11:20:40 2008] [apc-error] apc_fcntl_lock failed: Bad file descriptor [Mon Jun 2 11:20:41 2008] [apc-error] apc_fcntl_lock failed: Bad file descriptor [Mon Jun 2 11:20:41 2008] [apc-error] apc_fcntl_lock failed: Bad file descriptor [Mon Jun 2 11:20:41 2008] [apc-error] apc_fcntl_lock failed: Bad file descriptor [Mon Jun 2 11:20:42 2008] [apc-error] apc_fcntl_lock failed: Bad file descriptor [Mon Jun 2 11:20:43 2008] [apc-error] apc_fcntl_lock failed: Bad file descriptor [Mon Jun 2 11:20:45 2008] [apc-error] apc_fcntl_lock failed: Bad file descriptor [Mon Jun 2 11:20:45 2008] [apc-error] apc_fcntl_lock failed: Bad file descriptor ... And so it goes on until apache was restarted. I have not yet found a resolution for this. There are no calls made to apc_store() on the server. It is solely script caching. I have seen bug reports on this: http://pecl.php.net/bugs/bug.php?id=4769 http://pecl.php.net/bugs/bug.php?id=9745 After looking at these, I think what is happening is the cache is filling up, and when it expunge()s it gets in a loop, php kills the process after the 30sec timeout, and the lock is left. Then no more subsequent requests can be served. Has anyone else experienced this, and does anyone know of a fix for this? I am running PHP 5.2.5, and APC 3.0.15. This is the PHP info for APC. APC Support enabled Version 3.0.15 MMAP Support Enabled MMAP File Mask no value Locking type File Locks Revision $Revision: 3.151 $ Build Date Oct 29 2007 19:02:05 Directive Local Value Master Value apc.cache_by_default On On apc.enable_cli Off Off apc.enabled On On apc.file_update_protection 2 2 apc.filters no value no value apc.gc_ttl 3600 3600 apc.include_once_override Off Off apc.localcache Off Off apc.localcache.size 512 512 apc.max_file_size 1M 1M apc.mmap_file_mask no value no value apc.num_files_hint 1000 1000 apc.report_autofilter Off Off apc.rfc1867 Off Off apc.rfc1867_freq 0 0 apc.rfc1867_name APC_UPLOAD_PROGRESS APC_UPLOAD_PROGRESS apc.rfc1867_prefix upload_ upload_ apc.shm_segments 1 1 apc.shm_size 30 30 apc.slam_defense 0 0 apc.stat On On apc.stat_ctime Off Off apc.ttl 0 0 apc.user_entries_hint 4096 4096 apc.user_ttl 0 0 apc.write_lock On On -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php