Re: [PHP] do I need a database
Your options for permanent, server-side storage is pretty much either a flat file or a database. Ultimately, your choice is dependant on what you need to do with the data later on. Personally, since my host includes a free MySQL db with every account, I tend not to bother with flat files for this sort of stuff. Justin On Wednesday, October 8, 2003, at 02:50 PM, Sudheer Palaparambil wrote: Hi, I am planning a static site. But I need to capture some data (username, address, telephone and email only), do I need a database for recording this data ? Or is there any other way to record this data ? The volume may be high. Thank you. Sudheer _ Get Married! http://www.bharatmatrimony.com/cgi-bin/bmclicks1.cgi?74 Search from 7 lakh Brides Grooms. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php --- [This E-mail scanned for viruses] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: PHP CSS
On Tue, 7 Oct 2003 17:06:13 -0500 erythros [EMAIL PROTECTED] wrote: you probably just want what everyone wants... a seperation of design from content. as for applying the variables to the style sheet it depends on what youre trying to do. what are the variables for? to request a specific css file? or are they to supplement the ccs file (ie: use value x for width of div), or are they to override the css file? i may have it wrong but what it sounds like is that you want to have a default css file then allow the user to make changes via the ini file. is this what youre after? Well, yes ... in a way. The plan is to have a main site, where users can have a subsite off the main site. I want to give the users the ability to customize, to an extent, their own subsite if they wish, while the main site retains the look I give it. -- Raquel I am only one; but still I am one. I cannot do everything, but still I can do something; I will not refuse to do the something I can do. --Helen Keller -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] session expire
I know that if I set a session, by default it will expire when the browser closes. Can I also set a timeout? For example, if the session is idle for 30 minutes it will expire or if the user closes the browser, it will also expire. I know I can do one or the other, but what about both? Thanks. Redsip -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] dynamic - static
Do you mean something like taking a snapshot of the CMS every 24 hours or so?? If I understand you right you might want to look at a different language like perl or shell scripting. I would think they'd be more useful for that sort of thing. On Wednesday 08 October 2003 03:56, Veniamin Goldin wrote: Dear All, Does anybody have any solutions, which makes possible to produce static pages of all dynamic cms once a day and can be easily integrated into already made site? Thank you. -- Ryan Thompson [EMAIL PROTECTED] http://osgw.sourceforge.net == A computer scientist is someone who fixes things that aren't broken --Unknown -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] dynamic - static
The problem is actually that search engines poorly indexes dynamic content sites, so I looking for solution to produce static pages with static links from all dynamic content being formed on the fly. - Original Message - From: Ryan Thompson [EMAIL PROTECTED] To: Veniamin Goldin [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Wednesday, October 08, 2003 7:46 AM Subject: Re: [PHP] dynamic - static Do you mean something like taking a snapshot of the CMS every 24 hours or so?? If I understand you right you might want to look at a different language like perl or shell scripting. I would think they'd be more useful for that sort of thing. On Wednesday 08 October 2003 03:56, Veniamin Goldin wrote: Dear All, Does anybody have any solutions, which makes possible to produce static pages of all dynamic cms once a day and can be easily integrated into already made site? Thank you. -- Ryan Thompson [EMAIL PROTECTED] http://osgw.sourceforge.net == A computer scientist is someone who fixes things that aren't broken --Unknown -- 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] excuting a shell command in linux as root
Hi, Is there any way to execute a shell command line in PHP as root? I want to execute it using a web browser, i'm using apache and it runs as nobody. Any idea/help/suggestions? Thanks in advance mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] excuting a shell command in linux as root
First off a warning repeated many times over I'm sure. You sure you want to do that? It's very insecure Now that my butts covered you might want to take a look at sudo On Wednesday 08 October 2003 03:14, Michael P. Carel wrote: Hi, Is there any way to execute a shell command line in PHP as root? I want to execute it using a web browser, i'm using apache and it runs as nobody. Any idea/help/suggestions? Thanks in advance mike -- Ryan Thompson [EMAIL PROTECTED] http://osgw.sourceforge.net == A computer scientist is someone who fixes things that aren't broken --Unknown -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] convert \ to /
I am receiving some data in which the sender has mistakenly sent urls with \ instead of / to separate directories. e.g. http://www.anysite.com\page.htm I need to convert this string to http://www.anysite.com/page.htm but str replace (\,/,$var) doesnt work. any ideas as to how to convert it. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] convert \ to /
\ - is an escape symbol, so you should write it twice in order to escape it self. str_replace (\\,/,$var) Diana Castillo [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I am receiving some data in which the sender has mistakenly sent urls with \ instead of / to separate directories. e.g. http://www.anysite.com\page.htm I need to convert this string to http://www.anysite.com/page.htm but str replace (\,/,$var) doesnt work. any ideas as to how to convert it. -- 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] smtp mail sending on unix
Hi, I am running apache in a chrooted enviorment on solaris and trying to get mail() to work over smtp rather than sendmail, but unsuccessfully. php.ini states that this is for win32 only. Is there any solution to that? It seems quite awkward to have the code for smtp but no option to run it. thanks, Jaanus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] smtp mail sending on unix
Try a class to send emails by smtps, like phpmailer: http://phpmailer.sourceforge.net/ -Mensaje original- De: Jaanus Torp [mailto:[EMAIL PROTECTED] Enviado el: miƩrcoles, 08 de octubre de 2003 11:29 Para: [EMAIL PROTECTED] Asunto: [PHP] smtp mail sending on unix Importancia: Baja Hi, I am running apache in a chrooted enviorment on solaris and trying to get mail() to work over smtp rather than sendmail, but unsuccessfully. php.ini states that this is for win32 only. Is there any solution to that? It seems quite awkward to have the code for smtp but no option to run it. thanks, Jaanus -- 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
RE: [PHP] or return problem
On 07 October 2003 18:15, Pat Carmody contributed these pearls of wisdom: So far everyone is telling me that it won't work, but no one is telling me why. (btw I did search extensively for the answer to this question but so far have found nothing). Robert, could you be more specific in your reference to the http://www.php.net documentation? I see nothing on the basic syntax page that addresses this. Pat Carmody On Tue, 7 Oct 2003, Robert Cummings wrote: On Tue, 2003-10-07 at 13:02, Pat Carmody wrote: Calling the following retor_test() function causes a Parse error: parse error, unexpected T_RETURN message when the script is run: function istrue() { return true; } function retor_test() { istrue() or return( False ); return True; } The problem is with the or return part. Any ideas why? I realize that I could use an if statement instead, but I'm a lazy, lazy man and I don't want to. Well, let's see if I can contribute something useful here. Firstly, or, as a Boolean operator requires two operands, both of which must have an actual value. Now, according to the manual (at http://www.php.net/manual/en/functions.returning-values.php), Values are returned [from a function] by using the optional return statement -- so return is a statement, and statements don't have a value (and can't even be coerced to have one), so return can't be valid as one of the operands to or. On the other hand, exit (and its alias die) are function-like language constructs which do have a value, even if it's only NULL produced by coercing a void return, so they are valid as an operand to or. (Of course, you can never make use of the NULL return from exit or die, because your script will already have exited or died before it gets the opportunity to do so -- but the very fact that they are language constructs with a potential return value means they can be used in a context which demands a value, where return, which doesn't have a value, can't!) Hope that's all a bit clearer than mud ;) Cheers! Mike - Mike Ford, Electronic Information Services Adviser, Learning Support Services, Learning Information Services, JG125, James Graham Building, Leeds Metropolitan University, Beckett Park, LEEDS, LS6 3QS, United Kingdom Email: [EMAIL PROTECTED] Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] excuting a shell command in linux as root
It is questionable if it is really insecure. sudo allows great control over what commands it can run with what parameters. If you combine it with php input checks it gets pretty secure. But that means you HAVE TO know what you are doing. Ryan Thompson wrote: First off a warning repeated many times over I'm sure. You sure you want to do that? It's very insecure Now that my butts covered you might want to take a look at sudo On Wednesday 08 October 2003 03:14, Michael P. Carel wrote: Hi, Is there any way to execute a shell command line in PHP as root? I want to execute it using a web browser, i'm using apache and it runs as nobody. Any idea/help/suggestions? Thanks in advance mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] session expire
Start here: www.php.net/session You should read it from the main heading to the last line of the last comment. redips wrote: I know that if I set a session, by default it will expire when the browser closes. Can I also set a timeout? For example, if the session is idle for 30 minutes it will expire or if the user closes the browser, it will also expire. I know I can do one or the other, but what about both? Thanks. Redsip -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] dynamic - static
Quick way to do it would be to spider your site with an offline browser and then put that site up in a subdirectory, change your index file to redirect to your site via javascript and place the static html page hidden from browsers, but not from spiders. Completely legal as long as you follow the search engines guidelines. I think it is legal if you do it like a framed page. Also place javascript redirects to their cooresponding dynamic pages. The javascript redirects are invisible to spiders. From: Veniamin Goldin [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: [PHP] dynamic - static Date: Wed, 8 Oct 2003 10:09:11 +0100 The problem is actually that search engines poorly indexes dynamic content sites, so I looking for solution to produce static pages with static links from all dynamic content being formed on the fly. - Original Message - From: Ryan Thompson [EMAIL PROTECTED] To: Veniamin Goldin [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Wednesday, October 08, 2003 7:46 AM Subject: Re: [PHP] dynamic - static Do you mean something like taking a snapshot of the CMS every 24 hours or so?? If I understand you right you might want to look at a different language like perl or shell scripting. I would think they'd be more useful for that sort of thing. On Wednesday 08 October 2003 03:56, Veniamin Goldin wrote: Dear All, Does anybody have any solutions, which makes possible to produce static pages of all dynamic cms once a day and can be easily integrated into already made site? Thank you. -- Ryan Thompson [EMAIL PROTECTED] http://osgw.sourceforge.net == A computer scientist is someone who fixes things that aren't broken --Unknown -- 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 _ MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. http://join.msn.com/?page=features/virus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] trailing carriage return in file
hello guys, I don't know how can I eliminate from a file the trailing cr? \n I have a file that ends-up with one ore more cr it looks like this: BeginOfFile data here [] end of data EndOfFile after data I have one or more cr (the file don't ends immediately) i don't know how to match, using preg_replace() the '\n' character... it's something like /n/ ? thanks, Have a nice day ! (And I'm sure that tomorrow will be better than today!) Alex Ciurea Greets You www.netonwave.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] shell_exec question
Greetings learned PHP(eople); I`m using a shell_exec to get a list of files from a specified directory. When I run it locally on my machine i works. When I run it on the other machine I get = Warning: shell_exec() [function.shell-exec]: Cannot execute using backquotes in Safe Mode in /var/www/html/search.php on line 9 = In /etc/php.ini Safe Mode is offI read some postings in the archives and on the advice given checked that the owner of the script has the relevant permissions on the directory/files trying to be accessed, and they are the same i.e. root Any ideas ? -- Chris Blake Support Consultant Office : (011) 782-0840 Fax: (011) 782-0841 Mobile : 083 985 0379 Website: http://www.pbpc.co.za What does education often do? It makes a straight cut ditch of a free meandering brook. -- Henry David Thoreau 13:10:21 up 21 days, 4:40, 3 users, load average: 0.48, 0.33, 0.28 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] SESSION SSL : Missing $_SESSION value
Hello everyone, I'm having the following errors and hope that someone can help. Please advise. I have an authentication script that uses session to authenticate and track the user. Every was working fine under HTTP, but when I move the application to a secure server (HTTPS), my session variables no longer hold their values. They all return BLANK. Am I missing something? Please asdvise. //Sample Code //login.html [html Form code goes here ... with action='https://www.site.com/login.php?option=login' ] //authentication //login.php if(username and password match) { session_save_path('/tmp'); session_name('sName'); session_start(); [** get user id, user type, and name from db...] //set session vars $_SESSION['userid'] = $database-userid; $_SESSION['type'] = $databe-type; $_SESSION['ACCESS'] = 'PASS'; }else{ echo '...invalid username/password...'; } ... //access restricted subpage // otherpage.php //check access. This code is actually in a function called Authenticate() that return TRUE on a successfull match. if(isset($_SESSION['ACCESS']) and $_SESSION['ACCESS']=='PASS'){ echo 'This is a valid user...'; }else{ echo 'Authentication failed...Access denied...'; } Now, the authentication failed (on the last page (otherpage.php), because the $_SESSION variable is empty. a quick print_r($_SESSION) statement returns an empty array. Basically, the $_SESSION content is not being preserved. Any idea what is causing that? Please advise. _john =P e p i e D e s i g n s www.pepiedesigns.com Providing Solutions That Increase Productivity Web Developement. Database. Hosting. Multimedia. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] trailing carriage return in file
trim() Alex Ciurea wrote: hello guys, I don't know how can I eliminate from a file the trailing cr? \n I have a file that ends-up with one ore more cr it looks like this: BeginOfFile data here [] end of data EndOfFile after data I have one or more cr (the file don't ends immediately) i don't know how to match, using preg_replace() the '\n' character... it's something like /n/ ? thanks, Have a nice day ! (And I'm sure that tomorrow will be better than today!) Alex Ciurea Greets You www.netonwave.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] shell_exec question
safe mode is on, turn it off and restart webserver. Then you can check directory permissions. Chris Blake wrote: Greetings learned PHP(eople); I`m using a shell_exec to get a list of files from a specified directory. When I run it locally on my machine i works. When I run it on the other machine I get = Warning: shell_exec() [function.shell-exec]: Cannot execute using backquotes in Safe Mode in /var/www/html/search.php on line 9 = In /etc/php.ini Safe Mode is offI read some postings in the archives and on the advice given checked that the owner of the script has the relevant permissions on the directory/files trying to be accessed, and they are the same i.e. root Any ideas ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] dynamic - static
On Wed, 2003-10-08 at 08:56, Veniamin Goldin wrote: Dear All, Does anybody have any solutions, which makes possible to produce static pages of all dynamic cms once a day and can be easily integrated into already made site? Thank you. I have been thinking of doing such thing for a while and have two possible solutions. One is to have a master object and have a variable to set the mode of operation (i.e. Dynamic, Static) You would then abstract all your output (echo etc.) functions. This new echo function would either output in the normal way or to a file handler depending on the $static_dynamic variable. You would then have a master function which crawls your site calling all the pages. The other solution involved using a function which captures all browser i/o into a variable rather than sending it to the screen (cant remember its name). Not as sure how to implement this. Basically if you have not written your CMS using objects it will be a lot harder. One of the reasons I am not generating static snapshots it the CMS I wrote was not originally written without objects. I am slowly rewriting it and when finished I will revisit this issue. Ben -- * Ben Edwards Tel +44 (0)1179 553 551 ICQ 42000477 * * Homepage - nothing of interest here http://gurtlush.org.uk * * Webhosting for the masses http://www.serverone.co.uk * * Critical Site Builderhttp://www.criticaldistribution.com * * online collaborative web authoring content management system * * Get alt news/views films online http://www.cultureshop.org * * i-Contact Progressive Video http://www.videonetwork.org * * Fun corporate graphics http://www.subvertise.org * * Bristol Indymedia http://bristol.indymedia.org * * Bristol's radical news http://www.bristle.org.uk * -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] shell_exec question
On 08 Oct 2003 13:25:51 +0200, you wrote: I`m using a shell_exec to get a list of files from a specified directory. When I run it locally on my machine i works. When I run it on the other machine I get What Marek said. However, is there any reason you're not using readdir()? http://uk.php.net/manual/en/function.readdir.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] shell_exec question
On Wed, 2003-10-08 at 13:56, David Otton wrote: However, is there any reason you're not using readdir()? http://uk.php.net/manual/en/function.readdir.php I`ve got a whole bunch of other stuff happening using shell_exec, eg file searches etc I changed php.ini entry for safemode=on , restarted Apache, but that didn`t help.opendir() returns the following : = Warning: opendir() [function.opendir]: SAFE MODE Restriction in effect. The script whose uid is 0 is not allowed to access /home owned by uid 0 in /var/www/html/backups.php on line 8 Warning: opendir(/home/chris/PBPCBackup/) [function.opendir]: failed to open dir: No such file or directory in /var/www/html/backups.php on line 8 = I got this error as well prior to changing the safe mode parameter... Still lost, but searching :( -- Chris Blake Support Consultant Office : (011) 782-0840 Fax: (011) 782-0841 Mobile : 083 985 0379 Website: http://www.pbpc.co.za Women want their men to be cops. They want you to punish them and tell them what the limits are. The only thing that women hate worse from a man than being slapped is when you get on your knees and say you're sorry. -- Mort Sahl 14:40:40 up 21 days, 6:10, 3 users, load average: 0.32, 0.14, 0.25 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] shell_exec question
Did you edit the right php.ini? Check out phpinfo() output for Configuration File (php.ini) Path Chris Blake wrote: On Wed, 2003-10-08 at 13:56, David Otton wrote: However, is there any reason you're not using readdir()? http://uk.php.net/manual/en/function.readdir.php I`ve got a whole bunch of other stuff happening using shell_exec, eg file searches etc I changed php.ini entry for safemode=on , restarted Apache, but that didn`t help.opendir() returns the following : = Warning: opendir() [function.opendir]: SAFE MODE Restriction in effect. The script whose uid is 0 is not allowed to access /home owned by uid 0 in /var/www/html/backups.php on line 8 Warning: opendir(/home/chris/PBPCBackup/) [function.opendir]: failed to open dir: No such file or directory in /var/www/html/backups.php on line 8 = I got this error as well prior to changing the safe mode parameter... Still lost, but searching :( -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] shell_exec question
On Wed, 2003-10-08 at 14:51, Marek Kilimajer wrote: Did you edit the right php.ini? Check out phpinfo() output for Configuration File (php.ini) Path Yep, tried that...it states /etc/php.ini, and lists other location of /etc/php/, but that directory doesn`t contain a php.ini file -- Chris Blake Support Consultant Office : (011) 782-0840 Fax: (011) 782-0841 Mobile : 083 985 0379 Website: http://www.pbpc.co.za Campus sidewalks never exist as the straightest line between two points. -- M. M. Johnston 14:56:07 up 21 days, 6:26, 3 users, load average: 0.48, 0.25, 0.21 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] shell_exec question
I think that ALL files in other location are parsed, it does not need to be named php.ini Chris Blake wrote: On Wed, 2003-10-08 at 14:51, Marek Kilimajer wrote: Did you edit the right php.ini? Check out phpinfo() output for Configuration File (php.ini) Path Yep, tried that...it states /etc/php.ini, and lists other location of /etc/php/, but that directory doesn`t contain a php.ini file -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] RE: HTML Printing problem.
If you are using PHP on a Windows server then this might be an option: http://us4.php.net/manual/en/ref.printer.php -Rob -Original Message- From: php coder [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 07, 2003 4:13 PM To: [EMAIL PROTECTED] Subject: HTML Printing problem. Issue: HTML files are to large to print from the browser. We are creating reports that are ++5 mg in size. This is a real problem for the browser. We are on a network and can print directly from the server but this means we must convert the html to some printer friendly format. We are using many new standards such as tbody and thead tags to give us consistent header on each page of a printed document. This seems to cause problems with most conversions that we have seen. Any help with a solution? _ Help protect your PC. Get a FREE computer virus scan online from McAfee. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] killing server process online
for that u need to connect to your server as the owner of that server process or 'root'. to do this you may want to look at the idea of sudo. but remember, it's only as secure as you make it. you need to know, what exactly are you doing with sudo. Enjoy Nitin - Original Message - From: Michael P. Carel [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, October 08, 2003 10:13 AM Subject: Re: [PHP] killing server process online yes i'm running this in a web server, is there any thing i can for this. I want to kill a server process in a web browser. I'm guessing you're attempting to run this from the web server (hence the SCRIPT tags). Probably the web server doesn't own the process your attempting to kill. Cheers, Rob. On Tue, 2003-10-07 at 23:09, Michael P. Carel wrote: Hi to all, I'm trying to create a script that will kill a server process via PID, but as i run the script it doesnt kill the process . And yet I want to add some error mesage. Here's my sample script: ? function killprocess($id){ system('kill'. escapeshellarg($id), $killret); if ($killret==0){ //echo success message ?SCRIPTalert(Process Killed)/SCRIPT? }elseif ($killret != 0){ //echo error message ?SCRIPTalert(Kill Error: ? echo $this-kp; ?)/SCRIPT? } } ? Is there something wrong with it? Please help and thanks in advance. mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- .. | InterJinn Application Framework - http://www.interjinn.com | :: | An application and templating framework for PHP. Boasting | | a powerful, scalable system for accessing system services | | such as forms, properties, sessions, and caches. InterJinn | | also provides an extremely flexible architecture for | | creating re-usable components quickly and easily. | `' -- 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
Re: [PHP] shell_exec question
On Wed, 2003-10-08 at 15:02, Marek Kilimajer wrote: I think that ALL files in other location are parsed, it does not need to be named php.ini I checked in /etc/php/ and it lists the following files : 23_gid.ini 26_imap.ini 27_ldap.ini 34_mysql.ini and 41_readline.ini All these files contain single entries e.g extension =readline.so and so on. Is there another file I should look for in /etc ? -- Chris Blake Support Consultant Office : (011) 782-0840 Fax: (011) 782-0841 Mobile : 083 985 0379 Website: http://www.pbpc.co.za A person forgives only when they are in the wrong. 15:08:37 up 21 days, 6:38, 3 users, load average: 0.33, 0.16, 0.14 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Using hash
Is there a way to make the dba_open call use hash instead of btree when using db3? By default when opening a database for writing it seems that dba_open uses btree. We have existing db3 databases that utilize hash and not btree. Not sure if sendmail can utilize btree for aliases, but I will check. Thanks, -Bob -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] shell_exec question
Then check your httpd.conf for php_(admin_)?(flag|value) Chris Blake wrote: On Wed, 2003-10-08 at 15:02, Marek Kilimajer wrote: I think that ALL files in other location are parsed, it does not need to be named php.ini I checked in /etc/php/ and it lists the following files : 23_gid.ini 26_imap.ini 27_ldap.ini 34_mysql.ini and 41_readline.ini All these files contain single entries e.g extension =readline.so and so on. Is there another file I should look for in /etc ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] shell_exec question
On Wed, 2003-10-08 at 15:23, Marek Kilimajer wrote: Then check your httpd.conf for php_(admin_)?(flag|value) I checked it but there is nothing for php whatsoever. -- Chris Blake Support Consultant Office : (011) 782-0840 Fax: (011) 782-0841 Mobile : 083 985 0379 Website: http://www.pbpc.co.za Anybody with money to burn will easily find someone to tend the fire. 15:35:56 up 21 days, 7:05, 3 users, load average: 0.08, 0.08, 0.14 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Smarty problem
Hi, I already posted this question in the Smarty group, without success. I have a problem with Smarty. I wrote the following function that gets data from a mysql database: function showHeadlines() { global $db; $entry_events = array(); if ($this-showold == true) { $db-select(*, news, (d_kategorie = 'de_termin'), d_datum ASC, , , ); $entry_events = $db-fetch_array(); $this-assignVars('termineAus', $this-aTrans['termineAus']); $this-assignVars('entry_events', $entry_events); } The template part looks like this: table width=100% border=0 cellspacing=0 cellpadding=5 align=center tr tdh2{$events}/h2/td /tr tr tda href={$filenpath}?showold={$showold}i{$termineAus}/i/a/td /tr {section name=i loop=$entry_events} tr td bgcolor=#e2e2e2b{$entry_events[i].d_datum} {$entry_events[i].d_zeit}/b/td /tr tr tdb{$entry_events[i].d_ueberschrift}/b/td /tr tr tdb{$place}:/b {$entry_events[i].d_ort}/td /tr {/section} /table The problem is that the output in only garbage? Is there a logical problem ? Thank you very much -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] File upload meter
David Enderson also developed an upload meter and contacted PHP about including it. http://www.mail-archive.com/[EMAIL PROTECTED]/msg02155.html Long and short, PHP never included it. This functionality is requested and can be included easily. I'm in the process of developing documentation and rpm packaging for Dave's meter and I've already had 7 clients call me about it, (IMO) I think its time more projects like this are needed and PHP should do a better job of incorporating them and less time holding conferences. Murph Oh go here (http://www.pfohlsolutions.com/projects/upload) to see what's available (not much right now) from Enderson's project. Note this is not the official site. -Original Message- From: Hardik Doshi [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 08, 2003 9:47 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: [PHP] File upload meter Hi Group, It's really nice to see the file upload meter developed by Doru Theodor Petrescu (http://pdoru.from.ro/). He did a nice job. He created serveral patches for the php 4 to enable the file upload meter. I was just wondering what will happen to the file upload meter once the php 5.0 will release? Is PHP community planning to put file upload meter code permanently in every distributions of the php? Please let me know about my queries. I really want to use this feature but worrying for the future php releases. Thanks Regards, Hardik Doshi __ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com -- 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] A DATE Question
Hi, is there a function in PHP that will work out the amount of time(hours) beween two different dates / times? Thanks for your help -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Smarty problem
What do you mean with garbage? What's that garbage? What's the content from $entry_events ? You should debug your own code, we can't do it with a few lines from your code -Mensaje original- De: Webmaster [mailto:[EMAIL PROTECTED] Enviado el: miƩrcoles, 08 de octubre de 2003 15:57 Para: [EMAIL PROTECTED] Asunto: [PHP] Smarty problem Importancia: Baja Hi, I already posted this question in the Smarty group, without success. I have a problem with Smarty. I wrote the following function that gets data from a mysql database: function showHeadlines() { global $db; $entry_events = array(); if ($this-showold == true) { $db-select(*, news, (d_kategorie = 'de_termin'), d_datum ASC, , , ); $entry_events = $db-fetch_array(); $this-assignVars('termineAus', $this-aTrans['termineAus']); $this-assignVars('entry_events', $entry_events); } The template part looks like this: table width=100% border=0 cellspacing=0 cellpadding=5 align=center tr tdh2{$events}/h2/td /tr tr tda href={$filenpath}?showold={$showold}i{$termineAus}/i/a/td /tr {section name=i loop=$entry_events} tr td bgcolor=#e2e2e2b{$entry_events[i].d_datum} {$entry_events[i].d_zeit}/b/td /tr tr tdb{$entry_events[i].d_ueberschrift}/b/td /tr tr tdb{$place}:/b {$entry_events[i].d_ort}/td /tr {/section} /table The problem is that the output in only garbage? Is there a logical problem ? Thank you very much -- 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
Re: [PHP] Cleaning up my messy code
Here is what I would do (this advice and a buck will buy you a cup of coffee): First, I'd take my existing code, look over it and ask, Where am I doing the same thing over and over? Code that is repetitive is a prime candidate for using functions or objects. Objects are easier to maintain for me. So if your making code on each page to access a MySql database, you can then decide to make a class to access your database or take a look at some of the existing classes like PEAR:DB or ADODB that do this for you. Then I'd look at a template system or use XSLT and CSS (my preference - ultimate flexibility - WML, RSS,etc...). So I made a class to return an xml string from a database query (recordfieldnamefieldvalue/fieldname/record). Then each page of the site becomes a matter of reading an xslt file into a variable, sending a query and returning an xml string and transforming the xml into html The advantage is each page of the site has code that looks like this: ?php // includes require('../includes/clsmakexml.php'); require('../includes/clsReadFile.php'); // sql query $sql .= SELECT CS.FirstName, CS.LastName, CS.Firm, CS.CustomerID, CS.Bio, ; $sql .= CI.City, CI.State, CI.ZipCode, CI.PhoneNum, CI.FaxNum, Ci.email, CI.url ; $sql .= \rFROM Customer CS ; $sql .= INNER JOIN ContactInfo CI ON CS.CustomerID = CI.CustomerID ; $sql .= \rWHERE CS.CustomerID = . $_GET['CustomerID']; // convert query to xml string via makexml class $xmldoc = new makexml(mssql); $xmldoc-xmlstart('attys'); $xmldoc-xmlmaker($sql); $xmldoc-xmlEnd(); // read xsl template file via readFile clss $fileR = new readFile(); $fileR-processFile(../includes/header.inc); $fileR-processFile(bio.xsl); $fileR-processFile(../includes/footer.inc); // prepare xsl transformation $xmldoc-xslstr = $fileR-contents; $xmldoc-xslresult = 'result.xml'; $arguments = array('/_xml' = $xmldoc-xmlstr,'/_xsl' = $xmldoc-xslstr); // transform the xml into html $xh = xslt_create(); $result = xslt_process($xh, 'arg:/_xml', 'arg:/_xsl', NULL, $arguments); if ($result) { print $result; } else { print Sorry, the xml could not be transformed by the xsl into; print the \$result variable the reason is that . xslt_error($xh) . print and the error code is . xslt_errno($xh); } xslt_free($xh); ? This isn't bulletproof but makes code easy to read and maintain for me. If I need to add a new feature, I just add a new function, method, or class. If I need something different at the presentation level I just change the XSLT or , more likely, the CSS. On Monday, September 29, 2003, at 02:22 PM, Chris wrote: I am working on a fairly large scale (for myself anyway) project using PHP and MySQL. I am victim of teaching myself to program, not separating presentation from my code-- all the things that lead to masses of spaghetti code so atrocious even I can't figure out what I was doing an hour ago. I'm not looking for an IDE or code generator so much as some practical advice for organization and framework when developing a larger app. I know of PHP Fusebox, having programmed with Cold Fusion fusebox for a while, but it seems like that might be too much. Maybe I just need a sensical, practical approach to application layout. What do you all do? How can I learn to be a better PHP programmer in this regard? c -- 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
RE: [PHP] A DATE Question
[snip] is there a function in PHP that will work out the amount of time(hours) beween two different dates / times? [/snip] http://www.php.net/strtotime -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] File upload meter
Hi, These guys have done a good job and I think it's planned to be included in V5. Till then i invite you to take a look at http://www.sourceforge.net/projects/megaupload/ where you can download a system that works without PHP having to be patched. best regards raditha. Steve Murphy wrote: David Enderson also developed an upload meter and contacted PHP about including it. http://www.mail-archive.com/[EMAIL PROTECTED]/msg02155.html Long and short, PHP never included it. This functionality is requested and can be included easily. I'm in the process of developing documentation and rpm packaging for Dave's meter and I've already had 7 clients call me about it, (IMO) I think its time more projects like this are needed and PHP should do a better job of incorporating them and less time holding conferences. Murph Oh go here (http://www.pfohlsolutions.com/projects/upload) to see what's available (not much right now) from Enderson's project. Note this is not the official site. -Original Message- From: Hardik Doshi [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 08, 2003 9:47 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: [PHP] File upload meter Hi Group, It's really nice to see the file upload meter developed by Doru Theodor Petrescu (http://pdoru.from.ro/). He did a nice job. He created serveral patches for the php 4 to enable the file upload meter. I was just wondering what will happen to the file upload meter once the php 5.0 will release? Is PHP community planning to put file upload meter code permanently in every distributions of the php? Please let me know about my queries. I really want to use this feature but worrying for the future php releases. Thanks Regards, Hardik Doshi __ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- Raditha Dissanayake. http://www.radinks.com/sftp/ | http://www.raditha/megaupload/ Lean and mean Secure FTP applet with | Mega Upload - PHP file uploader Graphical User Inteface. Just 150 KB | with progress bar. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] File upload meter
I can not say for sure, but the last time I saw it mentioned on the PHP-DEV list (besides today), the comments about it weren't that great. If memory serves me correctly, the code (although functional) is really bad and doesn't follow PHP standards. I may be wrong here and if so I apologize, but before bashing PHP's core team for not incorporating something you should check all the facts at hand. Jeremy On Wed, 2003-10-08 at 09:06, Steve Murphy wrote: David Enderson also developed an upload meter and contacted PHP about including it. http://www.mail-archive.com/[EMAIL PROTECTED]/msg02155.html Long and short, PHP never included it. This functionality is requested and can be included easily. I'm in the process of developing documentation and rpm packaging for Dave's meter and I've already had 7 clients call me about it, (IMO) I think its time more projects like this are needed and PHP should do a better job of incorporating them and less time holding conferences. Murph Oh go here (http://www.pfohlsolutions.com/projects/upload) to see what's available (not much right now) from Enderson's project. Note this is not the official site. -Original Message- From: Hardik Doshi [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 08, 2003 9:47 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: [PHP] File upload meter Hi Group, It's really nice to see the file upload meter developed by Doru Theodor Petrescu (http://pdoru.from.ro/). He did a nice job. He created serveral patches for the php 4 to enable the file upload meter. I was just wondering what will happen to the file upload meter once the php 5.0 will release? Is PHP community planning to put file upload meter code permanently in every distributions of the php? Please let me know about my queries. I really want to use this feature but worrying for the future php releases. Thanks Regards, Hardik Doshi __ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com -- 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
Re: [PHP] shell_exec question
On Wed, 2003-10-08 at 15:23, Marek Kilimajer wrote: Then check your httpd.conf for php_(admin_)?(flag|value) OK, so I`ve tried all the suggestions posted, thanks guys...but then I went and deleted the php.ini file in /etc, and still when I use phpinfo(); it gives me the usual phpinfo page... So where is the info coming from...another php.ini located somewhere else on my drive ? A search revealed naddaso I`m out of ideas right now. -- Chris Blake Support Consultant Office : (011) 782-0840 Fax: (011) 782-0841 Mobile : 083 985 0379 Website: http://www.pbpc.co.za buzzword, n: The fly in the ointment of computer literacy. 16:16:41 up 21 days, 7:46, 3 users, load average: 0.43, 0.20, 0.24 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] do I need a database
How about XML ? But seriously flat files or databases would be better if this is a simple set up. If you plan to do a lot of writing and very little reading flat files are a hell of a lot of faster. If you use flatfiles though you have to forget about searching through it (unless you plan to write a few thousand lines of code). Sudheer Palaparambil wrote: Hi, I am planning a static site. But I need to capture some data (username, address, telephone and email only), do I need a database for recording this data ? Or is there any other way to record this data ? The volume may be high. Thank you. Sudheer _ Get Married! http://www.bharatmatrimony.com/cgi-bin/bmclicks1.cgi?74 Search from 7 lakh Brides Grooms. -- Raditha Dissanayake. http://www.radinks.com/sftp/ | http://www.raditha/megaupload/ Lean and mean Secure FTP applet with | Mega Upload - PHP file uploader Graphical User Inteface. Just 150 KB | with progress bar. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: PHP CSS
Couple of days of ago we had a nice thread on the use of XSLT. This is a situation where XSLT would be an ideal solution. Raquel Rice wrote: On Tue, 7 Oct 2003 17:06:13 -0500 erythros [EMAIL PROTECTED] wrote: you probably just want what everyone wants... a seperation of design from content. as for applying the variables to the style sheet it depends on what youre trying to do. what are the variables for? to request a specific css file? or are they to supplement the ccs file (ie: use value x for width of div), or are they to override the css file? i may have it wrong but what it sounds like is that you want to have a default css file then allow the user to make changes via the ini file. is this what youre after? Well, yes ... in a way. The plan is to have a main site, where users can have a subsite off the main site. I want to give the users the ability to customize, to an extent, their own subsite if they wish, while the main site retains the look I give it. -- Raquel I am only one; but still I am one. I cannot do everything, but still I can do something; I will not refuse to do the something I can do. --Helen Keller -- Raditha Dissanayake. http://www.radinks.com/sftp/ | http://www.raditha/megaupload/ Lean and mean Secure FTP applet with | Mega Upload - PHP file uploader Graphical User Inteface. Just 150 KB | with progress bar. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Use XML...
Use XML to store all your data, and if you want an xml search mechanism, I have a quick and dirty answer that runs client-side so you dont have to worry about wearing down your server... russ jones -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] convert \ to /
Maybe you could rewrite your URLs so that they don't appear as GET queries. Cheers, Rob. On Wed, 2003-10-08 at 04:46, Diana Castillo wrote: I am receiving some data in which the sender has mistakenly sent urls with \ instead of / to separate directories. e.g. http://www.anysite.com\page.htm I need to convert this string to http://www.anysite.com/page.htm but str replace (\,/,$var) doesnt work. any ideas as to how to convert it. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- .. | InterJinn Application Framework - http://www.interjinn.com | :: | An application and templating framework for PHP. Boasting | | a powerful, scalable system for accessing system services | | such as forms, properties, sessions, and caches. InterJinn | | also provides an extremely flexible architecture for | | creating re-usable components quickly and easily. | `' -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Use XML...
Hi, I do believe sudheer's requirement would call for the searching to be done on the server side. Personally i don't use XML when searching is involved. If you use a DOM based solution all your servers memory just gets sucked up. If you use plain old sax you have to do a lot of coding yourself (though you can get the result much faster). But i do think it's just about the best thing when it comes to sequential reading of records. Russell P Jones wrote: Use XML to store all your data, and if you want an xml search mechanism, I have a quick and dirty answer that runs client-side so you dont have to worry about wearing down your server... russ jones -- Raditha Dissanayake. http://www.radinks.com/sftp/ | http://www.raditha/megaupload/ Lean and mean Secure FTP applet with | Mega Upload - PHP file uploader Graphical User Inteface. Just 150 KB | with progress bar. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: (native) linux-php-editor with some advanced features?
As a amateur PHP user, I have really enjoyed Komodo 2.5 (been using it since 1.3). Buy the non-commercial license, it's cheap (I think I paid $24.95) and ActiveState backs up their products well. Not a plug for them, but my experience with them has been good. Plus, if you want to switch back and forth from Windows to Linux, the license still applies (I have a dual-boot machine), and the functionality is the same. HTH -Kirk Thomas Seifert [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hey folks, I know this topic comes up again and again but I couldn't find any usefull php-editor for linux which is NOT written in java AND has some advanced features like a file navigation (listing all functions in a file with direct jump to them) or tooltips with the function definition or similar. I liked the features of the Zend IDE but its just to aching slow on linux (don't know why, but its much faster on windows), while other native editors are not made for php or just contain its syntax-highlightning without any further special features. Did I miss one of the available editors which provides these features? Thanks, Thomas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] do I need a database
* Thus wrote Raditha Dissanayake ([EMAIL PROTECTED]): How about XML ? But seriously flat files or databases would be better if this is a simple set up. If you plan to do a lot of writing and very little reading flat files are a hell of a lot of faster. If you use flatfiles though you have to forget about searching through it (unless you plan to write a few thousand lines of code). Another option would be use file db system like: http://php.net/dba Curt -- My PHP key is worn out PHP List stats since 1997: http://zirzow.dyndns.org/html/mlists/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] preg question
* Thus wrote Mike J ([EMAIL PROTECTED]): How do I take that and put it into a variable like $title? print_r($matches) will answer that. Btw, I had a typo, it should have been: preg_match(/(title)(.*)(\/\\2)/i, $html, $matches); Not preg_match_all(). Curt -- I used to think I was indecisive, but now I'm not so sure. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] session expire
--- redips [EMAIL PROTECTED] wrote: I know that if I set a session, by default it will expire when the browser closes. Can I also set a timeout? You can look through your php.ini, searching for the word session. I prefer, however, to keep a timestamp of the user's last access in the session itself, and you can use that in your programming logic to determine whether the user's session is timed out or not. Hope that helps. Chris = My Blog http://shiflett.org/ HTTP Developer's Handbook http://httphandbook.org/ RAMP Training Courses http://www.nyphp.org/ramp -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] shell_exec question
On 08 October 2003 15:19, Chris Blake contributed these pearls of wisdom: On Wed, 2003-10-08 at 15:23, Marek Kilimajer wrote: Then check your httpd.conf for php_(admin_)?(flag|value) OK, so I`ve tried all the suggestions posted, thanks guys...but then I went and deleted the php.ini file in /etc, and still when I use phpinfo(); it gives me the usual phpinfo page... So where is the info coming from...another php.ini located somewhere else on my drive ? No, these will be PHP's built-in default values (which are the same as the ones in one of the php.ini-* included in the PHP distribution -- php.ini-dist, I think, but I could be wrong). The trick is to look at the phpinfo() output for Configuration file (php.ini) path -- if it only gives a directory's path (ending in /, without a php.ini filename on the end), than that is the path it is looking in, but there is no php.ini file there so the built-in defaults are being used. If it gives a full pathname ending with an actual filename, that is the file it is reading. Cheers! Mike - Mike Ford, Electronic Information Services Adviser, Learning Support Services, Learning Information Services, JG125, James Graham Building, Leeds Metropolitan University, Beckett Park, LEEDS, LS6 3QS, United Kingdom Email: [EMAIL PROTECTED] Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: (native) linux-php-editor with some advanced features?
That is really odd. From what I heard Zend Studio runs faster in Linux than Windows. I have only experienced the Windows version over someone's shoulder, but with similar machines mine seems to load faster and run better and I use Linux. Try upgrading to the new ZS3 if you haven't already. It is faster and better than 2.6. Well worth the money. I still find myself using vi/pico though more often than not. I guess it is all a matter of preference. Jeremy On Wed, 2003-10-08 at 09:57, Kirk Babb wrote: As a amateur PHP user, I have really enjoyed Komodo 2.5 (been using it since 1.3). Buy the non-commercial license, it's cheap (I think I paid $24.95) and ActiveState backs up their products well. Not a plug for them, but my experience with them has been good. Plus, if you want to switch back and forth from Windows to Linux, the license still applies (I have a dual-boot machine), and the functionality is the same. HTH -Kirk Thomas Seifert [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hey folks, I know this topic comes up again and again but I couldn't find any usefull php-editor for linux which is NOT written in java AND has some advanced features like a file navigation (listing all functions in a file with direct jump to them) or tooltips with the function definition or similar. I liked the features of the Zend IDE but its just to aching slow on linux (don't know why, but its much faster on windows), while other native editors are not made for php or just contain its syntax-highlightning without any further special features. Did I miss one of the available editors which provides these features? Thanks, Thomas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] shell_exec question
Start here: grep -r safe_mode /* ;) Chris Blake wrote: On Wed, 2003-10-08 at 15:23, Marek Kilimajer wrote: Then check your httpd.conf for php_(admin_)?(flag|value) OK, so I`ve tried all the suggestions posted, thanks guys...but then I went and deleted the php.ini file in /etc, and still when I use phpinfo(); it gives me the usual phpinfo page... So where is the info coming from...another php.ini located somewhere else on my drive ? A search revealed naddaso I`m out of ideas right now. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Smarty problem
Webmaster [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, I already posted this question in the Smarty group, without success. I have a problem with Smarty. I wrote the following function that gets data from a mysql database: function showHeadlines() { global $db; $entry_events = array(); if ($this-showold == true) { $db-select(*, news, (d_kategorie = 'de_termin'), d_datum ASC, , , ); $entry_events = $db-fetch_array(); $this-assignVars('termineAus', $this-aTrans['termineAus']); $this-assignVars('entry_events', $entry_events); } The template part looks like this: table width=100% border=0 cellspacing=0 cellpadding=5 align=center tr tdh2{$events}/h2/td /tr tr tda href={$filenpath}?showold={$showold}i{$termineAus}/i/a/td /tr {section name=i loop=$entry_events} {foreach} seems to be a better choice to use here. Whenenver I've had problems with sections, changing them to foreachs usually fixes it. tr td bgcolor=#e2e2e2b{$entry_events[i].d_datum} {$entry_events[i].d_zeit}/b/td /tr tr tdb{$entry_events[i].d_ueberschrift}/b/td /tr tr tdb{$place}:/b {$entry_events[i].d_ort}/td /tr {/section} /table The problem is that the output in only garbage? Is there a logical problem ? Thank you very much Welcome. -- Rob -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] shell_exec question
Chris Blake wrote: OK, so I`ve tried all the suggestions posted, thanks guys...but then I went and deleted the php.ini file in /etc, and still when I use phpinfo(); it gives me the usual phpinfo page... First, make sure to restart Apache after you do anything to php.ini Secondly, when php.ini is absent, php starts with default options. So where is the info coming from...another php.ini located somewhere else on my drive ? A search revealed naddaso I`m out of ideas right now. If there are any .htaccess files, they can include php overrides also. Check to make sure that local and master values are what you want them to be. -- Burhan Khalid phplist[at]meidomus[dot]com http://www.meidomus.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] convert \ to /
--- Diana Castillo [EMAIL PROTECTED] wrote: http://www.anysite.com\page.htm I need to convert this string to http://www.anysite.com/page.htm but str replace (\,/,$var) doesnt work. $windowsitis_free_var = str_replace('\\', '/', $var); Hope that helps. Chris = My Blog http://shiflett.org/ HTTP Developer's Handbook http://httphandbook.org/ RAMP Training Courses http://www.nyphp.org/ramp -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] GET globals REQUEST the plot thickens
Ben Edwards wrote: From what I have $_REQUEST douse NOT work. As I said vars are being passed on the URL. My code: echo brsec=.$_REQUEST[_section].brreq=$REQUEST_URIbr; the output sec= req=/adultdyslexia.org/quiz.php?_menu=TOPissue=1_section=QUIZgen=Y if I change the request to GET it works fine! Is PHP running as compiled/CGI/ or what? And what webserver is this? -- Burhan Khalid phplist[at]meidomus[dot]com http://www.meidomus.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] shell_exec question
I thought about it, but safe mode can be set only in php.ini or httpd.conf Burhan Khalid wrote: Chris Blake wrote: OK, so I`ve tried all the suggestions posted, thanks guys...but then I went and deleted the php.ini file in /etc, and still when I use phpinfo(); it gives me the usual phpinfo page... First, make sure to restart Apache after you do anything to php.ini Secondly, when php.ini is absent, php starts with default options. So where is the info coming from...another php.ini located somewhere else on my drive ? A search revealed naddaso I`m out of ideas right now. If there are any .htaccess files, they can include php overrides also. Check to make sure that local and master values are what you want them to be. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] or return problem
--- Ford, Mike [LSS] [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Firstly, or, as a Boolean operator requires two operands, both of which must have an actual value. [snip] statements don't have a value (and can't even be coerced to have one), so return can't be valid as one of the operands to or. Based on yesterday's discussion, this seems to be a very common misconception. I will try to clear it up. Let's take a common use: mysql_query($sql) or die(mysql_error()); There is a conditional here, but it has nothing to do with the die() part. The or is not the same as || in a conditional expression. The return of die() is not being evaluated. Only the return of mysql_query() is. This can be rewritten as follows: if (!mysql_query($sql)) { die(mysql_error()); } If it helps, you can possibly replace or with else when you read these types of statements to clarify the use. It makes sense to me like it is. This really just boils down to language semantics, and it probably makes more sense to native English speakers than others. The word or means different things in the following two examples: 1. If you find some Coke or Pepsi, buy some. This suggests that either Coke or Pepsi will suffice. In PHP: if ($type == 'coke' || $type == 'pepsi') { buy_some(); } 2. Bring me the antidote, or I will die. This suggests that if the antidote is not brought, the speaker will die. If it is, the or I will die part never happens. In PHP: bring_antidote() or die; Of course, die is just an alias for exit, but it sounds better. :-) Hope that helps. Chris = My Blog http://shiflett.org/ HTTP Developer's Handbook http://httphandbook.org/ RAMP Training Courses http://www.nyphp.org/ramp -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Error catching script
Hello, Is there a way, on a hosted server, to prevent PHP errors from showing in a browser? Instead of error whatever at line 107 in filename.php to have it redirect to a Sorry, please report this error page Thanks, James -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Error catching script
--- James Johnson [EMAIL PROTECTED] wrote: Is there a way, on a hosted server, to prevent PHP errors from showing in a browser? I am assuming you are asking how to change php.ini directives, since you probably don't have access. On most shared hosts, they are configured to use a .htaccess file (assuming Apache), and you can set many php.ini directives here. The online manual is very good at explaining which directives can be set where, so I recommend reading that. Chris = My Blog http://shiflett.org/ HTTP Developer's Handbook http://httphandbook.org/ RAMP Training Courses http://www.nyphp.org/ramp -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] A DATE Question
On Wed, Oct 08, 2003 at 03:08:44PM +0100, Shaun wrote: : : is there a function in PHP that will work out the amount of time(hours) : beween two different dates / times? Just convert the two times into Unix timestamps, subtract one from the other, and the difference is the amount of time in seconds. Then it's a simple matter of math to convert from seconds to hours (and minutes). -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PDFlib Page Dimensions and Word Wrap
Hello, I have read the http://us4.php.net/manual/en/ref.pdf.php and am unable to find a solution for what I'm trying to do. I've also tried googling for what I'm trying to do. No luck there either. I've also downloaded the PDFlib docs but no luck there. When using PDFlib you specify page dimensions. Why then, does it not automatically wrap words/texts/sentences to the next line? Is there something I'm missing to have PDFlib automatically do this? No matter the amount of text in the variable I'm trying to print in the pdf, it just runs off the right side of the pdf document. Thanks, Roger -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: PHP CSS
On Tue, 7 Oct 2003 23:22:02 -0700 Raquel Rice [EMAIL PROTECTED] wrote: On Tue, 7 Oct 2003 17:06:13 -0500 erythros [EMAIL PROTECTED] wrote: you probably just want what everyone wants... a seperation of design from content. as for applying the variables to the style sheet it depends on what youre trying to do. what are the variables for? to request a specific css file? or are they to supplement the ccs file (ie: use value x for width of div), or are they to override the css file? i may have it wrong but what it sounds like is that you want to have a default css file then allow the user to make changes via the ini file. is this what youre after? Well, yes ... in a way. The plan is to have a main site, where users can have a subsite off the main site. I want to give the users the ability to customize, to an extent, their own subsite if they wish, while the main site retains the look I give it. -- Raquel I am only one; but still I am one. I cannot do everything, but still I can do something; I will not refuse to do the something I can do. --Helen Keller -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php I might just add that I can accomplish this very easily using inline style elements within HTML tags but, I'm wanting to separate out the CSS. -- Raquel To behave with dignity is nothing less than to allow others freely to be themselves. --Sol Chaneles -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] or return problem
* Thus wrote Chris Shiflett ([EMAIL PROTECTED]): --- Ford, Mike [LSS] [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Firstly, or, as a Boolean operator requires two operands, both of which must have an actual value. [snip] statements don't have a value (and can't even be coerced to have one), so return can't be valid as one of the operands to or. Based on yesterday's discussion, this seems to be a very common misconception. I will try to clear it up. To add this, the 'include' family also accepts this construct: condition or include(file); Which also violates the rule that statments (constructs) dont have return values. I have a feeling die() was special cased to inherit the popular perl method of using: condition or die(); 1. If you find some Coke or Pepsi, buy some. This suggests that either Coke or Pepsi will suffice. In PHP: if ($type == 'coke' || $type == 'pepsi') { buy_some(); } So now we're at $coke or $pepsi and buy_some() :) Curt -- My PHP key is worn out PHP List stats since 1997: http://zirzow.dyndns.org/html/mlists/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Error catching script
* Thus wrote James Johnson ([EMAIL PROTECTED]): Hello, Is there a way, on a hosted server, to prevent PHP errors from showing in a browser? Instead of error whatever at line 107 in filename.php to have it redirect to a Sorry, please report this error page See: set_error_handler(); http://php.net/set_error_handler Curt -- My PHP key is worn out PHP List stats since 1997: http://zirzow.dyndns.org/html/mlists/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] or return problem
On Wed, 2003-10-08 at 11:43, Curt Zirzow wrote: * Thus wrote Chris Shiflett ([EMAIL PROTECTED]): --- Ford, Mike [LSS] [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Firstly, or, as a Boolean operator requires two operands, both of which must have an actual value. [snip] statements don't have a value (and can't even be coerced to have one), so return can't be valid as one of the operands to or. Based on yesterday's discussion, this seems to be a very common misconception. I will try to clear it up. To add this, the 'include' family also accepts this construct: condition or include(file); Which also violates the rule that statments (constructs) dont have return values. This isn't a rule per se since it really depends on whether special treatment was given to the construct. The internals developers probably didn't see a need to provide support for return in conditionals since it can't return a value to the conditional. Incidentally does return in this manner work in perl since it appears that's what the or die() stuff is attmepting to mimic. Cheers, Rob. -- .. | InterJinn Application Framework - http://www.interjinn.com | :: | An application and templating framework for PHP. Boasting | | a powerful, scalable system for accessing system services | | such as forms, properties, sessions, and caches. InterJinn | | also provides an extremely flexible architecture for | | creating re-usable components quickly and easily. | `' -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PDFlib Page Dimensions and Word Wrap
* Thus wrote Roger Spears ([EMAIL PROTECTED]): Hello, I have read the http://us4.php.net/manual/en/ref.pdf.php and am unable to find a solution for what I'm trying to do. I've also tried googling for what I'm trying to do. No luck there either. I've also downloaded the PDFlib docs but no luck there. When using PDFlib you specify page dimensions. Why then, does it not automatically wrap words/texts/sentences to the next line? Is there something I'm missing to have PDFlib automatically do this? No matter the amount of text in the variable I'm trying to print in the pdf, it just runs off the right side of the pdf document. You might want to refer to the API documentation at: http://www.pdflib.com/ It seems that the pdflib documentation on the php site needs some work :) Curt -- My PHP key is worn out PHP List stats since 1997: http://zirzow.dyndns.org/html/mlists/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: PHP CSS
On Wed, 08 Oct 2003 20:34:51 +0600 Raditha Dissanayake [EMAIL PROTECTED] wrote: Raquel Rice wrote: On Tue, 7 Oct 2003 17:06:13 -0500 erythros [EMAIL PROTECTED] wrote: you probably just want what everyone wants... a seperation of design from content. snip i may have it wrong but what it sounds like is that you want to have a default css file then allow the user to make changes via the ini file. is this what youre after? Well, yes ... in a way. The plan is to have a main site, where users can have a subsite off the main site. I want to give the users the ability to customize, to an extent, their own subsite if they wish, while the main site retains the look I give it. -- Raquel Couple of days of ago we had a nice thread on the use of XSLT. This is a situation where XSLT would be an ideal solution. Raditha Dissanayake. Where would you suggest I begin my education? -- Raquel To behave with dignity is nothing less than to allow others freely to be themselves. --Sol Chaneles -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PDFlib Page Dimensions and Word Wrap
Tried that. Unless I overlooked something, the PDFlib.com docs were of no help. Thanks, Roger Curt Zirzow wrote: * Thus wrote Roger Spears ([EMAIL PROTECTED]): Hello, I have read the http://us4.php.net/manual/en/ref.pdf.php and am unable to find a solution for what I'm trying to do. I've also tried googling for what I'm trying to do. No luck there either. I've also downloaded the PDFlib docs but no luck there. When using PDFlib you specify page dimensions. Why then, does it not automatically wrap words/texts/sentences to the next line? Is there something I'm missing to have PDFlib automatically do this? No matter the amount of text in the variable I'm trying to print in the pdf, it just runs off the right side of the pdf document. You might want to refer to the API documentation at: http://www.pdflib.com/ It seems that the pdflib documentation on the php site needs some work :) Curt -- Roger Spears Technology Project Coordinator College of Arts and Sciences Bowling Green State University Bowling Green, Ohio 43403 VOICE: (419) 372-2015 FAX: (419) 372-8548
Re: [PHP] or return problem
* Thus wrote Robert Cummings ([EMAIL PROTECTED]): On Wed, 2003-10-08 at 11:43, Curt Zirzow wrote: * Thus wrote Chris Shiflett ([EMAIL PROTECTED]): --- Ford, Mike [LSS] [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Firstly, or, as a Boolean operator requires two operands, both of which must have an actual value. [snip] statements don't have a value (and can't even be coerced to have one), so return can't be valid as one of the operands to or. Based on yesterday's discussion, this seems to be a very common misconception. I will try to clear it up. To add this, the 'include' family also accepts this construct: condition or include(file); Which also violates the rule that statments (constructs) dont have return values. This isn't a rule per se since it really depends on whether special treatment was given to the construct. The internals developers probably didn't see a need to provide support for return in conditionals since it can't return a value to the conditional. Incidentally does return in this manner work in perl since it appears that's what the or die() stuff is attmepting to mimic. perl: 0 or return; Works fine. Curt -- My PHP key is worn out PHP List stats since 1997: http://zirzow.dyndns.org/html/mlists/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] LiteSpeed Web Server 1.1
We glad to introduce you LiteSpeed Web Server 1.1. About: LiteSpeed Web Server is a full-featured, high-performance, secure, and easy-to-use Web server that runs on Unix and Linux. It supports HTTP/1.1, SSL, CGI, FastCGI, PHP, JSP, Servlets, GZIP compression, .htaccess, IP level throttling, connection accounting, DoS attack prevention, and instant recovery mechanisms. Installation is very easy with pre-built binary. Administration and configuration is very easy through a Web interface. Changes since 1.0.3: HTTP authentication was re-engineered. An authentication cache was added. Permissions can now be granted based on usernames or group names. An Apache-like required directive was added. Context level access control was implemented. .htaccess support and an .htaccess cache were added. SSL Toolkit was updated to OpenSSL 0.9.7c to address security issues in version 0.9.7b. Our benchmark shows that it is 2-5 times faster than Apache with static content, PHP performance meets or exceeds that of Apache's mod_php. SSL performance is doubled at least.. LiteSpeed Standard Edition is FREE for any purpose of use and we'd like to hear your feedback. For more information please visit http://litespeedtech.com/index.html?php-general Best regards, LiteSpeed Team -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re[2]: [PHP] Re: PHP CSS
Hi, Thursday, October 9, 2003, 1:37:57 AM, you wrote: RR On Tue, 7 Oct 2003 23:22:02 -0700 RR Raquel Rice [EMAIL PROTECTED] wrote: On Tue, 7 Oct 2003 17:06:13 -0500 erythros [EMAIL PROTECTED] wrote: you probably just want what everyone wants... a seperation of design from content. as for applying the variables to the style sheet it depends on what youre trying to do. what are the variables for? to request a specific css file? or are they to supplement the ccs file (ie: use value x for width of div), or are they to override the css file? i may have it wrong but what it sounds like is that you want to have a default css file then allow the user to make changes via the ini file. is this what youre after? Well, yes ... in a way. The plan is to have a main site, where users can have a subsite off the main site. I want to give the users the ability to customize, to an extent, their own subsite if they wish, while the main site retains the look I give it. -- Raquel I am only one; but still I am one. I cannot do everything, but still I can do something; I will not refuse to do the something I can do. --Helen Keller -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php RR I might just add that I can accomplish this very easily using inline RR style elements within HTML tags but, I'm wanting to separate out RR the CSS. RR -- RR Raquel RR RR To behave with dignity is nothing less than to allow others freely RR to be themselves. RR --Sol Chaneles You don't need to call your style sheets .css they can be just as easily called .php and even have a querystring attached like subsite.php?user=fred That way just use php as normal and return a style sheet just as you would a html page. example html head link rel=stylesheet type=text/css href=styles/subsite.php?user=fred /head body . . . /body subsite would have something like ? $user = (isset($_GET['user']))? $_GET['user']: 'none'; $default_color = 'blue'; switch($user){ case 'fred': echo 'H1 {font-size: 18px; color: red;}'; break; case 'none': echo 'H1 {font-size: 18px; color: '.$default_color.';}'; break; } regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP Contest/Marathon at geek.org
Sorry if this is a double post or if it's already been talked about. I just found out a few moments ago that http://www.dotgeek.org/ is having a php programming contest/marathon in November. Here's the link: http://www.dotgeek.org/?q=node/view/9 Thanks, Roger -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] or return problem
On 08 October 2003 16:13, Chris Shiflett contributed these pearls of wisdom: --- Ford, Mike [LSS] [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Firstly, or, as a Boolean operator requires two operands, both of which must have an actual value. [snip] statements don't have a value (and can't even be coerced to have one), so return can't be valid as one of the operands to or. Based on yesterday's discussion, this seems to be a very common misconception. No, it's not -- the misconception appears to be yours. I will try to clear it up. And I will try to clear up your clearing up. Let's take a common use: mysql_query($sql) or die(mysql_error()); There is a conditional here, but it has nothing to do with the die() part. The or is not the same as || in a conditional expression. Only because it's got a different precedence -- in all other respects, || and or are identical (Boolean-or operator with lazy, or short-circuit, evaluation). The return of die() is not being evaluated. That's because of the lazy evaluation of Boolean operators in PHP, nothing to do with whether it's or or ||. Only the return of mysql_query() is. This can be rewritten as follows: if (!mysql_query($sql)) { die(mysql_error()); } If it helps, you can possibly replace or with else when you read these types of statements to clarify the use. It makes sense to me like it is. This really just boils down to language semantics, and it probably makes more sense to native English speakers than others. The word or means different things in the following two examples: 1. If you find some Coke or Pepsi, buy some. This suggests that either Coke or Pepsi will suffice. In PHP: if ($type == 'coke' || $type == 'pepsi') OR: if ($type == 'coke' or $type == 'pepsi') (Note that lazy evaluation applies in this case as well -- if $type is, in fact, == 'coke', the $type == 'pepsi' condition will never be evaluated.) { buy_some(); } 2. Bring me the antidote, or I will die. This suggests that if the antidote is not brought, the speaker will die. If it is, the or I will die part never happens. In PHP: bring_antidote() or die; OR: bring_antidote() || die; There really is no difference between the or and || operators apart from their precedence (see, for example, http://uk.php.net/manual/en/language.operators.php#language.operators.preced ence and http://uk.php.net/manual/en/language.operators.logical.php), and because of their ordering in relation to other operators it's really only in combination with assignment operators that they can cause problems. For example, consider the following: $y = validate($x) or print Invalid!; This is evaluated as ($y = validate($x)) or print Invalid!; which is probably what was intended -- $y is assigned the the value of validate($x), and then the print is only executed if that is false. However: $y = validate($x) || print Invalid!; is evaluated as: $y = (validate($x) || print Invalid!); which will assign to $y the value of validate($x) if it is non-empty, otherwise will execute the print and assign 1 (the return value of print) to $y. This is probably not what the writer intended. Cheers! Mike - Mike Ford, Electronic Information Services Adviser, Learning Support Services, Learning Information Services, JG125, James Graham Building, Leeds Metropolitan University, Beckett Park, LEEDS, LS6 3QS, United Kingdom Email: [EMAIL PROTECTED] Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] or return problem
On 08 October 2003 16:43, Robert Cummings contributed these pearls of wisdom: On Wed, 2003-10-08 at 11:43, Curt Zirzow wrote: * Thus wrote Chris Shiflett ([EMAIL PROTECTED]): --- Ford, Mike [LSS] [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Firstly, or, as a Boolean operator requires two operands, both of which must have an actual value. [snip] statements don't have a value (and can't even be coerced to have one), so return can't be valid as one of the operands to or. Based on yesterday's discussion, this seems to be a very common misconception. I will try to clear it up. To add this, the 'include' family also accepts this construct: condition or include(file); Which also violates the rule that statments (constructs) dont have return values. Well, include isn't really just a statement, since You can take the value of the include call as you would a normal function. (from http://uk.php.net/manual/en/function.include.php). Cheers! Mike - Mike Ford, Electronic Information Services Adviser, Learning Support Services, Learning Information Services, JG125, James Graham Building, Leeds Metropolitan University, Beckett Park, LEEDS, LS6 3QS, United Kingdom Email: [EMAIL PROTECTED] Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] or return problem
The internals developers probably didn't see a need to provide support for return in conditionals since it can't return a value to the conditional. Ugh. This is the same misconception, again. Let's try some different code: ? function foo() { echo foo\n; } function bar() { return true; } bar() or foo(); ? The return of foo() does not matter. It is not evaluated. I do not understand why this is still unclear. Consider this: if (!bar()) { foo(); } Does it seem like foo() is involved in the conditional when expressed like this? I hope not. Chris = My Blog http://shiflett.org/ HTTP Developer's Handbook http://httphandbook.org/ RAMP Training Courses http://www.nyphp.org/ramp -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] File upload meter
Hi Radhitha, Can you please let me know which file upload meter code (the one i mentiond or megaupload) will be included in the V5? Thanks Hardik --- Raditha Dissanayake [EMAIL PROTECTED] wrote: Hi, These guys have done a good job and I think it's planned to be included in V5. Till then i invite you to take a look at http://www.sourceforge.net/projects/megaupload/ where you can download a system that works without PHP having to be patched. best regards raditha. Steve Murphy wrote: David Enderson also developed an upload meter and contacted PHP about including it. http://www.mail-archive.com/[EMAIL PROTECTED]/msg02155.html Long and short, PHP never included it. This functionality is requested and can be included easily. I'm in the process of developing documentation and rpm packaging for Dave's meter and I've already had 7 clients call me about it, (IMO) I think its time more projects like this are needed and PHP should do a better job of incorporating them and less time holding conferences. Murph Oh go here (http://www.pfohlsolutions.com/projects/upload) to see what's available (not much right now) from Enderson's project. Note this is not the official site. -Original Message- From: Hardik Doshi [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 08, 2003 9:47 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: [PHP] File upload meter Hi Group, It's really nice to see the file upload meter developed by Doru Theodor Petrescu (http://pdoru.from.ro/). He did a nice job. He created serveral patches for the php 4 to enable the file upload meter. I was just wondering what will happen to the file upload meter once the php 5.0 will release? Is PHP community planning to put file upload meter code permanently in every distributions of the php? Please let me know about my queries. I really want to use this feature but worrying for the future php releases. Thanks Regards, Hardik Doshi __ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- Raditha Dissanayake. http://www.radinks.com/sftp/ | http://www.raditha/megaupload/ Lean and mean Secure FTP applet with | Mega Upload - PHP file uploader Graphical User Inteface. Just 150 KB | with progress bar. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php __ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] dynamic - static
Dear All, Does anybody have any solutions, which makes possible to produce static pages of all dynamic cms once a day and can be easily integrated into already made site? Why do you need to do this? Is it because of hosting restrictions, performance concerns, or portability/mirroring (which is a form of hoting restriction I suppose)? There are a number of ways to approach this problem... If your sole concern is performance, judicious use of caching could be your answer. You can cache your code using PHP Accelerator or Turck MMCache, which helps with load times, or you can cache your data by implementing a caching layer between your application and your database. I believe PEAR has some classes designed for this. They basically all boil down to memoizing function return values with the serialize/unserialize functions, and storing those results in files. I have used this method in applications to great effect - a cascading cache that stores database results, page components like navigation areas, and entire pages is a great performance enhancer, but you need to know how to mark and remove stale data dynamically. If you need a static version of your site due to hosting restrictions, you can used a spider such as wget (I think has been mentioned in this thread) to crawl your site and generate a local copy for you. Wget is an excellent one, because it has options like --page-requisites and --convert-links which make it easy to generate a self contained site mirror. This approach requires that your dynamic links all have a slash-syntax, like index.php/foo/bar/etc/. It's very easily implementable in a series of Make rules - I use this method for www.stamen.com, where rolling out a new version of the site is a simple matter of 'make clean; make live'. You can also use the 'page fault' method, which is my personal favorite. Let Apache's mod_rewrite handle your caching and URL-rewriting: 1) user requests page foo/index.html 2) if foo/index.html does not exist in filesystem, Apache knows to redirect this request to bar.php 3) bar.php performs actions needed to generate contents of foo/index.html, and also creates the file 4) bar.php returns contents of foo/index.html 5) subsequent requests for foo/index.html just return that file, bypassing PHP entirely. This one's sort of a balancing act though. It has been suggested here that you can use Apache's ErrorDocument directive to direct the request to bar.php, but this has the unfortunate side-effect of returning a 404 status code with the response. Not really a problem with a normal browser, but when those responses are (for example) XML files used by flash, the 404 causes it to error out regardless of the content of the response. A better method is to use a string of RewriteCond's, like so: RewriteCond %{REQUEST_FILENAME} !-f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteCond %{REQUEST_FILENAME}/index.html !-f RewriteRule ^.*$bar.php Obviously, this method is totally incompatible with any form of actual dynamic content, but you're asking for ways to generate static output, so I assume that's not an issue. The difficulty with this one is the same as with any caching system as above - finding and flushing stale data. I do this by rolling the cache deletion code into the editing functions, but you can also use a cronjob to find and flush files older than some cutoff time period. - michal migurski- contact info and pgp key: sf/cahttp://mike.teczno.com/contact.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] LiteSpeed Web Server 1.1
LiteSpeed Information wrote: We glad to introduce you LiteSpeed Web Server 1.1. Mind explaining this? $ telnet litespeedtech.com 80 HEAD / HTTP/1.1 Host: litespeedtech.com HTTP/1.1 200 OK Date: Wed, 08 Oct 2003 16:36:18 GMT Server: Apache - Last-Modified: Wed, 08 Oct 2003 03:13:06 GMT Eag: 342b8-36cd-3f8380c2 Accept-Ranges: bytes Content-Length: 14029 Connection: close Content-Type: text/html -- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be prosecuted to the full extent of the law. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: Re[2]: [PHP] Re: PHP CSS
On Thu, 9 Oct 2003 02:00:20 +1000 Tom Rogers [EMAIL PROTECTED] wrote: Hi, Thursday, October 9, 2003, 1:37:57 AM, you wrote: Well, yes ... in a way. The plan is to have a main site, where users can have a subsite off the main site. I want to give the users the ability to customize, to an extent, their own subsite if they wish, while the main site retains the look I give it. -- Raquel RR I might just add that I can accomplish this very easily using RR inlinestyle elements within HTML tags but, I'm wanting to RR separate out the CSS. RR -- RR Raquel You don't need to call your style sheets .css they can be just as easily called.php and even have a querystring attached like subsite.php?user=fred That way just use php as normal and return a style sheet just as you would a html page. Thank you! I think that is exactly what I needed! -- Raquel To behave with dignity is nothing less than to allow others freely to be themselves. --Sol Chaneles -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] LiteSpeed Web Server 1.1
On Wed, 2003-10-08 at 12:41, Leif K-Brooks wrote: LiteSpeed Information wrote: We glad to introduce you LiteSpeed Web Server 1.1. Mind explaining this? $ telnet litespeedtech.com 80 HEAD / HTTP/1.1 Host: litespeedtech.com HTTP/1.1 200 OK Date: Wed, 08 Oct 2003 16:36:18 GMT Server: Apache - *heheh* That's like the smarty template site not using smarty. Or back in the day when hotmail was owned by Microsoft but still running off linux. Rob. -- .. | InterJinn Application Framework - http://www.interjinn.com | :: | An application and templating framework for PHP. Boasting | | a powerful, scalable system for accessing system services | | such as forms, properties, sessions, and caches. InterJinn | | also provides an extremely flexible architecture for | | creating re-usable components quickly and easily. | `' -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: Re[2]: [PHP] Re: PHP CSS
Tom Rogers [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, Thursday, October 9, 2003, 1:37:57 AM, you wrote: RR On Tue, 7 Oct 2003 23:22:02 -0700 RR Raquel Rice [EMAIL PROTECTED] wrote: On Tue, 7 Oct 2003 17:06:13 -0500 erythros [EMAIL PROTECTED] wrote: you probably just want what everyone wants... a seperation of design from content. as for applying the variables to the style sheet it depends on what youre trying to do. what are the variables for? to request a specific css file? or are they to supplement the ccs file (ie: use value x for width of div), or are they to override the css file? i may have it wrong but what it sounds like is that you want to have a default css file then allow the user to make changes via the ini file. is this what youre after? Well, yes ... in a way. The plan is to have a main site, where users can have a subsite off the main site. I want to give the users the ability to customize, to an extent, their own subsite if they wish, while the main site retains the look I give it. -- Raquel I am only one; but still I am one. I cannot do everything, but still I can do something; I will not refuse to do the something I can do. --Helen Keller -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php RR I might just add that I can accomplish this very easily using inline RR style elements within HTML tags but, I'm wanting to separate out RR the CSS. RR -- RR Raquel RR RR To behave with dignity is nothing less than to allow others freely RR to be themselves. RR --Sol Chaneles You don't need to call your style sheets .css they can be just as easily called .php and even have a querystring attached like subsite.php?user=fred That way just use php as normal and return a style sheet just as you would a html page. example html head link rel=stylesheet type=text/css href=styles/subsite.php?user=fred /head body . . . /body subsite would have something like ? $user = (isset($_GET['user']))? $_GET['user']: 'none'; $default_color = 'blue'; switch($user){ case 'fred': echo 'H1 {font-size: 18px; color: red;}'; break; case 'none': echo 'H1 {font-size: 18px; color: '.$default_color.';}'; break; } regards, Tom they way i understand it she'll want the subsite to ? $user = (isset($_GET['user']))? $_GET['user']: 'none'; $default_css = 'default.css'; $user_css='user.css'; ? css files cascade so all you'll have to do is head link rel=stylesheet type=text/css href=styles/default.css link rel=stylesheet type=text/css href=styles/ ? echo $user ? .css /head and the users css file will only change what you allow in the user.css file. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Outside help
Hi, Don't know if this an appropriate post, but am going to anyway. I am up against a deadline, and have two pesky PHP situations that I can't figure out. I'm sure that for the experts on this list, it would be easy, and I could get if I had the time. Would anyone be willing to contact me off-list to help out? I WILL make it worth your time. Thanks, James -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re[4]: [PHP] Re: PHP CSS
Hi, I don't think so, the original question was how to get PHP variables into a style sheet, though your way would work for a separate style sheet for each user. BTW I added .ass (active style sheet :)as a file extension for PHP processing to apache for this sort of function but I now use templates so it is redundant. -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] or return problem
--- Ford, Mike [LSS] [EMAIL PROTECTED] wrote: No, it's not -- the misconception appears to be yours. Well, perhaps it is a difference in perspective. Yes, or and || can be exchanged: 1. if ($foo or $bar) blah(); 2. mysql_query($sql) || die(mysql_error()); My point was to differentiate the two examples above, regardless of format. A conditional means to me that there is a fork in the path. In example 1 above, the fork is whether blah() is to be executed or not, and what determines that is whether either $foo or $bar evaluate as true. In example 2, the fork is whether die(mysql_error()) happens, and what determines that is whether mysql_query($sql) evaluates as true (indicating the query was successful). I guess you could see two different forks in the path concerning example 1, because $bar is only evaluated if $foo is false. Either way, the primary point of the conditional expression is to determine whether blah() should be executed. So, you are right, but I think of things a bit differently. Chris = My Blog http://shiflett.org/ HTTP Developer's Handbook http://httphandbook.org/ RAMP Training Courses http://www.nyphp.org/ramp -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] LiteSpeed Web Server 1.1
lol From: Robert Cummings [EMAIL PROTECTED] To: Leif K-Brooks [EMAIL PROTECTED] CC: LiteSpeed Information [EMAIL PROTECTED],Php-General (E-mail) [EMAIL PROTECTED] Subject: Re: [PHP] LiteSpeed Web Server 1.1 Date: 08 Oct 2003 12:44:52 -0400 On Wed, 2003-10-08 at 12:41, Leif K-Brooks wrote: LiteSpeed Information wrote: We glad to introduce you LiteSpeed Web Server 1.1. Mind explaining this? $ telnet litespeedtech.com 80 HEAD / HTTP/1.1 Host: litespeedtech.com HTTP/1.1 200 OK Date: Wed, 08 Oct 2003 16:36:18 GMT Server: Apache - *heheh* That's like the smarty template site not using smarty. Or back in the day when hotmail was owned by Microsoft but still running off linux. Rob. -- .. | InterJinn Application Framework - http://www.interjinn.com | :: | An application and templating framework for PHP. Boasting | | a powerful, scalable system for accessing system services | | such as forms, properties, sessions, and caches. InterJinn | | also provides an extremely flexible architecture for | | creating re-usable components quickly and easily. | `' -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php _ STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Outside help
Ok, thanks for the input everyone. I've received several replies to this message. Thanks again, James -Original Message- From: James Johnson [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 08, 2003 9:52 AM To: [EMAIL PROTECTED] Subject: [PHP] Outside help Hi, Don't know if this an appropriate post, but am going to anyway. I am up against a deadline, and have two pesky PHP situations that I can't figure out. I'm sure that for the experts on this list, it would be easy, and I could get if I had the time. Would anyone be willing to contact me off-list to help out? I WILL make it worth your time. Thanks, James -- 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
Re: [PHP] LiteSpeed Web Server 1.1
Hi, I am thinking of using LiteSpeed on a dedicated account that our company has reciently purchased (P4 2.0GHZ, Linux, 80gb space, 100gb bandwidth.etc), anybody out there already using it and facing any problems? One of the main reasons we want to use it is because of PHP/JSP and Servlets. Cheers, -Ryan We glad to introduce you LiteSpeed Web Server 1.1. About: LiteSpeed Web Server is a full-featured, high-performance, secure, and easy-to-use Web server that runs on Unix and Linux. It supports HTTP/1.1, SSL, CGI, FastCGI, PHP, JSP, Servlets, GZIP compression, .htaccess, IP level throttling, connection accounting, DoS attack prevention, and instant recovery mechanisms. Installation is very easy with pre-built binary. Administration and configuration is very easy through a Web interface. Changes since 1.0.3: HTTP authentication was re-engineered. An authentication cache was added. Permissions can now be granted based on usernames or group names. An Apache-like required directive was added. Context level access control was implemented. .htaccess support and an .htaccess cache were added. SSL Toolkit was updated to OpenSSL 0.9.7c to address security issues in version 0.9.7b. Our benchmark shows that it is 2-5 times faster than Apache with static content, PHP performance meets or exceeds that of Apache's mod_php. SSL performance is doubled at least.. LiteSpeed Standard Edition is FREE for any purpose of use and we'd like to hear your feedback. For more information please visit http://litespeedtech.com/index.html?php-general Best regards, LiteSpeed Team -- 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] configuration class - skeleton code for first OOP adventure
Hi, My first larger project is growing out of control. I've spent some weeks reading OOP tutorials, and feel ready to make my first dive into a new programming style. One of the things that led me this way was the need for user configuration of my project. Therefor, I'll start with a class that let's me read and write a configuration file. Is this a good start, or should I change anything? class configuration { var $configurationFile; function configuration($configurationFile) { $this-setConfigurationFile($configurationFile); } function setConfigurationFile($configurationFile) { // Code to check that $configurationFile points to a valid file } function readConfigurationFile() { $configurationArray = parse_ini_file($this-configurationFile, TRUE); return $configurationArray; } function writeConfigurationFile($changedValues) { $fp = fopen($this-configurationFile, r ); $contents = fread($fp, filesize($this-configurationFile)); fclose($fp); foreach ($changedValues as $changedValue) { $new_contents = ereg_replace($changedValue[old], $changedValue[new], $contents); $contents = $new_contents; } $fp = fopen($this-configurationFile, w ); fwrite($fp, $contents); fclose($fp); } } Best regards, -- anders thoresson -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] RE: HTML Printing problem.
I am aware of the printer functions in php but as far as I know you can not print an html document with them. It will just print the html code. Otherwords print the text. Also generating these reports with these functions would be a step back on the design because of the amount of ode needed to get the same results as the html handles automatically. Is there away to print html on the server with php? From: Rob A. Brahier [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: [PHP] RE: HTML Printing problem. Date: Wed, 8 Oct 2003 09:04:38 -0400 If you are using PHP on a Windows server then this might be an option: http://us4.php.net/manual/en/ref.printer.php -Rob -Original Message- From: php coder [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 07, 2003 4:13 PM To: [EMAIL PROTECTED] Subject: HTML Printing problem. Issue: HTML files are to large to print from the browser. We are creating reports that are ++5 mg in size. This is a real problem for the browser. We are on a network and can print directly from the server but this means we must convert the html to some printer friendly format. We are using many new standards such as tbody and thead tags to give us consistent header on each page of a printed document. This seems to cause problems with most conversions that we have seen. Any help with a solution? _ Help protect your PC. Get a FREE computer virus scan online from McAfee. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php _ Share your photos without swamping your Inbox. Get Hotmail Extra Storage today! http://join.msn.com/?PAGE=features/es -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] LiteSpeed Web Server 1.1
Mind explaining this? Not at all, :-), this is not the first time, people questions why we still use Apache. $ telnet litespeedtech.com 80 HEAD / HTTP/1.1 Host: litespeedtech.com HTTP/1.1 200 OK Date: Wed, 08 Oct 2003 16:36:18 GMT Server: Apache - For economy reason, right now our web site is hosted at http://www.p4host.com, with a shared hosting plan. We plan to get a dedicated server and start using our web server pretty soon, December the latest. We also plan to offer FREE web hosting as we will get plenty bandwidth left after switching to dedicated server. Anyone interested? Just let us know. Best regards, LiteSpeed Team -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Creating a blogrolling/link management system
I'm looking at using PHP to create a link/bookmark system similar to blogrolling.com, but for many links both weblog and not. Basically the system would archive 3-500 links, display them hierarchically, etc. Standard stuff that I see a lot of PHP code for. What I am wondering is what is the best approach for detecting recently changed links? I could use various files put out by blogger.com or blo.gs, etc. to check sites that use those services, but while being much more efficient than actually checking myself, that would exclude many non blog sites. I only want to indicate sites that were updated in the last 24 hours, so I am thinking that I could just cron a PHP script that checks each site for changes every day. Is there a reliable method for doing this using just the headers returned for a page? Is there a better way? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Congratulations You Win
SUNSWEETWIN PROMO LOTTERY,THE NETHERLANDS. ALFONSTRAAT B56, 1002 BS AMSTERDAM, THE NETHERLANDS. TO THE MANAGER FROM: THE DESK OF THE PROMOTIONS MANAGER, INTERNATIONAL PROMOTIONS/PRIZE AWARD DEPARTMENT, REF: OYL /26510460037/02 BATCH: 24/00319/IPD ATTENTION: RE/ AWARD NOTIFICATION; FINAL NOTICE We are pleased to inform you of the announcement today, 7th October2003 of winners of the SUNSWEETWIN PROMO LOTTERY,THE NETHERLANDS/ INTERNATIONAL, PROGRAMS held on 28th August 2003 Your company,is attached to ticket number 023-0148-790-459, with serial number 5073-11 drew the lucky numbers 43-11-44-37-10-43, and consequently won the lottery in the 3rd category. You have therefore been approved for a lump sum pay out of US$5,500.000.00 in cash credited to file REF NO. OYL/25041238013/02. This is from total prize money of US$80,400,000.00 shared among the seventeen international winners in this category. All participants were selected through a computer ballot system drawn form 25,000 names from Australia, New Zealand, America, Europe, North America and Asia as part of International Promotions Program, which is conducted annually. CONGRATULATIONS! Your fund is now deposited with a Security company insured in your name. Due to the mix up of some numbers and names, we ask that you keep this award strictly from public notice until your claim has been processed and your money remitted to your account. This is part of our security protocol to avoid double claiming or unscrupulous acts by participants of this program. We hope with a part of you prize, you will participate in our end of year high stakes US$1.3 billion International Lottery. To begin your claim, please contact your claim agent; Mr Francis weeny at this email address below. [EMAIL PROTECTED] For due processing and remittance of your prize money to a designated account of your choice. Remember, all prize money must be claimed not later than 17th October 2003. After this date, all funds will be returned as unclaimed. NOTE: In order to avoid unnecessary delays and complications, please remember to quote your reference and batch numbers in every one of your orrespondences with your agent. Furthermore, should there be any change of your address, do inform your claims agent as soon as possible. Congratulations again from all our staff and thank you for being part of our promotions program. Sincerely, Clark Wood THE PROMOTIONS MANAGER, SUNSWEETWIN PROMO LOTTERY,THE NETHERLANDS. NB. Any breach of confidentiality on the part of the winners will result to disqualification. SORRY FOR THE LATE INFORMATION THANKS CLARK WOOD -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Congratulations You Win
WTF is this? - Original Message - From: Francis Weeny To: [EMAIL PROTECTED] Sent: Wednesday, October 08, 2003 10:30 PM Subject: [PHP] Congratulations You Win SUNSWEETWIN PROMO LOTTERY,THE NETHERLANDS. ALFONSTRAAT B56, 1002 BS AMSTERDAM, THE NETHERLANDS. TO THE MANAGER FROM: THE DESK OF THE PROMOTIONS MANAGER, INTERNATIONAL PROMOTIONS/PRIZE AWARD DEPARTMENT, REF: OYL /26510460037/02 BATCH: 24/00319/IPD ATTENTION: RE/ AWARD NOTIFICATION; FINAL NOTICE We are pleased to inform you of the announcement today, 7th October2003 of winners of the SUNSWEETWIN PROMO LOTTERY,THE NETHERLANDS/ INTERNATIONAL, PROGRAMS held on 28th August 2003 Your company,is attached to ticket number 023-0148-790-459, with serial number 5073-11 drew the lucky numbers 43-11-44-37-10-43, and consequently won the lottery in the 3rd category. You have therefore been approved for a lump sum pay out of US$5,500.000.00 in cash credited to file REF NO. OYL/25041238013/02. This is from total prize money of US$80,400,000.00 shared among the seventeen international winners in this category. All participants were selected through a computer ballot system drawn form 25,000 names from Australia, New Zealand, America, Europe, North America and Asia as part of International Promotions Program, which is conducted annually. CONGRATULATIONS! Your fund is now deposited with a Security company insured in your name. Due to the mix up of some numbers and names, we ask that you keep this award strictly from public notice until your claim has been processed and your money remitted to your account. This is part of our security protocol to avoid double claiming or unscrupulous acts by participants of this program. We hope with a part of you prize, you will participate in our end of year high stakes US$1.3 billion International Lottery. To begin your claim, please contact your claim agent; Mr Francis weeny at this email address below. [EMAIL PROTECTED] For due processing and remittance of your prize money to a designated account of your choice. Remember, all prize money must be claimed not later than 17th October 2003. After this date, all funds will be returned as unclaimed. NOTE: In order to avoid unnecessary delays and complications, please remember to quote your reference and batch numbers in every one of your orrespondences with your agent. Furthermore, should there be any change of your address, do inform your claims agent as soon as possible. Congratulations again from all our staff and thank you for being part of our promotions program. Sincerely, Clark Wood THE PROMOTIONS MANAGER, SUNSWEETWIN PROMO LOTTERY,THE NETHERLANDS. NB. Any breach of confidentiality on the part of the winners will result to disqualification. SORRY FOR THE LATE INFORMATION THANKS CLARK WOOD -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] RE: {Spam?} [PHP] Congratulations You Win
Francis Weeny mailto:[EMAIL PROTECTED] on Wednesday, October 08, 2003 7:30 PM said: SUNSWEETWIN PROMO LOTTERY,THE NETHERLANDS. [snip great news] YES!!! WE'RE RICH!! c. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: configuration class - skeleton code for first OOP adventure
Hello, [EMAIL PROTECTED] (Anders Thoresson) wrote Is this a good start, or should I change anything? I'm not a OO expert but I think you could include the SetConfigurationFile () function in your contructor. And if it fails inside the constructor exit to your other class controlling errors. Polleke -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Congratulations You Win
SUNSWEETWIN PROMO LOTTERY,THE NETHERLANDS. ALFONSTRAAT B56, 1002 BS AMSTERDAM, THE NETHERLANDS. TO THE MANAGER FROM: THE DESK OF THE PROMOTIONS MANAGER, INTERNATIONAL PROMOTIONS/PRIZE AWARD DEPARTMENT, REF: OYL /26510460037/02 BATCH: 24/00319/IPD ATTENTION: RE/ AWARD NOTIFICATION; FINAL NOTICE We are pleased to inform you of the announcement today, 7th October2003 of winners of the SUNSWEETWIN PROMO LOTTERY,THE NETHERLANDS/ INTERNATIONAL, PROGRAMS held on 28th August 2003 Your company,is attached to ticket number 023-0148-790-459, with serial number 5073-11 drew the lucky numbers 43-11-44-37-10-43, and consequently won the lottery in the 3rd category. You have therefore been approved for a lump sum pay out of US$5,500.000.00 in cash credited to file REF NO. OYL/25041238013/02. This is from total prize money of US$80,400,000.00 shared among the seventeen international winners in this category. All participants were selected through a computer ballot system drawn form 25,000 names from Australia, New Zealand, America, Europe, North America and Asia as part of International Promotions Program, which is conducted annually. CONGRATULATIONS! Your fund is now deposited with a Security company insured in your name. Due to the mix up of some numbers and names, we ask that you keep this award strictly from public notice until your claim has been processed and your money remitted to your account. This is part of our security protocol to avoid double claiming or unscrupulous acts by participants of this program. We hope with a part of you prize, you will participate in our end of year high stakes US$1.3 billion International Lottery. To begin your claim, please contact your claim agent; Mr Francis weeny at this email address below. [EMAIL PROTECTED] For due processing and remittance of your prize money to a designated account of your choice. Remember, all prize money must be claimed not later than 17th October 2003. After this date, all funds will be returned as unclaimed. NOTE: In order to avoid unnecessary delays and complications, please remember to quote your reference and batch numbers in every one of your orrespondences with your agent. Furthermore, should there be any change of your address, do inform your claims agent as soon as possible. Congratulations again from all our staff and thank you for being part of our promotions program. Sincerely, Clark Wood THE PROMOTIONS MANAGER, SUNSWEETWIN PROMO LOTTERY,THE NETHERLANDS. NB. Any breach of confidentiality on the part of the winners will result to disqualification. SORRY FOR THE LATE INFORMATION THANKS CLARK WOOD -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Creating a blogrolling/link management system
Hello, [EMAIL PROTECTED] (Chris) wrote What I am wondering is what is the best approach for detecting recently changed links? I could use various files put out by blogger.com or blo.gs, etc. to check sites that use those services, but while being much more efficient than actually checking myself, that would exclude many non blog sites. First of all you need to check with the website you are going to check if they really enjoy all bandwith required. And people will not see their banners anymore. Polleke -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Congratulations You Win
WOW! who's ALREADY jumped on this??? I can't wait to give him my bank account #!!! I'm going to be RICH! ;) WTF is this? - Original Message - From: Francis Weeny To: [EMAIL PROTECTED] Sent: Wednesday, October 08, 2003 10:30 PM Subject: [PHP] Congratulations You Win SUNSWEETWIN PROMO LOTTERY,THE NETHERLANDS. ALFONSTRAAT B56, 1002 BS AMSTERDAM, THE NETHERLANDS. TO THE MANAGER FROM: THE DESK OF THE PROMOTIONS MANAGER, INTERNATIONAL PROMOTIONS/PRIZE AWARD DEPARTMENT, REF: OYL /26510460037/02 BATCH: 24/00319/IPD ATTENTION: RE/ AWARD NOTIFICATION; FINAL NOTICE We are pleased to inform you of the announcement today, 7th October2003 of winners of the SUNSWEETWIN PROMO LOTTERY,THE NETHERLANDS/ INTERNATIONAL, PROGRAMS held on 28th August 2003 Your company,is attached to ticket number 023-0148-790-459, with serial number 5073-11 drew the lucky numbers 43-11-44-37-10-43, and consequently won the lottery in the 3rd category. You have therefore been approved for a lump sum pay out of US$5,500.000.00 in cash credited to file REF NO. OYL/25041238013/02. This is from total prize money of US$80,400,000.00 shared among the seventeen international winners in this category. All participants were selected through a computer ballot system drawn form 25,000 names from Australia, New Zealand, America, Europe, North America and Asia as part of International Promotions Program, which is conducted annually. CONGRATULATIONS! Your fund is now deposited with a Security company insured in your name. Due to the mix up of some numbers and names, we ask that you keep this award strictly from public notice until your claim has been processed and your money remitted to your account. This is part of our security protocol to avoid double claiming or unscrupulous acts by participants of this program. We hope with a part of you prize, you will participate in our end of year high stakes US$1.3 billion International Lottery. To begin your claim, please contact your claim agent; Mr Francis weeny at this email address below. [EMAIL PROTECTED] For due processing and remittance of your prize money to a designated account of your choice. Remember, all prize money must be claimed not later than 17th October 2003. After this date, all funds will be returned as unclaimed. NOTE: In order to avoid unnecessary delays and complications, please remember to quote your reference and batch numbers in every one of your orrespondences with your agent. Furthermore, should there be any change of your address, do inform your claims agent as soon as possible. Congratulations again from all our staff and thank you for being part of our promotions program. Sincerely, Clark Wood THE PROMOTIONS MANAGER, SUNSWEETWIN PROMO LOTTERY,THE NETHERLANDS. NB. Any breach of confidentiality on the part of the winners will result to disqualification. SORRY FOR THE LATE INFORMATION THANKS CLARK WOOD -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- Kevin Bruce Educational Web Designer VIP K-16 Grant http://www.scienceinquiry.org [EMAIL PROTECTED] Maryland Sea Grant College AOL Instant Messenger screen name- mdsgkevin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php