[PHP] R: [PHP] Date Function Questions
afaik it's the system time. Cheers En3pY Sebastian Konstanty Zdrojewski URL: http://www.en3py.net/ E-Mail: [EMAIL PROTECTED] Le informazioni contenute in questo messaggio sono riservate e confidenziali. Il loro utilizzo è consentito esclusivamente al destinatario del messaggio, per le finalità indicate nel messaggio stesso. Qualora Lei non fosse la persona a cui il presente messaggio è destinato, La invito ad eliminarlo dal Suo Sistema ed a distruggere le varie copie o stampe, dandone gentilmente comunicazione. Ogni utilizzo improprio è contrario ai principi del D.lgs 196/03 e alla legislazione Europea (Direttiva 2002/58/CE). -Messaggio originale- Da: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Inviato: lunedì 12 dicembre 2005 6.57 A: PHP-General Oggetto: [PHP] Date Function Questions This maybe a dumb questions, but in php where is the information taken from for the date() function? Is it pulled through Apache or the hardware or in the php.ini file? I am having an issue to where the time arbitraly changed one day from PST to CST. -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.371 / Virus Database: 267.13.13/197 - Release Date: 09/12/2005 smime.p7s Description: S/MIME cryptographic signature
[PHP] R: [PHP] how to unregister session stored as multidimensional array?
Try a bit dirty but works... :-/ Sebastian Konstanty Zdrojewski URL: http://www.en3py.net/ E-Mail: [EMAIL PROTECTED] Le informazioni contenute in questo messaggio sono riservate e confidenziali. Il loro utilizzo è consentito esclusivamente al destinatario del messaggio, per le finalità indicate nel messaggio stesso. Qualora Lei non fosse la persona a cui il presente messaggio è destinato, La invito ad eliminarlo dal Suo Sistema ed a distruggere le varie copie o stampe, dandone gentilmente comunicazione. Ogni utilizzo improprio è contrario ai principi del D.lgs 196/03 e alla legislazione Europea (Direttiva 2002/58/CE). -Messaggio originale- Da: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Inviato: lunedì 5 dicembre 2005 21.46 A: PHP eMail List Oggetto: [PHP] how to unregister session stored as multidimensional array? Is this possible at all: I have stored info from form in session: $_SESSION['client']['name'] = 'Name' $_SESSION['client']['address'] = 'Address' $_SESSION['client']['city'] = 'City' $_SESSION['client']['state'] = 'State' $_SESSION['client']['zip'] = 'Zip Now, I want to unregister all $_SESSION['client'] info EXCEPT $_SESSION['client']['name']. With session_unregister('client'); I clear everything. session_unregister('address'); doesn't clear this session. session_unregister($_SESSION['client']['address']); doesn't work. What am I doing wrong? Thanks for any help. -afan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.362 / Virus Database: 267.13.11/191 - Release Date: 02/12/2005 smime.p7s Description: S/MIME cryptographic signature
[PHP] R: [PHP] Re: Performance question
Hi, actually I think that if you have performance problem is when you make the calculations and process. If you make processes while giving output to the client, you might have some problems whether being somehow output buffering dependant... I would rather leave the output management as final step, concentrating all the process in the first part "hidden" and not involved into the parsing of HTML code (useless). I rather prefer the approach of data entry/input -> process -> output instead of data entry -> output while processing especially when the performance of process is critical. Do essential first, have fun laterz =:) Obviously IMHO :) Have fun, En3pY Sebastian Konstanty Zdrojewski URL: http://www.en3py.net/ E-Mail: [EMAIL PROTECTED] Le informazioni contenute in questo messaggio sono riservate e confidenziali. Il loro utilizzo è consentito esclusivamente al destinatario del messaggio, per le finalità indicate nel messaggio stesso. Qualora Lei non fosse la persona a cui il presente messaggio è destinato, La invito ad eliminarlo dal Suo Sistema ed a distruggere le varie copie o stampe, dandone gentilmente comunicazione. Ogni utilizzo improprio è contrario ai principi del D.lgs 196/03 e alla legislazione Europea (Direttiva 2002/58/CE). -Messaggio originale- Da: James Benson [mailto:[EMAIL PROTECTED] Inviato: lunedì 5 dicembre 2005 13.40 A: php-general@lists.php.net Oggetto: [PHP] Re: Performance question I dont think either will give a performance decrease any less than the other will do. Anders Norrbring wrote: > > I've been spending some time to find performance pros and cons, but so > far haven't had any real luck. > > Can someone on this list say which is better than the other, and also > why, when it comes to these kinds of syntax: > > 1. > php code > ?> > > > more php code > > 2. > php code > echo "$variable"; > echo "$var2"; > more php code > > In both cases, some processing is done, not that 'echo' uses a lot of > cpu time, but still... > On the other hand, there are more jumps in and out for the interpreter > in the first example... > > I'd love some thoughts on this. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.362 / Virus Database: 267.13.11/191 - Release Date: 02/12/2005 smime.p7s Description: S/MIME cryptographic signature
[PHP] R: [PHP] Performance question
Hi, I do prefer the first style programming after longer time in programming PHP. I like the idea of keeping HTML and PHP code separate for cosmetic purpose as well as mantainance. Actually a code with PHP only, I mean really with NO HTML code in it, is more portable and easy to mantain. As for performance I don't know, but a difference is present for sure. Actually I never benchmarked the performance of the two styles, but wanted to give my 10 cents for the coding style :) Cheers En3pY Sebastian Konstanty Zdrojewski URL: http://www.en3py.net/ E-Mail: [EMAIL PROTECTED] Le informazioni contenute in questo messaggio sono riservate e confidenziali. Il loro utilizzo è consentito esclusivamente al destinatario del messaggio, per le finalità indicate nel messaggio stesso. Qualora Lei non fosse la persona a cui il presente messaggio è destinato, La invito ad eliminarlo dal Suo Sistema ed a distruggere le varie copie o stampe, dandone gentilmente comunicazione. Ogni utilizzo improprio è contrario ai principi del D.lgs 196/03 e alla legislazione Europea (Direttiva 2002/58/CE). -Messaggio originale- Da: Anders Norrbring [mailto:[EMAIL PROTECTED] Inviato: lunedì 5 dicembre 2005 8.27 A: PHP General Oggetto: [PHP] Performance question I've been spending some time to find performance pros and cons, but so far haven't had any real luck. Can someone on this list say which is better than the other, and also why, when it comes to these kinds of syntax: 1. php code ?> $variable"; echo "$var2"; more php code In both cases, some processing is done, not that 'echo' uses a lot of cpu time, but still... On the other hand, there are more jumps in and out for the interpreter in the first example... I'd love some thoughts on this. -- Anders Norrbring Norrbring Consulting -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.362 / Virus Database: 267.13.11/191 - Release Date: 02/12/2005 smime.p7s Description: S/MIME cryptographic signature
[PHP] R: [PHP] Problem with Frames and Sessions
Change the logon script. The cookies of each frame are loaded separately, so if you want the session to be active in all the frames, at least once you got to reload them. The easiest way, I think, is to change the logon script: put it on a main page and once the user is logged in, create the frameset. The session will be available in all the frames. Cheers, En3pY Sebastian Konstanty Zdrojewski URL: http://www.en3py.net/ E-Mail: [EMAIL PROTECTED] Le informazioni contenute in questo messaggio sono riservate e confidenziali. Il loro utilizzo è consentito esclusivamente al destinatario del messaggio, per le finalità indicate nel messaggio stesso. Qualora Lei non fosse la persona a cui il presente messaggio è destinato, La invito ad eliminarlo dal Suo Sistema ed a distruggere le varie copie o stampe, dandone gentilmente comunicazione. Ogni utilizzo improprio è contrario ai principi del D.lgs 196/03 e alla legislazione Europea (Direttiva 2002/58/CE). -Messaggio originale- Da: Shaun [mailto:[EMAIL PROTECTED] Inviato: martedì 29 novembre 2005 0.53 A: php-general@lists.php.net Oggetto: [PHP] Problem with Frames and Sessions Hi, I have a frameset with a left column and a main column. I have a login script with a form in the left column. When I log in I get a menu in the left column which targets to the main column. My problem is that when I click on links in the left column nothing appears in the main frame, however if I refresh the browser then the links work. I am sure this must be a PHP session problem but I don't have any experience using frames, does anyone have suggestions as to what the problem might be? Thanks for your advice. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.362 / Virus Database: 267.13.8/184 - Release Date: 27/11/2005 smime.p7s Description: S/MIME cryptographic signature
[PHP] R: [PHP] Intersecting Dates
If you got also the year you can transform the dates into UNIX TIMESTAMP and check againist that. If you don't have that, write down a simple procedure that converts dates into days since 01/01 and use that method, but it will be faulty if the date ranges overlap years. Cheers En3pY Sebastian Konstanty Zdrojewski URL: http://www.en3py.net/ E-Mail: [EMAIL PROTECTED] Le informazioni contenute in questo messaggio sono riservate e confidenziali. Il loro utilizzo è consentito esclusivamente al destinatario del messaggio, per le finalità indicate nel messaggio stesso. Qualora Lei non fosse la persona a cui il presente messaggio è destinato, La invito ad eliminarlo dal Suo Sistema ed a distruggere le varie copie o stampe, dandone gentilmente comunicazione. Ogni utilizzo improprio è contrario ai principi del D.lgs 196/03 e alla legislazione Europea (Direttiva 2002/58/CE). -Messaggio originale- Da: Shaun [mailto:[EMAIL PROTECTED] Inviato: sabato 26 novembre 2005 22.18 A: php-general@lists.php.net Oggetto: [PHP] Intersecting Dates Hi, Given a start day and month and end day and month (i.e. 01-01 to 31-03) how can one check if another set intersects these dates? Thanks for your advice -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.362 / Virus Database: 267.13.8/183 - Release Date: 25/11/2005 smime.p7s Description: S/MIME cryptographic signature
[PHP] R: [PHP] Re: Can't execute external program
Try verifying the following: - does the web server user (apache/nobody) have a shell? - can the web server user/group execute the file? (x permission) I believe this is your problem, the exec option for the apache would be useful if you need to run an executable from the apache service, not from the command line. Check out the earlier and I think you're gonna solve your issue. Regards, En3pY Sebastian Konstanty Zdrojewski URL: http://www.en3py.net/ E-Mail: [EMAIL PROTECTED] Le informazioni contenute in questo messaggio sono riservate e confidenziali. Il loro utilizzo è consentito esclusivamente al destinatario del messaggio, per le finalità indicate nel messaggio stesso. Qualora Lei non fosse la persona a cui il presente messaggio è destinato, La invito ad eliminarlo dal Suo Sistema ed a distruggere le varie copie o stampe, dandone gentilmente comunicazione. Ogni utilizzo improprio è contrario ai principi del D.lgs 196/03 e alla legislazione Europea (Direttiva 2002/58/CE). -Messaggio originale- Da: n.g. [mailto:[EMAIL PROTECTED] Inviato: giovedì 24 novembre 2005 10.16 A: Henry Castillo Cc: php-general@lists.php.net Oggetto: [PHP] Re: Can't execute external program put the executable into another directory rather than DOC_ROOT, maybe you have reached apache security settings. or try add `option +exec' to your apache conf, but be aware this maybe a security problem to your site to do so. On 11/24/05, Henry Castillo <[EMAIL PROTECTED]> wrote: > Hi > Still desperate > DOCUMENT_ROOT is /var/www/html > Check all settings at http://provi.voicenetworx.net:8080/t.php > From the command line it runs perfectly: > [EMAIL PROTECTED] html]# /var/www/html/myprog -E 123456789098.dat > sample1.txt sample1.new (no output, it just creates the file .new) > > Here is the php I've created, fairly simple: > exec("/var/www/html/myprog -E 123456789098.dat sample1.txt > sample1.new"); phpinfo(); ?> > > > > On 11/22/05, n.g. <[EMAIL PROTECTED]> wrote: > > > > is /var/www/html your web root dir ? > > maybe its the plobrem. > > > > On 11/23/05, Henry Castillo <[EMAIL PROTECTED]> wrote: > > > That was on of the first things I checked: > > > safe mode is set to off > > > Any ideas... > > > Henry > > > Voip tech said the following on 11/20/2005 10:31 PM: > > > > Hello, > > > > I cannot get exec(), system() or passthru() to run an extenal > program. > > > > From the command line it runs perfectly: > > > > > > > > > > > > > I'm getting frustrated, Any help will be deeply appreciated > > > > Henry > > > > > > The answer is probably in your php.ini. Look into whether you are > > > running in safe mode or not, and if you are whether you have your > > > program in the safe_mode_exec_dir or not. Also check > > > disable_functions to see if any of the ones you are having trouble with are listed. > > > > > > - Ben > > > > > > > > > > > > -- > > Tomorrow will be a good day :-) > > > > -- Tomorrow will be a good day :-) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.362 / Virus Database: 267.13.7/180 - Release Date: 23/11/2005 smime.p7s Description: S/MIME cryptographic signature