Re: [PHP] scan a text string to pick up certain words

2004-08-11 Thread Alex Shi
It works the way as supposed :) Thanks! > On Wed, 11 Aug 2004 18:07:57 -0400, Alex Shi <[EMAIL PROTECTED]> wrote: > > Hi All, > > > > I guess regex can do the trick but I don't know much about regex :(( > > Here is what I want: > > Say a text string

[PHP] scan a text string to pick up certain words

2004-08-11 Thread Alex Shi
Hi All, I guess regex can do the trick but I don't know much about regex :(( Here is what I want: Say a text string in which there're several words enclosed by "{" and "}", for example {hellow}. I need to pick up each of the words like this and print them or do some processing one by one. Can any

[PHP] PHP/MySQL based webmail?

2004-08-09 Thread Alex Shi
Hi All, Can any one recommend a strong/stable PHP/MySQL based web mail system? It must support large mail transfer, some times may be more than 10 MB for a single message. Alex -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] php inventory control software

2004-08-02 Thread Alex Shi
Hello, Any one can suggest me a php template (or modules) of a web-based inventory control software including a web-store. Thanks in advance! Alex -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Very weird issue....

2004-07-20 Thread Alex Shi
Hi all, Please take a look at following very simple script; #!/usr/bin/php -q I tested it on many servers. Here is how it running (you can figure out yourself): Firstly it displays "Hello, world!", then displays "Hello: " at second line and waits for user input; You input a "yes" and it disp

Re: [PHP] using PHP script to simulate a login

2004-07-16 Thread Alex Shi
> On Fri, 16 Jul 2004 19:23:30 -0400, Alex Shi <[EMAIL PROTECTED]> wrote: > > Hi, > > > > We have a web interface to do following: > > 1. login > > 2. check phone number (maybe thousands of) > > 3. logout. > > > > I am just wondering is

[PHP] using PHP script to simulate a login

2004-07-16 Thread Alex Shi
Hi, We have a web interface to do following: 1. login 2. check phone number (maybe thousands of) 3. logout. I am just wondering is it possible to use a php script to simulate the three steps? I understand that after login the web server will send a cookie to browser, so in that way a session ca

[PHP] Re: Slideshow using PHP

2004-07-07 Thread Alex Shi
Search google for javascript slideshow script. Javascript slideshow need an array of image names, this can be done by php and mysql when dynamically generate the page. Alex Shi > I would like to have images displayed automatically using PHP with a > Database and/or an array of image

[PHP] Got error "Inappropriate ioctl for device" when trying ssl connection....

2004-07-07 Thread Alex Shi
HPs are OpenSSL enabled but why behaved differently? Thanks in advance! Alex Shi -- Regards, Alex Shi Stonix.com Inc. Phone: 416-422-4466 Cell: 416-827-3685 Email: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] php unlink a file - is it possible?

2003-10-08 Thread Alex Shi
Hi, How can have a php script unlink/delete a file uploaded via FTP? Usually a ftp-uploaded file belongs to the ftp user, and a php script is running by apache/nobody. Seems like there shouldn't be any way to do this...OK, my situation is that I want a php script to this: it can move bulk uploade

Re: [PHP] header ('Content-type...') does not work properly if session_start initiated...

