php-general Digest 28 Jun 2007 09:23:04 -0000 Issue 4873

Topics (messages 257896 through 257904):

FreeMovie API
        257896 by: David Giragosian

Swear filter ideas
        257897 by: Richard Davey

Re: PHP P O K E R...... and JAVA (convert)
        257898 by: Guillaume Theoret

strange include path error
        257899 by: brian
        257901 by: Greg Beaver
        257902 by: brian

Re: Bit-size of machine
        257900 by: Chetanji

Re: PHP Web Applications
        257903 by: Daniel
        257904 by: Tijnema

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [EMAIL PROTECTED]


----------------------------------------------------------------------
--- Begin Message ---
Anyone using or know the status of the FreeMovie PHP toolkit?

Seems like development stopped in 2004...

David

--- End Message ---
--- Begin Message ---
Hi all,

Just wanting to pick your collective brains on this one:

How do you go about implementing a swear / bad-word filter in PHP?

Reasons for needing one aside, I'm just wondering if you favour a
regexp, a substr_count, or what? Do you like to *** out the bad words,
or just error back to the user? (I guess that is application
specific).

There are always ways to circumvent them, but I'm still curious to
know how you prefer to handle it.

Cheers,

Rich
-- 
Zend Certified Engineer
http://www.corephp.co.uk

"Never trust a computer you can't throw out of a window"

--- End Message ---
--- Begin Message ---
This isn't exactly what was asked for but when I TA'd the principles
of programming languages course, an assignment I gave was to write a
simple poker game in Haskell. If anyone's interested here's the sample
solution I gave:

http://smokinn.tengun.net/comp348/poker.hs

It's all console based of course. You'll need either ghc or hugs
installed to run it.

--- End Message ---
--- Begin Message ---
PHP 5.1.4 on Fedora 2

I recieved a note from a client about a problem with their site today. Looking at the error log, i found that the DB connection script that's included into any other that needs it was throwing an error because MDB2.php couldn't be found:

Failed opening required 'MDB2.php' (include_path='.:/opt/www/zijn2/htdocs/includes:/usr/local/lib/php')

What's *really* weird is that the paths listed there are ancient--everything is in /usr/share/pear now, and the zijn2 one had been added--then removed--when i was troubleshooting something (it seems like a couple of years ago).

I checked phpinfo() which shows the correct path.

# uptime
 19:41:32 up 282 days, 16:24,  1 user,  load average: 0.13, 0.04, 0.01
# ls -l /usr/bin/php
-rwxr-xr-x  1 root root 16466469 Aug 27  2006 /usr/bin/php

Aug 27, 2006 + 282 days gives June 5, 2007, so it looks like the server was rebooted after upgrading.

Unfortunately, i recieved the mail after my client split for a long weekend, and he didn't say what script he was trying to use (the error log only points back to the included script, not the original). But a quick scan of the site shows no problems at all.

I also have no .htaccess files for this particular site, and the vhost conf checks out. Any idea what the heck just happened here?

brian

--- End Message ---
--- Begin Message ---
brian wrote:
> PHP 5.1.4 on Fedora 2
> 
> I recieved a note from a client about a problem with their site today.
> Looking at the error log, i found that the DB connection script that's
> included into any other that needs it was throwing an error because
> MDB2.php couldn't be found:
> 
> Failed opening required 'MDB2.php'
> (include_path='.:/opt/www/zijn2/htdocs/includes:/usr/local/lib/php')
> 
> What's *really* weird is that the paths listed there are
> ancient--everything is in /usr/share/pear now, and the zijn2 one had
> been added--then removed--when i was troubleshooting something (it seems
> like a couple of years ago).
> 
> I checked phpinfo() which shows the correct path.
> 
> # uptime
>  19:41:32 up 282 days, 16:24,  1 user,  load average: 0.13, 0.04, 0.01
> # ls -l /usr/bin/php
> -rwxr-xr-x  1 root root 16466469 Aug 27  2006 /usr/bin/php
> 
> Aug 27, 2006 + 282 days gives June 5, 2007, so it looks like the server
> was rebooted after upgrading.
> 
> Unfortunately, i recieved the mail after my client split for a long
> weekend, and he didn't say what script he was trying to use (the error
> log only points back to the included script, not the original). But a
> quick scan of the site shows no problems at all.
> 
> I also have no .htaccess files for this particular site, and the vhost
> conf checks out. Any idea what the heck just happened here?

