Re: [PHP] array_walk inside class method

2002-01-07 Thread S. Murali Krishna
Hi Thanks for ur help. Its Working but I couldn't understand the syntax given by u can u explain pls. Thanks again. On Sun, 6 Jan 2002, Gyozo Papp wrote: it may be better: array_walk($this-array, array($this, 'func1'); Attila Strauss [EMAIL PROTECTED] wrote in

[PHP] RE: bcc

2002-01-07 Thread Tim Ward
If you mean blind carbon copy on e-mails then www.php.net/manual/en/function.mail.php http://www.php.net/manual/en/function.mail.php explains how to do it. If you mean anything else please elaborate Tim www.chessish.com http://www.chessish.com -- From: Deependra B.

[PHP] strip from html to closing body tag

2002-01-07 Thread WB
Hi, Hi i need to strip out the html up to the body tag. For some reason, my function, preg_replace( /html(.*)body(.*) , , $body ); does not work. Ok I am not really brilliant at regular expressions ... Help? Jay

[PHP] Regarding mail function

2002-01-07 Thread Balaji Ankem
Hi , My file name: bala.php --- ?phpmail("[EMAIL PROTECTED]", "hi friend", "Hi, how are you? Expecting reply from you. -Bala"); ? for the above program I am getting the following

RE: [PHP] Regarding mail function

2002-01-07 Thread Sandeep Murphy
tet -Original Messa[Sandeep Murphy] ter ge- From: Balaji Ankem [mailto:[EMAIL PROTECTED]] Sent: segunda-feira, 7 de Janeiro de 2002 10:55 To: [EMAIL PROTECTED] Subject: [PHP] Regarding mail function Hi , My file name: bala.php

[PHP] define() function strange output... !!!!

2002-01-07 Thread Levon Ghazaryan
Hi everibody I have Apache running under Linux SuSE 7.2 with PHP/4.0.4pl1 The server the Linux and the php instalation is the standart SuSE package instalation from the SuSE install cd-s so, everithing is fine except one thing: calling this test.php script in browser window: ?php

[PHP] PHP + Windows 98 + Apache

2002-01-07 Thread Sandeep Murphy
Hi all, I have installed Apache on my win 98 machine and it runs fine .. however, am unable to configure Apache to run with PHP. I installed the binary version of PHP and edited the httpd.conf file as instructed in the install.txt of php but am getting a browser (400) page not found error..

Re: [PHP] strip from html to closing body tag

2002-01-07 Thread S. Murali Krishna
Hi, Ur quest is not clear. Whether u want to delete everything upto body tag or only html tags up to body tag. anyway this might work for the former. $parsed = preg_replace(/\\n/,,$html); // to remove '\n' in HTML file $parsed = preg_replace(/^(html.*)(body.*)/,\\2,$parsed); // to

Re: [PHP] PHP + Windows 98 + Apache

2002-01-07 Thread Levon Ghazaryan
hm.. I also have Apache with PHP and mysql on my win 98 and it runs fine with both.. check ones more the configure steps to be done for php configuration or write detailed what steps have you gone thru configuring levon On Mon, 7 Jan 2002, Sandeep Murphy wrote: Hi all, I have installed

Re: [PHP] strip from html to closing body tag

2002-01-07 Thread Jimmy
Hi WB, Hi i need to strip out the html up to the body tag. preg_replace( /html(.*)body(.*) , , $body ); try this: preg_replace( /html[^body]*body[^]*/ , , $body ); -- Jimmy Your mind is like parachute. It works best when it is open. -- PHP General

[PHP] Re: NEWBIE IN DISTRESS: Install Instructions are not work for PHP 4.1.1!!!

2002-01-07 Thread Freddy Vulto
My module configuration (Win98, Apache 1.3.22, PHP 4.1.1) started working after I added the line: AddModule mod_php4.c to httpd.conf. This seems to be an omission from the install.txt as stated in the php.windows thread Apache 1.3.22 and PHP 4.1.0 d.d. Jan 3, 2002. It's added as note to the