2003-09-26 Thread Alex Shi
> Curt Zirzow wrote: > > > > hmm.. i think i just rememberd that it might had to do with making > > sure that session.cache_limiter being set as 'nocache'. > > > > Search the archives, the answer is there i believe. > > > > Curt > > You are close, it was session_cache_limiter('private_no_expir

Re: [PHP] header ('Content-type...') does not work properly if session_start initiated...

2003-09-26 Thread Alex Shi
> Curt Zirzow wrote: > > > > hmm.. i think i just rememberd that it might had to do with making > > sure that session.cache_limiter being set as 'nocache'. > > > > Search the archives, the answer is there i believe. > > > > Curt > > You are close, it was session_cache_limiter('private_no_expir

[PHP] header ('Content-type...') does not work properly if session_start initiated...

2003-09-26 Thread Alex Shi
session is required for this script. I don't understand why it works OK on the development server but not for application server. Thanks in advance for all help! Alex Shi -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] convert Excell to MySQL table

2003-06-17 Thread Alex Shi
f Excel. I may be wrong since it's been a > while since I've done anything with Excel, but it's worth > a try. > > > > On Tue, 2003-06-17 at 11:09, Alex Shi wrote: > > Hello, > > > > Does any one out there happend to know a php solution to dire

[PHP] convert Excell to MySQL table

2003-06-17 Thread Alex Shi
Hello, Does any one out there happend to know a php solution to directly (without CSV) transfer an Excell spreadsheet into MySQL table? Thanks in advance! Alex -- == Cell Phone Batteries at 30-50%+ off retail prices! http://www.pocellular.com ==

Re: [PHP] How to set a timeout limit for a call of a connection?

2003-03-10 Thread Alex Shi
> > I have a script in which there is a call to open a remote file: > > > > fopen ("http://www.somewhere.com/file.php?foo=bar";, "r"); > > > > Sometimes if www.somewhere.com is down, it will stuck at the function > > for very long a time. I hope to setup a timeout limit for this > function > > (j

Re: [PHP] How to set a timeout limit for a call of a connection?

2003-03-10 Thread Alex Shi
> > I have a script in which there is a call to open a remote file: > > > > fopen ("http://www.somewhere.com/file.php?foo=bar";, "r"); > > > > Sometimes if www.somewhere.com is down, it will stuck at the function > > for very long a time. I hope to setup a timeout limit for this > function > > (j

[PHP] How to set a timeout limit for a call of a connection?

2003-03-10 Thread Alex Shi
st this), so that it won't stay very long to wait for a result, but just quit if the call take a time longer than timeout limit, and then go on for next steps. Thanks in advance! Alex Shi -- == Cell Phone Batteries at 30-50%+ off retail prices!

Re: [PHP] Post method

2003-02-28 Thread Alex Shi
gt; a look at the script repositories, hotscripts.com and you might try > phpclasses.org as well. ^^ Thanks! I found a great class in phpclasses.org. Alex > > Jason > On Fri, 2003-02-28 at 14:09, Alex Shi wrote: > > Hi, > > > > Any one know in a php script, if

[PHP] Post method

2003-02-28 Thread Alex Shi
Hi, Any one know in a php script, if it is possible to simulate a post method? I mean I want to header() to an url but don't like to embed the parameters into that url. Thanks in advance! Alex Shi -- == Cell Phone Batteries at 30-50%

[PHP] again, dynamic image of text string

2003-02-15 Thread Alex Shi
indows and uploaded them to the server. I don't if the Windows fonts could work for Linux. Alex Shi -- == Cell Phone Batteries at 30-50%+ off retail prices! http://www.pocellular.com == Traffic

Re: [PHP] text to image

2003-02-14 Thread Alex Shi
unctions in the php > > manual. There are some font limitations, specifically dealing with > > alternate characters, but you'll find out what works and what doesn't soon > > enough. > > Hugh > > > > - Original Message - > > From: "Alex

Re: [PHP] text to image

2003-02-14 Thread Alex Shi
characters, but you'll find out what works and what doesn't soon > enough. > Hugh > > ----- Original Message - > From: "Alex Shi" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Friday, February 14, 2003 10:16 AM > Subject: [P

[PHP] text to image

2003-02-14 Thread Alex Shi
pe verdana font, can I just upload the windows font file to the web server (linux) and use php to load the font? Thanks in advance! Alex Shi -- == Cell Phone Batteries at 30-50%+ off retail prices! http://www.poce

[PHP] PHP 4.1.2 session problem

2003-01-29 Thread Alex Shi
to be fixed... Thanks for any help in advance! Alex Shi -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Referrer

2002-10-07 Thread Alex Shi
How can know the referrer of a script? Let's say script B is linked from script/page A. Is it possible to obtain A's name in script B? Alex -- --- TrafficBuilder Network: http://www.bestadv.net/index.cfm?ref=7029 -- PHP General Mailing List (http://www.php.net/) To u

Re: [PHP] need help for a where clause

2002-10-06 Thread Alex Shi
Thanks! This is what I need! Alex Shi "Sascha Cunz" <[EMAIL PROTECTED]> 写入消息新闻 :[EMAIL PROTECTED] A solution on that depends strongly on how much values A.Afn would take. For 3, it's still okay. But i wouldn't do more. Against what shall the B.Bfn* be checked? W

Re: [PHP] How to drop a element from an array

2002-10-06 Thread Alex Shi
Thanks! Alex Shi "Timothy J Hitchens" <[EMAIL PROTECTED]> 写入消息新闻 :002f01c26d8a$77332470$[EMAIL PROTECTED] unset $some_variable[4]; then you would need to resort... etc (if needed) Timothy Hitchens (HITCHO) [EMAIL PROTECTED] HITCHO has Spoken! -Original Message----

Re: [PHP] How to drop a element from an array

2002-10-06 Thread Alex Shi
emery. Alex Shi "Timothy J Hitchens" <[EMAIL PROTECTED]> 写入消息新闻 :002e01c26d89$780c14c0$[EMAIL PROTECTED] > Hint... look at array_push etc (like a stack) > > > Timothy Hitchens (HITCHO) > [EMAIL PROTECTED] > > HITCHO has Spoken! > > > > > >

[PHP] How to drop a element from an array

2002-10-06 Thread Alex Shi
Is there a good way do drop an element from an array? Alex Shi -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] need help for a where clause

2002-10-06 Thread Alex Shi
; if A.Afn=2, then check value of B.Bfn2; if A.Afn=3, then check value of B.Bfn3. So how can I create such a where clause to do this? Thanks in advance! Alex Shi -- --- TrafficBuilder Network: http://www.bestadv.net/index.cfm?ref=7029 -- PHP General Mailing List (http

[PHP] Server API

2002-10-02 Thread Alex Shi
etter learn something before I ask my hosting provier. Thanks! Alex Shi -- --- TrafficBuilder Network: http://www.bestadv.net/index.cfm?ref=7029 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PHP 4.2.2 vs PHP 4.0.6

2002-10-01 Thread Alex Shi
it possible to configure 4.2.2 to compatible downward. Thanks! Alex Shi BTW: my development server is RH Linux 7.1 so cannot upgrade PHP to 4.2.2. -- --- TrafficBuilder Network: http://www.bestadv.net/index.cfm?ref=7029 -- PHP General Mailing List (http://w

[PHP] PHP version

2002-10-01 Thread Alex Shi
Is there any way to report PHP version? -- --- TrafficBuilder Network: http://www.bestadv.net/index.cfm?ref=7029 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP 4.2.2 vs PHP 4.0.6

2002-10-01 Thread Alex Shi
THanks! "John W. Holmes" <[EMAIL PROTECTED]> wrote in message 000f01c269a4$a7329be0$7c02a8c0@coconut">news:000f01c269a4$a7329be0$7c02a8c0@coconut... > > I didn't realized that PHP had been going so fast that it was creating > > problems for compatiblility. > > > > Here is my situation: PHP on m

[PHP] datetime convert

2002-09-12 Thread Alex Shi
Hi, I'm trying to convert a formated datetime string into a timestamp. The string format is "Y-m-d H:i:s". I use strtotime() to convert the datetime string. However, the converted datetime seems lost its time part. Is there any easy solution to make the converting? Thanks in advance! Alex --

Re: [PHP] What these two things mean: __FILE__ and __LINE__

2002-09-10 Thread Alex Shi
more thing don't understand: __PATH__. Alex "Kevin Stone" <[EMAIL PROTECTED]> wrote in message 008801c2590a$28d7ede0$6501a8c0@kevin">news:008801c2590a$28d7ede0$6501a8c0@kevin... > http://www.php.net/manual/en/language.constants.php > -Kevin > > > -

[PHP] What these two things mean: __FILE__ and __LINE__

2002-09-10 Thread Alex Shi
What these two things mean: __FILE__ and __LINE__ ? I searched manul but find nothing about them... Alex -- --- TrafficBuilder Network: http://www.bestadv.net/index.cfm?ref=7029 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.

Re: [PHP] checkbox question

2002-09-09 Thread Alex Shi
u cannot use square brackets, get the values yourself from > $_SERVER['QUERY_STRING'] > > Alex Shi wrote: > > >How to ontain data from a group of checkbox using same name? > >For example, in a form there're 6 checkboxes and all named as > >"Interesting_Ar

[PHP] checkbox question

2002-09-08 Thread Alex Shi
How to ontain data from a group of checkbox using same name? For example, in a form there're 6 checkboxes and all named as "Interesting_Area". I know if put a pairs of square brackets at the end of the name then in php all the values of them can be ontained. However, for some reason I cannot use s

[PHP] Re: stupid question

2002-09-06 Thread Alex Shi
gt; > Nicos - CHAILLAN Nicolas > [EMAIL PROTECTED] > www.WorldAKT.com - Hébergement de sites Internet > > "Alex Shi" <[EMAIL PROTECTED]> a écrit dans le message de news: > [EMAIL PROTECTED] > > I have almost two years of experience in PHP. so don't think qualified f

[PHP] stupid question

2002-09-06 Thread Alex Shi
I have almost two years of experience in PHP. so don't think qualified for being a newbie...However still found something don't know when reading other's code :( Here is what I want to know: $Global{'hello'}. What this means? Is it a Variable-variable? Alex -- --- T

Re: [PHP] Link for downloading?

2002-09-06 Thread Alex Shi
Thanks for your reply! Still have another question: How to use header() to generate download link? Alex - Original Message - From: <[EMAIL PROTECTED]> To: "Alex Shi" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Friday, September 06, 2002 7:27 AM

[PHP] Re: Link for downloading?

2002-09-06 Thread Alex Shi
ws's default configuration. > > -- > > Nicos - CHAILLAN Nicolas > [EMAIL PROTECTED] > www.WorldAKT.com - Hébergement de sites Internet > > "Alex Shi" <[EMAIL PROTECTED]> a écrit dans le message de news: > [EMAIL PROTECTED] > > Hello, > > >

[PHP] Link for downloading?

2002-09-06 Thread Alex Shi
Hello, How to create a link that when click it will lauch file downloading at client's end. And another question which might be biased from this topic, but still related with the subject of this message: why some downloading link will lauch a ftp client such as NetAnts or Download Accelerator

Re: [PHP] wanto uninstall php manual

2002-08-13 Thread Alex Shi
Thanks! It works as I expected ;-) Alex -- --- TrafficBuilder Network: http://www.bestadv.net/index.cfm?ref=7029 "@ Edwin" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I haven't use up2date but perhaps this will work anyway. Open a te

[PHP] wanto uninstall php manual

2002-08-13 Thread Alex Shi
Hi, I upgraded php from 4.0.4p11 to 4.0.6 with up2date (a RedHat Update Agent). The new php includes a huge manual but I cannot find where is it after installed, and I don't know how can access it. And more, my free disk space is only 120M. So I am thinking to uninstall this manual. Any one know

[PHP] upgrading error

2002-08-13 Thread Alex Shi
I have PHP 4.0.4p11 on RH Linux 7.1. Today I downloaded PHP 4.1.2-7 rpm packages (10 packages) from RH web site. These packages are come with RH Linux 7.3. I don't want to upgrade Linux but just upgrade PHP so I tried rpm -Uvh php-4.1.2-7.i386.rpm. I got following error message: error: failed d

Re: [PHP] Need a Web Host for php/mySQl

2002-08-13 Thread Alex Shi
"Thomas Edison Jr." <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Glory, > > I'm looking for a new Web Hosting company, to host my > sites. I had been with Aletia, but i'm experiencing > some technical flaws with them, so i need a new one. > Aletia is very eco

[PHP] upgrading

2002-08-13 Thread Alex Shi
Hi, I am currently have PHP 4.0.4p11 and Apache 1.3.19 running on RH Linux 7.1. Now I am thinking of upgrade my PHP to 4.1.2-7 (the version come with RH 7.3). I have downloaded all 4.1.2-7 rpm packages altogether 10 files. I will stay with RH 7.1 but upgrade PHP to 4.1.2-7. I am going to do up

[PHP] Template and Replacement

2002-08-13 Thread Alex Shi
Hello, Currently I am using following method to generate dynamic page content: 1. Create a page template, in which the places where substitution is supposed to take place are marked by a key bracketed with '{' and '}'. For example: {news}, {date}, {headlines}, {article_content}.. 2. in php sc

Re: [PHP] Convert MySQL table into Access or Excell format

2002-07-13 Thread Alex Shi
> > > the mysql list). Put simply, you can specify which port you want MySQL to > > > use. However if the ISP only allows certain ports, eg SMTP, HTTP, _and_ > > > you're already using those ports, then you're stuck up a creek. > > > > > > Of course you can always ask your ISP to unblock that port

Re: [PHP] Convert MySQL table into Access or Excell format

2002-07-12 Thread Alex Shi
"Jason Wong" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > On Saturday 13 July 2002 14:00, Alex Shi wrote: > > "Jason Wong" <[EMAIL PROTECTED]> wrote in message > > [EMAIL PROTECTED]">news:[EMA

Re: [PHP] Convert MySQL table into Access or Excell format

2002-07-12 Thread Alex Shi
"Jason Wong" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > On Saturday 13 July 2002 13:31, Alex Shi wrote: > > The thing is that, the MySQL table resides on a remote web server, my > > client want to download it and

Re: [PHP] Convert MySQL table into Access or Excell format

2002-07-12 Thread Alex Shi
- Original Message - > From: "Jason Wong" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Friday, July 12, 2002 9:48 PM > Subject: Re: [PHP] Convert MySQL table into Access or Excell format > > > > On Saturday 13 July 2002 06:48, Alex Shi wrote:

[PHP] Convert MySQL table into Access or Excell format

2002-07-12 Thread Alex Shi
Hello, My client has a website and it support MySQL/PHP. The client want to download the MySQL tables and then access them in Excell or Access. So my question is, is it possible to convert MySQL table into Access or Excell format? Thanks in advance for all answer! Alex -- -

[PHP] Re: PHP script

2002-05-25 Thread Alex Shi
For file uploading: http://www.php.net/manual/en/features.file-upload.php For chmod: http://www.php.net/manual/en/function.chmod.php For the third question: php has no restriction where php scripts have to be put in. so just put the script where you want to upload file. Hope these can help. Al

[PHP] Re: Newbie Questionabout variables

2002-05-25 Thread Alex Shi
Not sure what your question is In the case "password" is not a variable but the value of the variable, while "admin" is the name of the variable. Variables passed by url is obtained by GET method, and in your script all vairables passed by GET method can be accessed directly. So, in followin

[PHP] How is SESSION_ID passed?

2002-05-24 Thread Alex Shi
Hello, I have created several web sites using php. In all these sites session id is passed via cookie. However I noticed that some times it was passed by url. I am thinking that to pass session id by url will be safer than by cookie. However I don't know how can do this without change my code. D

[PHP] How can obtain referer's name?

2002-05-12 Thread Alex Shi
Hi! I want to know how can a script obtain the page name where it was linked. e.g., there's a link on page.html, and the link points to script.php, how can script.php know the name of page.html? Thanks in advance for all answer! Alex -- PHP General Mailing List (http://www.php.net/) To unsub

Re: [PHP] Send html email

2002-05-11 Thread Alex Shi
>: > > > RTFM > > http://www.php.net/manual/en/function.mail.php > > > > > > > > - Original Message - > > From: "Alex Shi" <[EMAIL PROTECTED]> > > To: <[EMAIL PROTECTED]> > > Sent: Sunday, May 12, 2002 10:00

[PHP] Send html email

2002-05-11 Thread Alex Shi
Hi! How can I send a html email with just the build-in function mail()? Is this required to put some infomation in "header" field? Thanks in advance! Alex -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] I want to use a mailer other than sendmail

