[PHP] Re: How do I display the script file name?
echo $_SERVER['PHP_SELF']; Stephen Ford [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] How can I display the script file name? Presumably something like-: ?php echo $ScriptFileName; ? While I'm learning php and developing various Web page versions, I want to be sure the that the display is from the appropriate script. Regards Stephen Ford, Surrey, UK -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Best way to create a preference-file?
What about an .ini file? http://www.php.net/manual/en/function.parse-ini-file.php If you want read/write from php, try a searching http://www.phpclasses.org/ for inifile. Mark Victor wrote: Victor spång arthursson [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I would like to create a file that holds the preferences for a site, for example the name of the database, the size of thumbnail pictures etc But which is the best way to do this and to access the file? It would be nice with an xml-file, but perhaps it is an overkill Anyway it must be possible to update the file in an easy way, that is, not rewrite it but update it Sincerely Victor -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Unit-testing PHP code
Check out. http://www.phpbuilder.com/columns/reiersol20030126.php3 http://pear.php.net/manual/en/packages.phpunit.tutorial.php Mark Karl Traunmueller [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi all, I've written some small Web applications with PHP and I like it. Since I'm accustomed to thinking OO, I was using the object-oriented language features. This worked quite well, giving a reasonably clean design. However, as with all software projects beyond a certain scope, things start getting hard to maintain/test at some point. Now, the next step for me is to make my code unit-testable. I want to run automatic tests on my local development machine, testing the PHP code without having to upload to the Web Server and manually test something. Most preferrably would be a solution similar to nUnit/jUnit. As far as I understand, a local installation of the ZEND engine could be used to run the PHP code, and some test driver framework would be needed to run all tests through ZEND and verify the results. Has anybody done this yet? I've found the phpunit project, but there seems to be nothing more than the sourceforge project page, which is not very informative. regards Karl -- _ DI Karl Traunmüller [EMAIL PROTECTED] DI Karl Traunmüller Softwareentwicklung Starhembergstr. 44/1, A-4020 Linz, Austria tel +43 732 667950, mobile +43 664 4037084 ICQ 179001232 www.sofascience.com _ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] preg_grep
Hi All, I've written a inifile class and was trying to improve it but got stuck trying to read all the sections: [Section 1] name=value [Section 2] name=value $Inifile is the inifile read into an array but the following doesn't work: $Sections = preg_grep(/(?=^\[)([^\[\]]+)(?=\]$)/i, $IniFile); It always includes the [ ] brackets. Don't look behinds/aheads work with preg_grep? Or am I doing something wrong. Thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: help on regex
I am trying to learn regex and could need some help. There are 2 function I would need. 1 which returns false if the data does contain anything else than numbers or fullstops I tryed this: function validate_phone ($phone) { return (ereg('^[0-9][:punct:]', $phone)); } try using ^[0-9.]*$ The next one is to return fals if the data does not contain a number inside the string (street 893 would be valid) I tryed this: function validate_street ($street) { return (ereg('^[0-9]', $street)); } try using just [0-9] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Looking for web based email
Take a look at some others... http://www.hotscripts.com/PHP/Scripts_and_Programs/Email_Systems/Web-based_E mail/ Craig [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I am in the process of developing a website with a webmail system similar in functions to hotmail Does anyone have any suggestions for where to start? thanks craig -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Book: Web Database Applications with PHP and MySQL
Hi All, Has anyone got a copy of this book yet? If so, what do you think of it? Mark -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: good php hosting environments
Try www.xcalibre.co.uk Hamish [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hello, I'm looking for a really good, professional hosting environment in the uk that supports php (not in safe mode)), mysql and offers the use of a secure server and mail server. I'm looking for a client of mine who needs to rely on their site being up, and so needs a hoster who has enough redundancy in all systems. We have a budget of between £200 and £400 a year, but don't want to get stuck with bandwidth charges, database usage, etc etc.. It would be good if the hoster also offered a remote control panel as well as ftp access to the server. Does any one have any suggested companies, or companies that they've had good experiences using? cheers Hamish -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP editor for windows
http://www.phpedit.com/index.php Steve Bradwell [EMAIL PROTECTED] wrote in message 57A1618E7109D311A97D0008C7EBB3A1CBB2C3@KITCHENER">news:57A1618E7109D311A97D0008C7EBB3A1CBB2C3@KITCHENER... I like VIM. at www.vim.org its got great color for a multitude of languages and its a powerful editor too. -Steve. -Original Message- From: Caspar Kennerdale [mailto:[EMAIL PROTECTED]] Sent: Monday, April 22, 2002 5:40 PM To: PHP Subject: RE: [PHP] PHP editor for windows www.editplus.com -Original Message- From: Scott St. John [mailto:[EMAIL PROTECTED]] Sent: 22 April 2002 06:26 To: .ben Cc: PHP Subject: Re: [PHP] PHP editor for windows Macromedia/Allaire Home Site 5.0 has PHP color coding, not auto-complete, but you can customize it for auto-complete if you want. You can also make it tab 2 instead of 4 :) It's been my editor since the free version 1.0 and it's a work horse. And Home Site has Ultra Dev/Dream Weaver integration. PS-- This is MY opinion and NOT intended to start any Holy Wars. -Scott On Mon, 22 Apr 2002, .ben wrote: Other than notepad, interdev, ultraedit, etc (which i currently use for editing), does anyone know of a good editor for PHP for Windows, ideally with syntax colouring, etc? Cheers, .ben -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: graphing packages
Try jpGraph www.aditus.nu/jpgraph/ Christian Calloway [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... hey ppl, I need to create some fairly complex graphs dynamically, and I need to be able to specify line, bar, or pie charts. Are there any PHP packages that someone could point me to that would fill my needs. Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php