RE: [PHP] PHP + Windows 98 + Apache

2002-01-07 Thread Sandeep Murphy
hi, ok, heres what I did exactly... 1.Downloaded and extracted PHP version 4.1.1 to c:\php 2. Copied php4ts.dll to c:\windows\system (running win98) 3. php.ini-dist to c:\windows and renamed it to php.ini 4. Edited the php.ini as follows: changed the 'extension_dir' setting to

RE: [PHP] PHP + Windows 98 + Apache

2002-01-07 Thread Levon Ghazaryan
I think this steps could not make PHP running.. On Mon, 7 Jan 2002, Sandeep Murphy wrote: hi, ok, heres what I did exactly... 1.Downloaded and extracted PHP version 4.1.1 to c:\php 2. Copied php4ts.dll to c:\windows\system (running win98) 3. php.ini-dist to c:\windows and

Re: [PHP] POSTing HTML into a database

2002-01-07 Thread James Arthur
On Monday 07 January 2002 01:59, Richard S. Crawford wrote: I've used a combination of addslashes() and stripslashes() along with htmlspecialchars() to perform just that sort of thing, though I used MySQL instead of PostreSQL. Can you help me along a bit further? I can't seem to get them in

Re: [PHP] Regarding mail function

2002-01-07 Thread Bogdan Stancescu
Gee, Sandeep, what a great reply! I wish I got this kind of support when I asked a question on this list too! Balaji, sorry, man, I don't know how to help you - I was just touched by Sandeep's reply and wanted to point it out for everybody to see just how helpful we are in these parts. Tet

[PHP] Stupid Question Alert - part 2

2002-01-07 Thread tim at 10Kv
Thanks for everyone's comments. If I understand what you are saying it should be possible to fill the content of a layer by issuing some sort of server include command.. (?) So, for example, rather than have a something that looks like this: div id=haiti style=position:absolute; left:752px;

Re: [PHP] Another php data gathering question

2002-01-07 Thread Miles Thompson
Use the exec() function to make the system calls you need. Miles Thompson At 10:47 PM 1/6/2002 -0600, Gaylen Fraley wrote: Is there any way, through PHP, to get the: server uptime processor type number of cpu's I'm trying to find a compatable solution for both win32 and *nix. Thanks! --

Re: [PHP] strip from html to closing body tag

2002-01-07 Thread S. Murali Krishna
Hi, the code u sent is displaying the html as it is, but There is more than one way to do that. Atmost we can atleast do this. $pos = strpos($html,body); $start = substr($html,0,$pos - 1); $html = substr($html,$pos); $start = preg_replace(/html/,,$start);

Re: [PHP] Remote Cookie ID and Web Statistics

2002-01-07 Thread Richard Spangenberg
Miles, The reason for the javascript is that the hosting ISP does not support PHP. Each time a new session is started, the javascript would have to: - check for cookie - if it doesn't exist -poll database for next new custome ID# -set new cookie id -update database with page info

[PHP] Zhang Session Expiration

2002-01-07 Thread phantom
Hey all, I am using the Zhang session method from http://www.phpbuilder.com/columns/ying2602.php3 and it works great with a mysql database. Does anyone out there know how to tell if a session is expired using this method? The Read Session function is:

RE: [PHP] Remote Cookie ID and Web Statistics

2002-01-07 Thread Miles Thompson
Rick, It's amazing how one gets locked into a PHP mindset. Do all that stuff you outlined in your reply, but why not have a second Java applet to update a remote database? PHP doesn't have ownership over the database. Miles At 08:06 AM 1/7/2002 -0500, Richard Spangenberg wrote: Miles, The

Re: [PHP] Remote Cookie ID and Web Statistics

2002-01-07 Thread Richard Spangenberg
Miles, Thanks, now I have to just figure out how to do that stuff. I take it handling PHP from a remote non-PHP server is not a big issue. The Java Applet is doing something else. It is providing a monitoring process to the database so a static html page and be pushed whatever content if the