2002-05-03 Thread Alex Shi
> > > > Enter the name of your SMTP server on the first line, instead of > > localhost. If you use mindspring, for example, you would put > > mail.mindspring.com instead of localhost. > > > > ---John Holmes... > > > > > -Original Message- &

[PHP] I want to use a mailer other than sendmail

2002-05-03 Thread Alex Shi
Hi, I am using PHP 4.0.4pl1 on RH 7.0. I know PHP uses sendmail as it's default mailer. However on my system sendmail has never been working well. So I am thinking that if it is possible to configure php to use my ISP's SMTP server instead of using the sendmail. Any one can help me out how to d

[PHP] How to obtain the script's path?

2002-02-12 Thread Alex Shi
Hi, I have a script need to be launched from terminal, and I want it to report the script's path. Because this script is required to be launched from command line, so those Apache env vars have not effect work, even $PHP_SELF don't work. Can anybody has a solution for this? Thanks in advance for

[PHP] PHP script for command line

2002-02-05 Thread Alex Shi
I am now trying to use php script from command line. Everything is Ok except only one thing: it will always send out header msg. How can stop it from sending header? Alex Shi -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Zend Studio

2002-02-04 Thread Alex Shi
has ever used it could you please give some comment. Thanks! Alex Shi -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] mail() function not sending to Yahoo address