Do a grep for "set_include_path" in your client's code - I suspect
you'll find it.

Greg

--- End Message ---
--- Begin Message ---
Greg Beaver wrote:
brian wrote:

PHP 5.1.4 on Fedora 2

I recieved a note from a client about a problem with their site today.
Looking at the error log, i found that the DB connection script that's
included into any other that needs it was throwing an error because
MDB2.php couldn't be found:

Failed opening required 'MDB2.php'
(include_path='.:/opt/www/zijn2/htdocs/includes:/usr/local/lib/php')

What's *really* weird is that the paths listed there are
ancient--everything is in /usr/share/pear now, and the zijn2 one had
been added--then removed--when i was troubleshooting something (it seems
like a couple of years ago).

Do a grep for "set_include_path" in your client's code - I suspect
you'll find it.


Nope. I wrote the app and i have no need for set_include_path, in any case, as i control the server. I did also doublecheck the vhost conf but there's nothing there. This is the thing: it's *my* code and i can't think of anything that would cause this.

I've also ensured that there's only one php.ini on the server. Apache has been restarted several times since that old include path existed. This is why i was talking about the box being rebooted, as well. I'm trying to cover everything but i'm flummoxed.

FWIW, i've also carefully gone over the site and everything seems to be in order. The error was triggered when some script included a DB connection script (that has "require_once 'MDB2.php';") but, unfortunately, the error msg doesn't specify which it was.

I guess i'll have to wait until tuesday to get more info from the client.

brian

--- End Message ---
--- Begin Message ---

Shekar Iyer wrote:
> 
> How can one find the bit-size of the system on which PHP
> is running.  php_uname() does not return bit type
> 
> Thanks
> Shekar
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 

For instance, say you have an AMD 64 Athlon...
You have a CPU that supports 64 bit programming.

In linux type "uname -a".  I get the response
"linux localhost.locaoldomain 2.6.21-1.3194.fc7 #1 SMP WED JUNE 28 08:47:03
EDT 2007 x86_64 GNU/LINUX"
The x86_64 shows the "software" kernel supports 64bit programming.

The hardware/software industry is just beginning to move towards 64 bit
programming.
The 'world' is still very much in the 16/32 bit phase.
Just thought this might be of interest to you.
Blessings,
Chetan



-- 
View this message in context: 
http://www.nabble.com/Bit-size-of-machine-tf3989360.html#a11335728
Sent from the PHP - General mailing list archive at Nabble.com.

--- End Message ---
--- Begin Message --- It does?! I got it for something around $100 if I remember right. I don't remember you specifying that it had to be free either.


On Jun 27, 2007, at 11:10 AM, Tijnema wrote:

On 6/27/07, Dan <[EMAIL PROTECTED]> wrote:
Check out Delphi for PHP by Borland, this does pretty much what you're
looking for.

- Dan

Uhm, Delphi for PHP costs €259,00, I was looking for something free ;)

Tijnema