[PHP] HOWTO USE : htmlspecialchars

2002-01-07 Thread louie miranda
form action=form.php method=GET Info: input type=text name=info size=25 maxlength=25 value=?php htmlspecialchars($info); ? input type=submit /form Hi, im trying this form w/ htmlspecialchars (php function), but it doesn't seem to work, when i submit the form.. htmlspecialchars($info); is

Re: [PHP] Zhang Session Expiration

2002-01-07 Thread Michael Sims
At 07:20 AM 1/7/2002 -0600, phantom wrote: Hey all, I am using the Zhang session method from http://www.phpbuilder.com/columns/ying2602.php3 and it works great with a mysql database. Does anyone out there know how to tell if a session is expired using this method? Yep. The expiry field

[PHP] Compiled version of PHP 4.1.1 for Mandrake 8.1

2002-01-07 Thread Programmer
I am looking for with compiled version of the newest PHP 4.1.1 for Linux Mandrake 8.1. -- Jaroslaw -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL

[PHP] CC Processing in PHP

2002-01-07 Thread Muhammad Asif
hi, Do PHP has some built-in support for Credit Card Processing? Is there any library available that can be used for processing Credit Cards? Thanks for your time. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

[PHP] Compiling PHP with GD2.0 ?

2002-01-07 Thread Chris Aitken
Hi, I have just upgraded my system (FreeBSD4.4 box with Apache/PHP/MySQL) and I want to use GD2.0.1 with PHP. I have installed GD 2.0.1 from /usr/ports onto the system so the package is actually there, but I have no idea how to compile GD2 ability into PHP. If anyone can lend some assistance

[PHP] MSFT Front Page inserts quotes

2002-01-07 Thread Miles Thompson
I have a client which edits all his PHP pages as HTML files in MSFT Front Page. That's not been a problem until now, as the pages are all straight HTML except for a bit at the very top. Here's the problem. We need this line at the top of the page, ahead of the HTML tag, for an automatic login

Re: [PHP] MSFT Front Page inserts quotes

2002-01-07 Thread Rasmus Lerdorf
Why not just use an auto_prepend rule in your config and prepend that bit of PHP code automatically without touching the FrontPage-generated crap? -Rasmus On Mon, 7 Jan 2002, Miles Thompson wrote: I have a client which edits all his PHP pages as HTML files in MSFT Front Page. That's not

Re: [PHP] HOWTO USE : htmlspecialchars

2002-01-07 Thread Jimmy
Hi louie, ?php htmlspecialchars($info); ? htmlspecialchars() do not change the passed variable. it will _return_ the result. so you have to do like this: $info = htmlspecialchars($info); please read the manual before asking to the list. it's clearly stated there, and there's even an example

Re: [PHP] take links from url

2002-01-07 Thread Jimmy
Hi Alawi, I want to take string between table/table tags in put it in variable preg_match (|table([^/table]*)/table|i, $str, $match); $match[1] will contain the string between table/table -- Jimmy Fate shuffles the cards and we play with them -- PHP General

[PHP] PHP, XML

2002-01-07 Thread Sandeep Murphy
hi, Does anyone know of a mailing list for PHP and XML or can I just pose them here?? Thanks, sandeep -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail:

RE: [PHP] PHP, XML

2002-01-07 Thread Boget, Chris
Does anyone know of a mailing list for PHP and XML or can I just pose them here?? PHP-XML. The list address is: [EMAIL PROTECTED] Chris

[PHP] I am very new Question

2002-01-07 Thread Kevin P
Hello I am extremely new to PHP and I want to have a clickable item that will bring up a particular item from the database (i.e a menu) What is the proceedure here? Can anyone help me? Thanks Kevin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED]

Re: [PHP] I am very new Question