2002-02-03 Thread Alex Shi
Hi, > Monday, February 04, 2002, 12:17:27 AM, recebi de John P. Donaldson: > > John> I've tried several PHP form processors, and all of > John> them have trouble sending the form contents to a Yahoo > John> address. When I change the address to something other > John> than a Yahoo account, it s

[PHP] Talk with a remote script

2002-02-03 Thread Alex Shi
Hi all, I would like to know that, in php how to call a remote script, get return value from that script and, pass parameters to that script? And one more question: can I throw a php script to linux background, or preferably use perl script for background running instead? Thanks for answers in

[PHP] PHP don't know 'localhost'

2002-01-23 Thread Alex Shi
Hi, Today I met a very strange problem. My system had been working perfect since long time back when I setup mysql/php/apache on RH 7.1, until today I found that php could not connect mysql with the user from 'localhost'. But actually user@localhost can login to mysql from terminal. 'Locahost' j

[PHP] MySQL connection problem?

2002-01-13 Thread Alex Shi
Here is my situation: 1. Two hosts: HA and HB, both connected with each other via Internet. 2. On HA there is a MySQL server SA and a Web server WA, while on HB there is a SB and a WB. 3. On WA there is a page, on which there are two buttons: ba and bb. The ba is linked to a script sa.php while b

