[PHP] RedHat 8.0 php_flag invalid command error
Aloha All, I've just installed RedHat Linux 8.0 and everything seems to work except I get this error from any of my .htaccess files. Invalid command 'php_flag' If I remove the php_flag then the site loads, otherwise I get an internal server error. The default install for RH8.0 is PHP 4.2.2 and Apache 2.x Is this a bug in apache or php? Does anyone have a fix? I've searched the web and I don't see anyone else having this problem. Thanks, Gary Smith -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP FastTemplates Fails on RH7.3 (regex problem?)
Hi All, I've been using PHP and FastTemplates for a couple of years on multiple platforms (Mac OSX, Win98, WinNT, Solaris). I've just installed RedHat 7.3 and FastTemplates doesn't work anymore. I get the message: Warning: Invalid content of \{\} in /var/www/cgi-bin/php/FastTemplate/class.FastTemplate.php4 on line 201 Here are the lines from FastTemplate: line 199> //php4 doesn't like '{$' combinations. line 200> $key = "{"."$key"."}"; line 201> $template = ereg_replace("$key","$val","$template"); I've applied the patch for FastTemplates and php4. The version of PHP that comes with RedHat 7.3 is 4.1.2 which is the same as my Mac OSX which works fine. One of the only differences I see is that with phpinfo the RedHat systems are using the system regex library and the others are using the bundled library. This is the default installation with RH7.3. Any Clues? Thanks, Gary Smith -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Help Porting PHP Sites from Solaris to RedHat 7.3
Hi All, I've been using PHP and FastTemplates for a couple of years on multiple platforms (Mac OSX, Win98, WinNT, Solaris). I've just installed RedHat 7.3 and FastTemplates doesn't work anymore. I get the message: Warning: Invalid content of \{\} in /var/www/cgi-bin/php/FastTemplate/class.FastTemplate.php4 on line 201 Here are the lines from FastTemplate: line 199> //php4 doesn't like '{$' combinations. line 200> $key = "{"."$key"."}"; line 201> $template = ereg_replace("$key","$val","$template"); I've applied the patch for FastTemplates and php4. The version of PHP that comes with RedHat 7.3 is 4.1.2 which is the same as my Mac OSX which works fine. One of the only differences I see is that with phpinfo the RedHat systems are using the system regex library and the others are using the bundled library. This is the default installation with RH7.3. Any Clues? Thanks, Gary Smith -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP Graphing Libraries...?
li...@mgreg.com wrote: Hi All, I'm currently looking for a quality (preferably open source) PHP graphing library that will allow me to create various graphs and plot points. I've seen several that do some amazing things, but cost a fortune -- others are either limited, lack documentation, or don't allow plotting of points for multiple entities within the same graph. Can anyone make any quality suggestions? JpGraph? Gary -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Noob question: Making search results clickable.
Paul Jinks wrote: Hi all I'm building a fairly basic php/mySql site but I'm running into problems due to my total lack of experience. I have a database of videos - each has a title, transcript, description and one or more topics. So far I can search the database by topic (using a drop-down menu), like this: Hi - first up, make sure that you're passing clean input. It's worth learning about security from the start. As you've mentioned below that you're using PHP, you can do this by making sure $topic has been put through mysql_real_escape_string() - it's not ideal, but it's better than nothing[1]. while($row = mysql_fetch_array($result)) { echo $row['title']; echo ""; } ?> What you'd probably be better doing is having something like this: printf("%s", $row["id"], $row["title"]); And changing your query accordingly. Obviously, you'd need video_display.php to accept GET input in the form of id= as well. Cheers, Gary [1] It's not a magic bullet in so far as it doesn't stop SQL injection. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Noob question: Making search results clickable.
Shawn McKenzie wrote: Gary Smith wrote: And changing your query accordingly. For the first piece Gary has it right, but your query needs to include the id also. Yeah, as I mentioned, he'd need to change the query accordingly, either to select id,title or select * Cheers, Gary -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: London PHP salaries
Joker7 wrote: For living in London you would need at the lower end 35k but why would you want to come and live in London from Spain ? If I had the choice I know where I would choose. Indeed. It might also be worth pointing out that you'd be utterly fruitloop to consider getting a central London flat. Live further out == cheaper. The thing with doing PHP in Central London is that people will do it for less. Asking anything above £35k for a PHP developer (even a decent one) is probably likely to get you laughed at. (YMMV) Gary -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] RE: London PHP salaries
Javier Leyba wrote: How could I make same calculation for a London salary ? A very rough calculation is to take what they're offering, and then take 30% off that (tax, pension, etc) - it's usually somewhere around 30%, but it's not an exact science (depends on stuff like tax credits and stuff like that). The remaining 70% - split that into 12. That's what you get every month. As I say, this won't be exact, but it'll be near as dammit. Gary -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Quickform Date element time range.
Aloha All, I was wondering how I could set a time range using the date element. What I need is a way to limit the time fields to reflect the times available. So if the range is 7 am to 4 pm I would like the hours menu to only contain 7,8,9,10,11,12,1,2,3,4. Any time selected before 12 would be am and after 12 would be pm, it would be great if the am and pm could be set via javascript. Here's my time element: $contact->addElement ( 'date' , 'Times1' , 'Tee Time First Choice' , array('format' => 'g i A','optionIncrement' => array('i' => 10))); Any suggestions? Thanks, Gary