2002-01-07 Thread B. van Ouwerkerk
I am extremely new to PHP and I want to have a clickable item that will bring up a particular item from the database (i.e a menu) What is the proceedure here? Can anyone help me? Hi, Take a look at one or more scriptarchives like hotscripts.com If you want to learn more about PHP please go to

[PHP] Strange Session Issues

2002-01-07 Thread Alastair
I posted a question earlier, but I don't think I explained my problem all that well. I am having problem with sessions on my W2K box. I can start sessions and register variables but I can't, however, seem to get the contents of the registered variables written. When I open the session file

php-general Digest 7 Jan 2002 16:09:14 -0000 Issue 1097

2002-01-07 Thread php-general-digest-help
php-general Digest 7 Jan 2002 16:09:14 - Issue 1097 Topics (messages 79643 through 79702): Re: bcc 79643 by: Bogdan Stancescu 79646 by: Mehmet Kamil ERISEN 79668 by: Tim Ward Re: How to read/write form/into certain place in a text fil e 79644 by: Zhang,

[PHP] global generation

2002-01-07 Thread Rodney Davis
I need to call a generated variable global w/i a function but the following doesn't work: for ($i=0; $i $num_results; $i++) { global $variable[$i]; } I am trying to pass a similarly created form element to a function. I have two questions. Why doesn't this work? And, what else can I

RE: [PHP] Strange Session Issues

2002-01-07 Thread Johnson, Kirk
Once again, is register_globals on or off in your php.ini file? It would help us if we knew that :) Kirk -Original Message- From: Alastair [mailto:[EMAIL PROTECTED]] Sent: Monday, January 07, 2002 9:05 AM To: [EMAIL PROTECTED] Subject: [PHP] Strange Session Issues I posted a

Re: [PHP] global generation

2002-01-07 Thread Andrey Hristov
try : for ($i=0; $i $num_results; $i++) { $some= $$GLOBALS[variable]; // $some[$i] is what you need. } Regards, Andrey Hristov - Original Message - From: Rodney Davis [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, January 07, 2002 6:11 PM Subject: [PHP] global generation

Re: [PHP] global generation

2002-01-07 Thread Andrey Hristov
Ooops, no $$ before GLOBALS, single $ for ($i=0; $i $num_results; $i++) { $some= $GLOBALS[variable]; // $some[$i] is what you need. } Regards, Andrey Hristov - Original Message - From: Andrey Hristov [EMAIL PROTECTED] To: Rodney Davis [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent:

Re: [PHP] Strange Session Issues

2002-01-07 Thread Alastair
I've turned it off. When I try reading a variable using $HTTP_SESSION_VARS[blah] but it says that there is no index for 'blah'. thanks! alastair Kirk Johnson [EMAIL PROTECTED] wrote in message 01A4B59FD1EBD311838100A0C98BE0D9AD5EFB@chef">news:01A4B59FD1EBD311838100A0C98BE0D9AD5EFB@chef... Once

RE: [PHP] Strange Session Issues

2002-01-07 Thread Johnson, Kirk
With it off, session_register() is not needed. Also, session variables must be accessed thru the $HTTP_SESSION_VARS[] array. Try this code: test_session1.php ? session_start(); $HTTP_SESSION_VARS['blah'] = good; ? test_session2.php ? session_start(); echo session_is_registered(blah) . br; echo

[PHP] PHP/SQL login problems

2002-01-07 Thread Jeremy Reed
I am having problems connecting and pulling data from a local SQL server. I have set up a user and, as far as I can tell, all the settings for the user are correct. However, when I try to pull data using the user, I get empty result sets--almost as if I don't have SELECT permissions. When I

Re: [PHP] Strange Session Issues

2002-01-07 Thread Alastair
WOO HOO!!! :-) Thanks Kirk! I didn't realize that you had to use session_vars to write the variables as well. That's a huge weight taken off my chest. :-) cheers, alastair Kirk Johnson [EMAIL PROTECTED] wrote in message

RE: [PHP] Strange Session Issues

