[PHP] How to escape from a function?

2001-01-16 Thread Zenith
... may be I have use a wrong subject, but I can't think a more suitable one sorry first! say, I have a function like this function foo() { babababa... /*at this point, I want to output a lot of html, can I use a ':' to escape from there?*/ /*I know I can do this is a if construct or for...

Re: [PHP] How to escape from a function?

2001-01-17 Thread Zenith
Thanks very much.^^ ""Zenith"" [EMAIL PROTECTED] ¼¶¼g©ó¶l¥ó 942grb$ted$[EMAIL PROTECTED]">news:942grb$ted$[EMAIL PROTECTED]... ... may be I have use a wrong subject, but I can't think a more suitable one sorry first! say, I have a function like this

[PHP] Question about session_register()

2001-01-19 Thread Zenith
I have a question about session_register(), and the following is the background When I read a tutorial about session. I know that, once the "session_start()" is called, it will check the session id. If it's not valid, create a new one, and it will responible to retrieve the variable. I also

[PHP] Question about new features of PHP4!

2001-01-19 Thread Zenith
When I first meet PHP, it still in 3.0 version. just after I bought a book abuot PHP3, for a few weeks, PHP4 is released. for now, I have fimilar with some basic of PHP, and I try to find some useful tutorial about the PHP4, I fail. I have look about the PHP manual (pdf version), I find that,

[PHP] using fopen, but warned permission denied

2001-01-30 Thread Zenith
I installed my php + apache in my linux box, with compiled the php as an apache module. any my web server is run as nobody ( by default ). I try to write some php script in my home directory, in which, I use the fopen call. However, I was warned with "fopen("tester.db","w") - Permission denied"

[PHP] How to sort a 2D array?

2001-03-06 Thread Zenith
IF: $2D[] = array ( 'name'="Jacky", 'year'="2001", 'tel'="982736", 'gender'="Male" ); $2D[] = array ( 'name'="Jessica", 'year'="1999", 'tel'="349291", 'gender'="Felmale" ); How can I sort the array by 'name' or 'year', or other key efficiently? -- PHP General Mailing List

[PHP] Creating a gif thumbnail, without the libgd1.6 or earlier version!

2001-03-06 Thread Zenith
How to create some thumbnail, from orginally a GIF image, to a GIF thumbnail. I dun't the libgd 1.6 or before. Or can we just use libgd1.8 , open a GIF image, and create a thumbnail with PNG format? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED]

[PHP] Can I authenicate user with the accounts in passwd and shadow??

2002-03-04 Thread Zenith
, in the system, I am account 'snoopy', and password 'isadog'. In PHP, I prompt for the account, and if the user enters snoopy:isadog, can I verify this from the /etc/passwd and /etc/shadow??? Zenith -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Is there any existing project doing this??

2002-03-04 Thread Zenith
of package available?? Zenith -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Question on subscription

2002-03-06 Thread Zenith
anymore?? Zenith -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Running virtualhosts under different users