[PHP] How MySQL Query and Fetch work?

2002-01-08 Thread Alex Shi
Yesterday I posted a question yet got response. The question is regarding to how Query works. Now I repost it in a more specific way. I am just wondering how MySQL API functions work. Let's look at following two functions: 1. mysql_query(), 2. mysql_fetch_array() To my understanding, mysql_q

[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 age>45") or die ("Invalid query"); I am just wondering that if MySQL server would return all the query result in tot

[PHP] How to check if a session exists

2001-12-20 Thread Alex Shi
If a sesson_id is known, how can check if the session exists? Alex -- 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 PROTECTED]

[PHP] List all session currently associated with a web site

2001-12-20 Thread Alex Shi
Hi, I 'd like to know how can we list all the sessions concurrently active on a web site. If anyone out there knows how to do the trick please help. Thanks in advance! Alex -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-m

Re: [PHP] PHP4 on Windows98 with PWS4

2001-12-18 Thread Alex Shi
d isapi mode but got same error. It seems like this must be a web server config problem but I don't how to find out a clue. Alex - Original Message - From: "Jim Lucas" <[EMAIL PROTECTED]> To: "Alex Shi" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]

Re: [PHP] PHP4 on Windows98 with PWS4

2001-12-18 Thread Alex Shi
Now I set extension_dir point to correct path in php.ini, the problem changed: it shows 500 internal server error. - Original Message - From: "Alex Shi" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, December 18, 2001 5:51 PM Subject: [PHP] PHP4