2002-01-07 Thread Johnson, Kirk
So, it *is* a Happy Monday for you ;) You're very welcome. Kirk -Original Message- From: Alastair [mailto:[EMAIL PROTECTED]] Sent: Monday, January 07, 2002 10:06 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] Strange Session Issues WOO HOO!!! :-) Thanks Kirk! I didn't realize

[PHP] carriage returns

2002-01-07 Thread Rodney Davis
Sorry for the newbie question but I can't find it in the docs. How do I preserve carriage returns when inserting into and extracting data from a mysql db? I thought htmlspecialchars() would do the trick but it doesn't. thanks

[PHP] create a file .png

2002-01-07 Thread aurelio
Hi, i wanna create a file png, but i don´t want. i don´t know what happens but an error occurs... Warning: ImagePng: unable to open /home/httpd/html/pollolitoral/tempo/07012002.png for writing in /home/httpd/html/admin/generic/create_png_clima.php3 on line 80 i put

RE: [PHP] create a file .png

2002-01-07 Thread Michael Geier
problems with this email: - no script to look at problems with the script: - directory permissions? - gd installation incomplete? - php installation missing gd? -Original Message- From: aurelio [mailto:[EMAIL PROTECTED]] Sent: Monday, January 07, 2002

RE: [PHP] carriage returns

2002-01-07 Thread Jon Haworth
Inserting data from a textarea or something? If so, have a look at http://www.php.net/nl2br - probably what you're after. Cheers Jon -Original Message- From: Rodney Davis [mailto:[EMAIL PROTECTED]] Sent: 07 January 2002 17:47 To: [EMAIL PROTECTED] Subject: [PHP] carriage returns

[PHP] Running php in background?

2002-01-07 Thread James Hudnall
I wrote a php program that has to do a lot of processing on a couple large mySQL tables that can take hours, so often the page will time out or kick back a cannot find server errir. But it seems by checking the DB that records are still being updated. IS it possible the job runs in background

Re: [PHP] How to check if a session exists