2001-09-23 Thread Zenith
Can you use group and user directives under virtualhost directive?? From the apache manual, group and user directive can be used under virtualhost directives It can control the uid and gid of the running httpd process, with different uid and gid... Right, you can try it. Adam Plocher [EMAIL

[PHP] How can I insert the data into the begining of a text file

2001-08-22 Thread Zenith
I orginal have a function like the following... $fp = fopen ( $HTTP_SERVER_VARS['DOCUMENT_ROOT']./log/debug_message.txt, a ); fputs ( $fp, \nDebug message from : $PHP_SELF\n ); fputs ( $fp, \t$message\n\n ); fclose ( $fp ); But I found that, the result is, all message is append to the

Re: [PHP] How can I insert the data into the begining of a text file

2001-08-22 Thread Zenith
Niklas -Original Message- From: Zenith [mailto:[EMAIL PROTECTED]] Sent: 22. elokuuta 2001 12:39 To: [EMAIL PROTECTED] Subject: [PHP] How can I insert the data into the begining of a text file I orginal have a function like the following... $fp = fopen $HTTP_SERVER_VARS['DOCUMENT_ROO

[PHP] How to output/ generate doc/xls/ or access file?

2001-09-12 Thread Zenith
Right, there is a COM module in the PHP. But it must be used with win32 platform. Is there any alternatives for linux platform? -- 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

[PHP] May I ask sql question here??

2001-09-18 Thread Zenith
I know that, this is a newsgroup for PHP, but can I ask some SQL question here? Or, would you mind point me to a suitable newsgroup for SQL question? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

[PHP] How to use phpIRC and question about HTML streaming!

2001-02-06 Thread Zenith
I have readying "web application develoment with PHP4.0" by Tabias Ratschiller and Till Gerken at these days! In chapter 3, I have talk about creating a IRC client with phpIRC and HTML streaming, but it hasn't talk too much about the implementation, also, it haven't talk much about HTML

[PHP] what's the difference between include and require??

2001-02-19 Thread Zenith
Though I have read the manual about these two things, include() and require(), but I still not very clear about the difference between these?? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To

[PHP] How can I use session variable in a function?

2001-02-19 Thread Zenith
In main.php, then I use include("xxx.php"), in which, there is a function called temp(); If I use session_start() at the beginging of main.php, after include statment, and I cal the temp(), will the temp() function can get the session variable I have? Or I need to import it by using "global" in

[PHP] question about multidimension array

2001-02-19 Thread Zenith
Consider the following code: $ary1 = array ("one","two"); $ary2 = array ("three","four"); $2d_Dimension[] = $ary1; $2d_Dimension[] = $ary2; // is $2d_Dimension a 2 dimensional array? // and the next question, how to get out content of the $2d_Dimension[] array while ( list ( $rec_no, $ary )

[PHP] How to determine the parameter is a 1 dimension array or not?

2001-02-19 Thread Zenith
In a self defined function, a one dimension or two dimension array may be passed, How can I check that, the passed in array is a one dimension array or a two dimension array? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

[PHP] How to get information from input type=image ...

2001-02-21 Thread Zenith
Hello everbody, if a have HTML document lik this: form action = "submit_to.php" input type="image" src="xxx" name="action1" input type="image" src="xxx" name="action2" /form How can know whether the user is pressed on the "action1" or "action2" image button?? -- PHP General Mailing

[PHP] How can I log message, by syslogd?

2001-02-21 Thread Zenith
As I want to make my application more similar to those linux application, I am going to see that, is it possible for logging information via syslog or similar stuff?? I will happy, if you can also give me advice or comment on the efficiency aspect!! Thnks -- PHP General Mailing List

[PHP] Question about global variables

2001-02-26 Thread Zenith
o use some variables, whose scope is originally on only the upper most level. If using these way (global all var in each function, even not the modules functions), it is very inconivent, as I need to know which variable, should 'global' it, if I use some module functions, Is there any convient way to do so?

[PHP] Another question about using shmop!

2001-02-26 Thread Zenith
, but I have to make sure this. And, can I shared the segment ( the data stored inside ) with different user session. Would you show me how. Lastly, is there any further information about using this? the manual only take a little bit!! Thanks Zenith -- PHP General Mailing List (http://www.php.net

[PHP] How to insert time and date into mysql?

2001-02-28 Thread Zenith
How can I insert time and date into mysql table, if the table i have to insert has a field of type time, and a field of type date. Then how can I insert it in PHP, if I use time() function?? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For

[PHP] How can I log a record??

2001-02-28 Thread Zenith
other instance process know that the record is using by some other . So that the script can warn the user not to edit the record. Thanks! Zenith -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED

[PHP] Classes Question

2001-11-09 Thread Paul - Zenith Tech Inc
I'm hoping somebody has the answer to this! I have 3 pages, one a normal PHP page, and 2 which are classes. One class, is a MySQL class I have written to connect/update users, etc And the other is the manage users on the system. Is there a way I can get the users class to talk to the mysql

Re: [PHP] Classes Question

2001-11-12 Thread Paul - Zenith Tech Inc
om: Paul - Zenith Tech Inc [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, November 09, 2001 11:26 AM Subject: [PHP] Classes Question I'm hoping somebody has the answer to this! I have 3 pages, one a normal PHP page, and 2 which are classes. One class, is a MySQL class I have

Re: [PHP] Classes Question

2001-11-12 Thread Paul - Zenith Tech Inc
I did have a look in the manual, but I got lost half way through! I always think it's a good idea to describe the problem well :) Thanks, Paul Andreas Landmark [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]... On Sun, Nov 11, 2001 at 06:09:40PM -, PaulC wrote: I'm hoping

[PHP] Problem with

2001-11-14 Thread Paul - Zenith Tech Inc
Hi, I have a text file, which is acting as a template for apache config. I open the file, and read it in using this bit of code: $filename = DIR_TEMPLATES./apache/subdom.txt; $fd = fopen ($filename, r); $template = fread ($fd, filesize ($filename)); fclose ($fd); However, the first

[PHP] HTTP Headers

2001-11-21 Thread Paul - Zenith Tech Inc
Using phpinfo() I can see that the header Last-Modified exists. How do I go about accessing the header?? Thanks, Paul -- 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