[PHP] HT access
Yow I've a question, :-) I'm using ht access to protect a Directory with CGI in that I need use on my website. The htaccess uses the password file of my Linux to authenticate one. Now I want to keep the ht access but when I login via another login script a want my ht access to be filled in automatic so that I don't have to type my login and pwd again. Does anybody have an Idea Thanks
[PHP] Date calculations
Hey I need to calculate the amount of days between 2 point point 1 is now the second point is in the past the format I have is in 2002-02-25 10:02:23 ( that is the format i have in my db ) now if I have today 2002-02-25 10:02:04 and the other day is 2002-02-24 09:02:04 That means that the delta in days is 1 day ( the hours do not mather ) Somebody an idea ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] writing files with php
Hey How can I create files with php, I've tried somethings but php always tells me that I don't have access. But the Directory has 777 access and the owner is my webserver. Can somebody help me :-) I need this for to create logfiles Greetings Sven
[PHP] Count
hey Again a small question forgive me but it's monday and the brain is still working on sunday :-) I want to make this sql query visual does anybody have any idea :-) SELECT date_format(t_timestamp_opened,'%Y %m %d'), count(date_format(t_timestamp_opened,'%Y %m %d')) FROM crm.ticket group by date_format(t_timestamp_opened,'%Y %m %d') order by t_timestamp_opened; ++-- -+ | date_format(t_timestamp_opened,'%Y %m %d') | count(date_format(t_timestamp_opened,'%Y %m %d')) | ++-- -+ | 2002 01 15 | 1 | | 2002 01 22 | 1 | | 2002 01 23 | 3 | | 2002 01 25 | 2 | | 2002 01 29 | 2 | | 2002 02 01 | 1 | | 2002 02 06 | 2 | | 2002 02 11 | 1 | | 2002 02 12 | 1 | | 2002 02 15 | 1 | | 2002 02 22 | 2 | ++-- -+
[PHP] CGI
Hey I have some cgi files who are in the /usr/lib/xxx/cgi-bin/ directory How can i make them a part of my php meaning that in the current situation the url is something like this http://x.x.xxx/cgi-bin/cgiscripts/.cgi and i want it to be something like this http://../index.php?action=cgi&scripts=xxx.cgi Maybe a stupid question but Kind regards Sven
[PHP] Mailing Files
Is it possible to mail files with the mail() commando? Or can it be done on a other way? Kind regards Sven
RE: [PHP] Crontab
I've use a script that I put in my cron.weekly to execute a php script and it works fine :-) #! /bin/sh #Run Report Generation Script /usr/bin/php4 /usr/share/netsaint/genmonrep.scp.php Kind Regards Sven -Original Message- From: Jason Wong [mailto:[EMAIL PROTECTED]] Sent: mercredi 27 février 2002 8:04 To: [EMAIL PROTECTED] Subject: Re: [PHP] Crontab On Wednesday 27 February 2002 13:11, Uma Shankari T. wrote: > Hello, > > >I need to run one php script using crontab.I am having this doubt.If > the phpscript run in the command prompt then only we can run the script > using crontab...please tell me how do i go about with this.. You can have crontab run lynx/links to access your php page. -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk /* It's not the fall that kills you, it's the landing. */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] I can't find the problem - parsing error
-Original Message- From: Pax [mailto:[EMAIL PROTECTED]] Sent: mercredi 27 février 2002 16:47 To: [EMAIL PROTECTED] Subject: [PHP] I can't find the problem - parsing error I have the following line of code: $this->html=$this_>html + " <-- this line ... "; I get Warning: unexpected character in input '\' (ASCII=92) state=1 And Parse Error in the same line..I am just sitting and looking at that line and can't find the problem..can anyone see the problem? Paul -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Javascript question...
function openpopup(){ var popurl="url" winpops=window.open(popurl,"Solution","width=500,height=400,") } //openpopup() Kind Regards Sven -Original Message- From: Philip Jeffs [mailto:[EMAIL PROTECTED]] Sent: vendredi 1 mars 2002 12:41 To: PHP LIST Subject: [PHP] Javascript question... Hi, I know this is a PHP list but i thought someone might be able to help me out. I was looking at the Levi's website the other day and i noticed a cool script on there for opening pop-ups. They have managed to get rid of the usual window borders altogether and it looks really good. They have managed to do it by opening the pop-up window in full screen mode and then making the window smaller and positioning it in a certain place on screen. I've figured out how to open it, shrink it and position it but for some reason i the scroll bars are always there. The levi's site has no scroll bars. Does anyone know how to get rid of the scroll bars? Thanks in advance, Phil
[PHP] Active Directory
Hey All Does anybody have any idea how to authenticate agains a Active Directory Server with PHP ? And if sow : -- How does it work -- What do I need to install -- Some sample code would be nice :-) Kind Regards Sven
[PHP] Of Topic but urgently needed
yow all I know this is an of topic question but with all the system admins here . Does anybody know a good tool where I can monitor Compaq Proline servers with that uses some kind of text file or csv. So I can inport that file in mysql and do some thing on it via PHP :( Maybe some of you did something like what I want to do and can give me a push in the direction needed :-) Thanks anyway Greetings Sven
[PHP] date calculations
Yow I need to calculate the Time ( days hour minutes between 2 times ) I have something but I have an error margine of 10 % and that is to high Time one 2002/02/24 10:23:43 Time two 2002/02/02 12:43:12 this need to give me the correct time in days hours and minutes between the 2 dates
RE: [PHP] how the "ticks" works?
Hey I want to run a shell script, all the values that are returned normal by that script I want to put as var. For example tracert X.X.X.X 1 <10 ms <10 ms <10 ms blablabla.bla.com [X.X.X.X] 2 <10 ms10 ms10 ms RFC1918-Host [X.X.X.X] 3 <10 ms10 ms10 ms BUOPS [X.X.X.X] The 3 values I want tot put in a table when I run the script Thanks Sven
[PHP] Return values from shell_exec command into db
Hey I want to run a shell script, all the values that are returned normal by that script I want to put as var. For example tracert X.X.X.X 1 <10 ms <10 ms <10 ms blablabla.bla.com [X.X.X.X] 2 <10 ms10 ms10 ms RFC1918-Host [X.X.X.X] 3 <10 ms10 ms10 ms BUOPS [X.X.X.X] The 3 values I want tot put in a table when I run the script Thanks Sven
[PHP] Reading A file
Hey I have a TEXT file that I want to make visual via the web using php
RE: [PHP] Reading A file
Ok I have a file like this and a want to isert this into a mysql table It has to be field Date data Mar 06 15:45:24 field bksvr buops field Message NetWorker Savegroup: (alert) Manutan aborted, 2 client(s) (manutan-pre01, manutan-omct Failed) Log file Mar 06 15:45:24 buops: NetWorker Savegroup: (alert) Manutan aborted, 2 client(s) (manutan-pre01, manutan-omct Failed) Mar 06 15:45:24 buops: Start time: Wed Mar 06 15:42:01 2002 Mar 06 15:45:24 buops: End time: Wed Mar 06 15:45:24 2002 Mar 06 15:45:24 buops: --- Never Started Save Sets --- Mar 06 15:45:24 buops: savegrp: manutan-pre01:index index was never started -Original Message- From: Ing. Fernando Proll Segura [mailto:[EMAIL PROTECTED]] Sent: mercredi 6 mars 2002 15:13 To: Sven Jacobs; [EMAIL PROTECTED] Subject: Re: [PHP] Reading A file > Hey > > I have a TEXT file that I want to make visual via the web using php > > > Maybe this isn't the best way but to do this I use the following code: "; } $lines=file("yourfile.txt"); array_walk($lines,'do_print'); ?> As you can see I use the file() function to get each line of text into an array and then the function array_walk() to do the visualization. Hope it helps! Fernando
RE: [PHP] Reading A file and placing data into db
Ok I have a file like this and a want to isert this into a mysql table It has to be field Date data Mar 06 15:45:24 field bksvr buops field Message NetWorker Savegroup: (alert) Manutan aborted, 2 client(s) (manutan-pre01, manutan-omct Failed) Log file Mar 06 15:45:24 buops: NetWorker Savegroup: (alert) Manutan aborted, 2 client(s) (manutan-pre01, manutan-omct Failed) Mar 06 15:45:24 buops: Start time: Wed Mar 06 15:42:01 2002 Mar 06 15:45:24 buops: End time: Wed Mar 06 15:45:24 2002 Mar 06 15:45:24 buops: --- Never Started Save Sets --- Mar 06 15:45:24 buops: savegrp: manutan-pre01:index index was never started -Original Message- From: Ing. Fernando Proll Segura [mailto:[EMAIL PROTECTED]] Sent: mercredi 6 mars 2002 15:13 To: Sven Jacobs; [EMAIL PROTECTED] Subject: Re: [PHP] Reading A file > Hey > > I have a TEXT file that I want to make visual via the web using php > > > Maybe this isn't the best way but to do this I use the following code: "; } $lines=file("yourfile.txt"); array_walk($lines,'do_print'); ?> As you can see I use the file() function to get each line of text into an array and then the function array_walk() to do the visualization. Hope it helps! Fernando
[PHP] LDAP question
Hey I'm testing LDAP and I seem to have an error Call undefined function ldap_connect() the code is from php.net Can anybody tell me what I'm doing wrong :-)
[PHP] Sessions PROBLEMS
Hey I have a problem with sessions, with the code below If I post i always seems to get the same session_id That is not the idea. I want to generate everytime a unique one what is wrong with my code if ($action =="logout"){ session_destroy(); print "destroy"; } if ( $action == "post" ){ session_start(); session_register($username); print session_id(); print ""; print "Logout"; } if ( $action == "" ){ print" Login : Password : "; } ?> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Why session is not deleted ???
I've the same problem here If i do logout it doesn't doe a session_destroy :( -Original Message- From: Beta [mailto:[EMAIL PROTECTED]] Sent: jeudi 7 mars 2002 18:54 To: [EMAIL PROTECTED] Subject: [PHP] Why session is not deleted ??? Firstly i create a session, After that when i close the browser the sesion can still be seen in tmp directory in apache webserver. I just wanted to know that If i close the browser, Does the session terminates ? Beta -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Again Session
Hey I have 2 values stored in my session, how do I pull them back out ?
[PHP] how to check session
How can I check if a session is still valid or if it has been expired. I want to check that and if not valid then execute an other script. Can't be that difficult but after 2 hours in traffic jams my brain is not working anymore .
[PHP] dateformat
hey all I want to convert 20020211150245 into 2002-02-11 15:02:45. Does somebody have the correct conversion for this ?
RE: [PHP] Looking for modifiable web administration script for MySQL
webmin can manage mysql www.webmin.com -Original Message- From: Steve Clay [mailto:[EMAIL PROTECTED]] Sent: mardi 19 mars 2002 13:13 To: PHP-GENERAL Subject: [PHP] Looking for modifiable web administration script for MySQL On another note, Are there any open-source/freeware PHP scripts that have the functionality of PHPMyAdmin, but modifiable for my custom tables/needs? The admin script I could write at this point would be an inferior web interface for our MySQL DB (only 2 tables), so I'd rather save time and just alter existing, well-crafted code and stick this on our secure server. How easy would it be to alter PHPMyAdmin itself? Thanks for any insight.. Steve -- [EMAIL PROTECTED] ** http://mrclay.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Making a simple borderless pop up window with a "Close" button
class.overlib does that nicely http://www.posi.de/phpclass/ -Original Message- From: Denis L. Menezes [mailto:[EMAIL PROTECTED]] Sent: mardi 19 mars 2002 13:12 To: [EMAIL PROTECTED] Subject: [PHP] Making a simple borderless pop up window with a "Close" button Hello friends. I am making a database website where I need to add a small help button for every field on the form. Whenever the user clicks the small help button, I wish to show a titleless popup window containing the help text and a "close" button. Can someone help me with the php script for this. Thanks Denis -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] mail
hey Is it possible to put somebody in CC when you use the mail() function ???