2002-01-07 Thread Deckard Q.
if (session_is_registered(variable)) { ... } - Original Message - From: Alex Shi [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, December 20, 2001 11:34 PM Subject: [PHP] How to check if a session exists If a sesson_id is known, how can check if the session exists?

Re: [PHP] MSFT Front Page inserts quotes

2002-01-07 Thread Miles Thompson
The dull thud you hear is me giving myself a good whack on the side of the head. I don't want to require a security check / auto-login for every file on the site, so I'm just removing the offending text to an include and trying it that way. Tks - Miles Thompson At 06:35 AM 1/7/2002 -0800,

Re: [PHP] Running php in background?

2002-01-07 Thread Jimmy
Hi James, Ideally, I would like to run the job in the background anyway. Can that be done? read this: http://www.php.net/manual/en/function.exec.php and search for 'background' keyword. -- Jimmy Brigands will demand your money or your life, but a woman will

Re: [PHP] global generation

2002-01-07 Thread Kevin Stone
Wait until after the for loop has completed. for ($i=0; $i $num_results; $i++) { $variable[$i]; } global $variable; I need to call a generated variable global w/i a function but the following doesn't work: for ($i=0; $i $num_results; $i++) { global $variable[$i]; } I am trying to

RE: [PHP] global generation

2002-01-07 Thread Boget, Chris
Wait until after the for loop has completed. for ($i=0; $i $num_results; $i++) { $variable[$i]; } global $variable; That's not going to work. The only thing that is doing is making an already global instance of $variable global within the function. What you want is this instead:

[PHP] PHP and security (like fopen)

2002-01-07 Thread Yves REVEILLON
Hello, this is my security problem with PHP have a free web hosting server and i permit users to use PHP and some functions like fopen ! The problem is that i would like to denied fopen to works with my own web file of my website users: /home/user/www/ Me: /var/www/html/ One solution

[PHP] Re: Running php in background?

2002-01-07 Thread LaserJetter
I had Apache running on Win98 and doing a pretty demanding job (well, for a 350MHz K2) and it slowed the machine down noticeably. If the PHP script timed out the computer came back to like but if i closed the browser window or clicked stop it seemed to keep doing it. Maybe MySQL is finishing off

[PHP] SAR data graphing toolkit

2002-01-07 Thread Austin Gonyou
Is there a PHP SAR data graphing toolkit out there? I've yet to see one. Any info on this is welcome. -- Austin Gonyou Systems Architect, CCNA Coremetrics, Inc. Phone: 512-698-7250 email: [EMAIL PROTECTED] It is the part of a good shepherd to shear his flock, not to skin it. Latin Proverb

[PHP] counting with dates (help!)

2002-01-07 Thread Sander Peters
Hello, This is my problem: $today = date(Ymd, mktime(0,0,0, date(m),date(d),date(Y))); $last_week = date(Ymd, mktime(0,0,0, date(m),date(d)-7,date(Y))); echo ($today - $last_week); The result is a number like 8876 (20020107-20011231 = 8876) But in date thinking it should be 7! How can I let

RE: [PHP] counting with dates (help!)

2002-01-07 Thread Martin Towell
(Ymd, mktime(0,0,0, date(m),date(d),date(Y))); $last_week = date(Ymd, mktime(0,0,0, date(m),date(d)-7,date(Y))); echo ($today - $last_week); The result is a number like 8876 (20020107-20011231 = 8876) But in date thinking it should be 7! How can I let php count in real days/month/years in stead

RE: [PHP] counting with dates (help!)

2002-01-07 Thread Boget, Chris
$today = date(Ymd, mktime(0,0,0, date(m),date(d),date(Y))); $last_week = date(Ymd, mktime(0,0,0, date(m),date(d)-7,date(Y))); echo ($today - $last_week); The result is a number like 8876 (20020107-20011231 = 8876) But in date thinking it should be 7! No, that's the difference in time

[PHP] Re: counting with dates (help!)

2002-01-07 Thread George Nicolae
date(Ymd, mktime(0,0,0, date(m),date(d)-7,date(Y))); echo ($today - $last_week); The result is a number like 8876 (20020107-20011231 = 8876) But in date thinking it should be 7! How can I let php count in real days/month/years in stead of numbers? Maybe this is a silly question, but anyone

[PHP] Re: PHP and security (like fopen)

2002-01-07 Thread J Smith
It sounds like you're on a UNIX-like system. Ever hear of user/group file permissions? Just set the proper permissions on your directories and files and you're fine. There are many ways to do this sort of thing, so I won't get into it, but it would be much easier to focus on permissions than

[PHP] Re: Running php in background?

2002-01-07 Thread J Smith
For this sort of thing, it may be easier to run the job from a shell. Try compiling php as the CGI/CLI executable. Then you can run your scripts like, say, a Perl script or whatever. Just add the ampersand at the end of the command to run it in the background. (I'm assuming a UNIX-like system

Re: [PHP] counting with dates (help!)

2002-01-07 Thread Steve Cayford
),date(d),date(Y))); $last_week = date(Ymd, mktime(0,0,0, date(m),date(d)-7,date(Y))); echo ($today - $last_week); The result is a number like 8876 (20020107-20011231 = 8876) But in date thinking it should be 7! How can I let php count in real days/month/years in stead of numbers? Maybe

[PHP] PHP timesheets?

2002-01-07 Thread Christian Calloway
Hi, Are there any PHP coded timesheet type web application? And if so, what would we be suggested. Thanks, Christian -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list

Re: [PHP] counting with dates (help!)