"Tijnema" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> On 6/27/07, Jochem Maas <[EMAIL PROTECTED]> wrote:
>> Tijnema wrote:
>> > On 6/27/07, Jochem Maas <[EMAIL PROTECTED]> wrote:
>> >> Tijnema wrote:
>> >> > Hello all!
>> >> >
>> >> > I was wondering if there is some kind of extension available that
>> >> > does
>> >> > the same as PHP-GTK, Winbinder, etc. but not for the CLI but for the
>> >> > web? Something that will look like EyeOS [1].
>> >> >
>> >> > Tijnema
>> >> >
>> >> > [1] http://demo.eyeos.org/
>> >>
>> >> EyeOS is php
>> >
>> > Partly, there's a lot of Javascript and CSS involved, I have looked >> > at it, and it seems that it needs a lot more things to do to get a
>> > simple window than PHP-GTK or Winbinder do...
>> >
>> > Tijnema
>>
>> what do you want??? you want a windowing toolkit that runs inside a
>> browser, right?
>> how do you think styling & interaction is done in a browser window? with
>> CSS, javascript.
>>
>
> Yes, of course it is done with CSS and Javascript (and maybe AJAX
> too), but I don't want to program things in Javascript to get that
> window.
>
> I just want something like this:
> $myapp = new application();
> $myapp->title = "Test application";
> $myapp->show();
>
> You understand?
>
> Tijnema
> --
> Vote for PHP Color Coding in Gmail! -> http://gpcc.tijnema.info

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




--
Vote for PHP Color Coding in Gmail! -> http://gpcc.tijnema.info

--- End Message ---
--- Begin Message ---
On 6/28/07, Daniel <[EMAIL PROTECTED]> wrote:
It does?!  I got it for something around $100 if I remember right.  I
don't remember you specifying that it had to be free either.

Nope, I forgot to specify it, but $100 is still too much for me ;) I'm
just a poor student :P

Tijnema


On Jun 27, 2007, at 11:10 AM, Tijnema wrote:

> On 6/27/07, Dan <[EMAIL PROTECTED]> wrote:
>> Check out Delphi for PHP by Borland, this does pretty much what
>> you're
>> looking for.
>>
>> - Dan
>
> Uhm, Delphi for PHP costs €259,00, I was looking for something free ;)
>
> Tijnema
>>
>> "Tijnema" <[EMAIL PROTECTED]> wrote in message
>> news:[EMAIL PROTECTED]
>> > On 6/27/07, Jochem Maas <[EMAIL PROTECTED]> wrote:
>> >> Tijnema wrote:
>> >> > On 6/27/07, Jochem Maas <[EMAIL PROTECTED]> wrote:
>> >> >> Tijnema wrote:
>> >> >> > Hello all!
>> >> >> >
>> >> >> > I was wondering if there is some kind of extension
>> available that
>> >> >> > does
>> >> >> > the same as PHP-GTK, Winbinder, etc. but not for the CLI
>> but for the
>> >> >> > web? Something that will look like EyeOS [1].
>> >> >> >
>> >> >> > Tijnema
>> >> >> >
>> >> >> > [1] http://demo.eyeos.org/
>> >> >>
>> >> >> EyeOS is php
>> >> >
>> >> > Partly,  there's a lot of Javascript and CSS involved, I have
>> looked
>> >> > at it, and it seems that it needs a lot more things to do to
>> get a
>> >> > simple window than PHP-GTK or Winbinder do...
>> >> >
>> >> > Tijnema
>> >>
>> >> what do you want??? you want a windowing toolkit that runs
>> inside a
>> >> browser, right?
>> >> how do you think styling & interaction is done in a browser
>> window? with
>> >> CSS, javascript.
>> >>
>> >
>> > Yes, of course it is done with CSS and Javascript (and maybe AJAX
>> > too), but I don't want to program things in Javascript to get that
>> > window.
>> >
>> > I just want something like this:
>> > $myapp = new application();
>> > $myapp->title = "Test application";
>> > $myapp->show();
>> >
>> > You understand?
>> >
>> > Tijnema
>> > --
>> > Vote for PHP Color Coding in Gmail! -> http://gpcc.tijnema.info
>>
>> --
>> PHP General Mailing List (http://www.php.net/)
>> To unsubscribe, visit: http://www.php.net/unsub.php
>>
>>
>
>
> --
> Vote for PHP Color Coding in Gmail! -> http://gpcc.tijnema.info




--
Vote for PHP Color Coding in Gmail! -> http://gpcc.tijnema.info

--- End Message ---

Reply via email to