[PHP] PHP4 on Windows98 with PWS4

2001-12-18 Thread Alex Shi
as anything to do with it. Anyone has idea what's wrong with it? Please help me out if you know this issue. Thanks in advance! Alex Shi -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact t

Re: [PHP] Logo proposal - voting script!

2001-12-13 Thread Alex Shi
Really? It seems perfect from my end (IE5.5/Win2K).. > I got the same error... > > --- R'twick Niceorgaw <[EMAIL PROTECTED]> wrote: > > While voting I got this error > > > > Warning: Cannot add header information - headers already sent by > > (output > > started at /home/b1642/public_html/v

Re: [PHP] Script like this for PHP

2001-12-12 Thread Alex Shi
Javascript. - Original Message - From: "Indera" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, December 12, 2001 4:01 AM Subject: [PHP] Script like this for PHP > Hello, > > I came across this FAQ and I really would like to create my FAQ like this one. I was wondering if >

[PHP] HEX value for str variable

2001-12-12 Thread Alex Shi
Hello, For some reason I need to test Hex value in a string variable. Could any one here help me out how to write one or more hex values into a string variable? Thanks! Alex -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

Re: [PHP] Help!

2001-12-09 Thread Alex Shi
Have the page expired at once! Alex - Original Message - From: "ryan adorable" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, December 09, 2001 10:07 AM Subject: [PHP] Help! > Hi, > >I created a poll program for my homepage. When i vote some field in my database gets inc