2002-01-07 Thread DL Neil
RE: [PHP] counting with dates (help!)Hi Sander, (and Chris, and Martin) $today = date(Ymd, mktime(0,0,0, date(m),date(d),date(Y))); $last_week = date(Ymd, mktime(0,0,0, date(m),date(d)-7,date(Y))); echo ($today - $last_week); The result is a number like 8876 (20020107-20011231 = 8876

[PHP] Re: Re: Problem with PHP security on windows

2002-01-07 Thread christian_holler
Hi, I wrote this already one time and received some parameters for my apache. but I think document root etc are all correct in apache. I set safemode etc also on in php.ini but it seems to ignore those settings completly. here my problem: I have a big security hole in my php and I

[PHP] How to run a PHP script on the UNIX command line

2002-01-07 Thread Carlos Fernando Scheidecker Antunes
Hello all, I would like to have some PHP scripts to do DB maintanance. There are not intended for web CGI. How can I run a script on my UNIX machine command line? I want to include it on my crontab. I know how to make it happen with Perl which is quite easy but I do not know how to do it in

Re: [PHP] How to run a PHP script on the UNIX command line

2002-01-07 Thread Steve Maroney
Read this --- http://www.php.net/manual/en/commandline.php On Mon, 7 Jan 2002, Carlos Fernando Scheidecker Antunes wrote: Hello all, I would like to have some PHP scripts to do DB maintanance. There are not intended for web CGI. How can I run a script on my UNIX machine command line? I

RE: [PHP] counting with dates (help!)

2002-01-07 Thread Martin Towell
(help!)Hi Sander, (and Chris, and Martin) $today = date(Ymd, mktime(0,0,0, date(m),date(d),date(Y))); $last_week = date(Ymd, mktime(0,0,0, date(m),date(d)-7,date(Y))); echo ($today - $last_week); The result is a number like 8876 (20020107-20011231 = 8876) But in date thinking it should be 7

[PHP] Arrays

2002-01-07 Thread Mehmet Kamil ERISEN
Hi, Can anybody suggest a good reading on how to work with arrays with multiple keys? thanks. = Mehmet Erisen http://www.erisen.com __ Do You Yahoo!? Send FREE video emails in Yahoo! Mail! http://promo.yahoo.com/videomail/ -- PHP General

Re: [PHP] PHP timesheets?

2002-01-07 Thread Christopher William Wesley
On Mon, 7 Jan 2002, Christian Calloway wrote: Are there any PHP coded timesheet type web application? And if so, what would we be suggested. Thanks, Take a look at these: http://freshmeat.net/search/?site=Freshmeatq=timesheet+phpsection=projects ~Chris /\

[PHP] php4 startup error

2002-01-07 Thread Zhang, Leon (STHK/Zh)
hi, I have installed php-4.0.0-Win32(into c:\php) and apache_1_3_9_win32(into C:\Program Files\Apache Group\Apache\ ) on my window98,the apache alone can be run normally,however when I run a test.php,windows told me the general protection error on PHP4TS.DLL and let me see the error log

[PHP] ask cookie in win2000

2002-01-07 Thread gendeng
halo... i want to know, why cookie not working in win2000. please help me. Mpu Strees IncrediMail - Email has finally evolved - Click Here

RE: [PHP] ask cookie in win2000

2002-01-07 Thread Matt Friedman
Please don’t send html emails to the list. Switch to plain text email. You also should send your code to the list so we can see what you are doing wrong. What is the error you are getting? You haven't provided enough info in order to answer the question. This question has been asked many

[PHP] How Query Works?

2002-01-07 Thread Alex Shi
My situation is to access a remote MySQL server, and of course I do care about traffic. Suppose In a script there's a query: $result = mysql_query (select * from employ where age45) or die (Invalid query); I am just wondering that if MySQL server would return all the query result in total,

[PHP] Problems with uploading even small files

2002-01-07 Thread Screwy
I'm trying to upload files using php to a server on the lan. Apache/1.3.22, PHP 4.0.6, MySQL 3.23.40 My problem is that file uploads are slow, a 50KB file takes around 5 minutes. Thats kilobytes. in 5 minutes. Larger files just timeout. I've set the max file sizes in apache and php configs,

[PHP] Slow upload with small files

2002-01-07 Thread Screwy
I'm trying to upload files using php to a server on the lan. Apache/1.3.22, PHP 4.0.6, MySQL 3.23.40 My problem is that file uploads are slow, a 50KB file takes around 5 minutes. Thats kilobytes. in 5 minutes. Larger files just timeout. I've set the max file sizes in apache and php configs,

[PHP] ooh forms or better

2002-01-07 Thread Matt Friedman
Hi, I'm interested in finding a good solution for creating forms programmatically; something like ooh forms. I haven't been able to find decent docs on ooh forms but I'm under the impression that it's very good. Does anyone know of examples of ooh forms and where the docs might be found?

[PHP] Sessions

2002-01-07 Thread Ryan Kelley
I am having problems getting the sessions to work. when i input the following code: session_start(); session_register(sess_id); i get nothing registered. I have checked the sess_***etc... files in /tmp and they say: !sess_id| Does anybody have any ideas why this is? Thanks in advance Ryan

php-general Digest 8 Jan 2002 04:14:57 -0000 Issue 1098

2002-01-07 Thread php-general-digest-help
$last_week); The result is a number like 8876 (20020107-20011231 = 8876) But in date thinking it should be 7! How can I let php count in real days/month/years in stead of numbers? Maybe this is a silly question, but anyone who has the answer would help me very much! Thanks in advance! --

[PHP] Question About W32 API

2002-01-07 Thread João P. Bragança
Let's say I'm doing the following: w32api_deftype ( 'STRUCT', 'long', 'someNumber', 'string', 'someText', 'int', 'someInt' ); w32api_register_function('library', 'test', 'int'); $test = w32api_init_dtype('WHATEVER'); test($test); The function test should

[PHP] php 4.1.1 and imap/ssl

2002-01-07 Thread Ron Peterson
I've installed php 4.1.1. with the following configure options: ./configure --prefix=/usr/local/versioned/php-4.1.1 --with-apache=../apache_1.3.19 --with-openssl --with-imap --with-imap-ssl=/usr/local/openssl --with-kerberos --with-gettext --with-xml --with-pgsql=/usr/local/postgresql The

[PHP] How to add a carriage return in the end when using implode?

2002-01-07 Thread Zhang, Leon (STHK/Zh)
$subdata has been changed before then $data[$index]=implode(",", $subdata);--what shouldI change here? rewrite the file like this : $data[$index]=$data[$index];$fp=fopen($datafile,"w+"); $a=0; do{ fputs($fp,$data[$a]);--or here?. $a++;

[PHP] How to define subroutine

2002-01-07 Thread sanjay
Hi I am new to PHP and want to do object oriented programming in PHP. I want to write a subroutine and call that subroutine. I tried the following code but it gives me an error. Regards Sanjay ? $ref = testfun(); print Ref is $ref; sub testfun() { return HI; } ?

[PHP] Re: How to define subroutine

2002-01-07 Thread CC Zona
In article 002901c1980e$4ba456f0$0200a8c0@piii, [EMAIL PROTECTED] (Sanjay) wrote: I am new to PHP and want to do object oriented programming in PHP. I want to write a subroutine and call that subroutine. http://download.php.net/manual/en/functions.php

[PHP] Question about Php/Mysql. Unsure if it's enabled.

2002-01-07 Thread Joelmon2001
Hello, my subject is a bit confusing, I bet. I need a bit more speace to explain this situation. Ok, basically I only configured php with apxs However, I noticed the mysql was supported (It said so on php info page) How is that possible? I never tested a mysql script yet on this server

Re: [PHP] PHP and OpenLDAP

2002-01-07 Thread Stig Venaas
On Thu, Jan 03, 2002 at 10:42:30AM -0700, Quinn Perkins wrote: I have installed OpenLDAP 2.x on an OS X Server 10.1.2 box. Everything seems to be fine. I have written a simple PHP front end to modify LDAP values. I can modify values in the core.schema without any problem, but if I try to