Re: [PHP] How to compute time to load page...

2001-12-08 Thread Alex Shi
nd turn. I know it is not a final solution but this is acurate. Hope someone else out there can give better solution. Alex - Original Message - From: "Jason G." <[EMAIL PROTECTED]> To: "Alex Shi" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Saturd

Re: [PHP] How to compute time to load page...

2001-12-08 Thread Alex Shi
Basically I agree with you. But the second time to get time must be done after the page is rendered on local browser. So I suggest to use Javascript for the second time to get time, and pass the first time value into a js function. Alex - Original Message - From: "Andrew Forgue" <[EMAIL

Re: [PHP] Comparing Dates

2001-12-08 Thread Alex Shi
Absolutely you are doing in the right way:) But pls make sure that string comparison is from left to right. For example, "16" is larger than "15-12-01". Alex - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, December 08, 2001 8:16 PM Subject: [PHP] C

Re: [PHP] Is there a GUI for MySQL?

2001-12-06 Thread Alex Shi
http://phpwizard.net/projects/phpMyAdmin/ -- this is a great admin tool through web http://www.mysql.com/downloads/gui-mysqlgui.html -- you can find screenshot there, looks ugly - Original Message - From: "Hai Nguyen" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, December 07

Re: [PHP] Redirect Function?!!

2001-12-06 Thread Alex Shi
You can use, header ("Location: http://www.php.net";); and you can pass variable, header ("Location: http://www.php.net?name1=$value&$name2=$value2";); Hope this can helps. Alex Shi - Original Message - From: "Cam" <[EMAIL PROTECTED]> To: &l

Re: [PHP] Trying to pass a variable through a form...

2001-12-06 Thread Alex Shi
Can you paste Tnoy2.php script? Please make sure in Tony2.php $name is printed but not $lname. Alex - Original Message - From: "Anthony Ritter" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, December 07, 2001 12:01 AM Subject: [PHP] Trying to pass a variable through a form...

[PHP] HTTP Environment Varialbles

2001-12-06 Thread Alex Shi
Hi, I have a question about how we can read environment variables. In perl we can do this as following: $caller = $ENV{'HTTP_REFERER'}; $doc_name = $ENV{'DOCUMENT_NAME'}; $visitor_ip = $ENV{'REMOTE_ADDR'}; $visitor_host = $ENV{'REMOTE_HOST'}; Actually in Perl, either SSI or CGI, we can get all

[PHP] Microsoft Access

2001-10-25 Thread Alex Shi
Hi Folks, Does any one here know how to access MS Access file in PHP? And is it possible to do it on a platform other than Window NT/2K, such as Linux or FreeBSD? Alex -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

Re: [PHP] Visual PHP Studio--comments?

2001-10-19 Thread Alex Shi
Where you find it? Why not show up the link? Actually I have been always thinking of a php studio. I think at least following things could be integrated into such a studio: a php IDE bundled with a web authority tool, and port to SQL server and web server. Alex - Original Message - Fro

Re: [PHP] sessions in php4

2001-10-01 Thread Alex Shi
I always using session together with header() and never got a problem. Here's something might be a hint to you: http://..."; // in the "new location" ?> Alex - Original Message - From: "sagar N Chand" <[EMAIL PROTECTED]> To: "php" <[EMAIL PROTECTED]> Sent: Monday, October 01, 2001 9:5

[PHP] A powerful editor!

2001-10-01 Thread Alex Shi
Hello folks, Today, I found a very powerful editor, called TextPad. I said it is 'powerful' because it can recognize syntax of php, html, java, css and also many many more great featuresmuch better that Windows Notepad. You can download and try. You need to take a few minutes to explore i

Re: [PHP] How to obtain all the fields' names of a MySQL table?

2001-09-25 Thread Alex Shi
Thanks for all reply! I just realized that this is just a simple issue of a sql query. Alex - Original Message - From: "Alex Shi" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, September 25, 2001 3:03 PM Subject: [PHP] How to obtain all the fields&#

[PHP] How to obtain all the fields' names of a MySQL table?

2001-09-25 Thread Alex Shi
Hi, I wanto know how can obtain all of the fields' names of a MySQL table in a php script. Anyone have an idea about this please help. Thanks! Alex -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] T

[PHP] Script Performance

2001-09-20 Thread Alex Shi
Hi All, Anyone here know how can estimate performance of a script? For example, to use template will definitely have much benefit for both maintenance and development, but it will also cause more IO cost, so I guess it may have negtive effect on performance. Anyone here can please say somethi

Re: [PHP] creating ZIP files

2001-09-20 Thread Alex Shi
Raphael, check fillowing link: http://www.php.net/manual/en/ref.zip.php Php has built-in zip functions. Alex - Original Message - From: "Raphael Pirker" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, September 20, 2001 4:23 PM Subject: [PHP] creating ZIP files > Hi Guys

Re: [PHP] Showing up variables in URL !

2001-09-18 Thread Alex Shi
Try this: Alex - Original Message - From: "Arcadius A." <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, September 19, 2001 6:14 AM Subject: [PHP] Showing up variables in URL ! > Hello ! > We all know how to pass value to variable using an URL. > So, how can I do the inve

[PHP] Call a script without a return

2001-09-18 Thread Alex Shi
Hi, I know my question might be a little bit strange but I am really thinking for the posiblity. Suppose we have a page and on it a button link to a backend script. When click the button, at the server side the scritp will be called. My question is, how can we program the script that just let

Re: [PHP] HTML mail

2001-09-06 Thread Alex Shi
Hi Sid, Following link is an article about sending MIME email in php: http://www.phpbuilder.com/columns/kartic2807.php3 But I think it is too complicated for me to read:((. I suggest you can try following instead: $email_address="[EMAIL PROTECTED]"; $subject="anything you can do"; $email_

  1   2   >