[PHP] Statically linked library?

2009-10-19 Thread Ning Shi
Hi, I'm writing a program to record the system calls my web application places by interposing the libc libraries. However, I noticed that none of the system calls generated by the MySQL module in PHP is being recorded. I did ltrace and it seems like the module is statically linked, but doing file

[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

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 in which there're several words enclosed

[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 ? echo Hello, world!\n; if (!$tty) { $tty = fopen('php://stdin', 'r'); } print Hello: ; $ch = fgets($tty, 1024); print $ch\n; ? I tested it on many servers. Here is how it running (you can figure out yourself):

[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

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 it possible to use a php script to simulate the three steps? I understand

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

2004-07-07 Thread Alex Shi
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] 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 images

[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

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

2003-09-26 Thread Alex Shi
() then it will work in the correct way. However 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

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_expire'); So, this

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_expire'); You are

[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] convert Excell to MySQL table

2003-06-17 Thread Alex Shi
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 directly (without CSV) transfer an Excell spreadsheet into MySQL table? Thanks

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

2003-03-10 Thread Alex Shi
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! 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 (just this), so

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 (just this), so

[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%+ off

Re: [PHP] Post method

2003-02-28 Thread Alex Shi
, 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 it is possible to simulate a post method? I mean I want to header

[PHP] again, dynamic image of text string

2003-02-15 Thread Alex Shi
tried several different types of fonts but all get same error. I found those font files from windows 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

[PHP] text to image

2003-02-14 Thread Alex Shi
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.pocellular.com

Re: [PHP] text to image

2003-02-14 Thread Alex Shi
, 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: [PHP] text to image Hello, I am thinking to create php script to dynamically convert a text

Re: [PHP] text to image

2003-02-14 Thread Alex Shi
, specifically dealing with alternate 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: [PHP] text to image Hello

[PHP] PHP 4.1.2 session problem

2003-01-29 Thread Alex Shi
behaviour on this server is abnormalHowever, I do hope I myself made something wrong thus the bug is possible 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

Re: [PHP] New generation of PHP Program, reaction to ASP.NET

2002-11-20 Thread shi ziye
Are you interested in this?! New generation of PHP Program, reaction to ASP.NET WOOP (Web Object Of Php) Have you write PHP program like this ? // begin class TForm extends System_UI_Form { function init() { $this-label1 = new System_UI_Label(label1, $this); $this-button1 = new

[PHP] test

2002-11-19 Thread shi ziye
test post only _ Ãâ·ÑÏÂÔØ MSN Explorer: http://explorer.msn.com/lccn/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] New generation of PHP Program, reaction to ASP.NET

2002-11-19 Thread shi ziye
WOOP (Web Object Of Php) Have you write PHP program like this ? // begin class TForm extends System_UI_Form { function init() { $this-label1 = new System_UI_Label(label1, $this); $this-button1 = new System_UI_Button(button1, $this); $this-button2 = new System_UI_Button(button2, $this);

Re: [PHP] New generation of PHP Program, reaction to ASP.NET

2002-11-19 Thread shi ziye
Holmes... - Original Message - From: shi ziye [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, November 19, 2002 9:20 AM Subject: [PHP] New generation of PHP Program, reaction to ASP.NET WOOP (Web Object Of Php) Have you write PHP program like this ? // begin class TForm extends

[PHP] test

2002-11-19 Thread shi ziye
not sure how to post, sorry! _ Ãâ·ÑÏÂÔØ MSN Explorer: http://explorer.msn.com/lccn/ -- 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

[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] 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

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

2002-10-06 Thread Alex Shi
. 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! -Original Message- From: Alex Shi [mailto:[EMAIL PROTECTED]] Sent

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- From: Alex Shi

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? What Data do you want

[PHP] Server API

2002-10-02 Thread Alex Shi
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

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 my

[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

[PHP] PHP 4.2.2 vs PHP 4.0.6

2002-10-01 Thread Alex Shi
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://www.php.net

[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 --

[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:

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

2002-09-10 Thread Alex Shi
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 - Original Message - From: Alex Shi [EMAIL P

Re: [PHP] checkbox question

2002-09-09 Thread Alex Shi
e 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_Area. I know if put a pairs of square brackets at the end of the name then in php all the values

[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

[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

[PHP] Re: Link for downloading?

2002-09-06 Thread Alex Shi
indows'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, How to create a link that when click it will lauch file downloading at clie

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 Subject: Re: [PHP] Link for downloading

[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 -- ---

[PHP] Re: stupid question

2002-09-06 Thread Alex Shi
dAKT.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 for being a newbie...However still found something don't know when reading other's code :( Here i

[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

[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

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 economical,

[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

[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

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

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

2002-07-13 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:[EMAIL PROTECTED]... On Saturday 13 July 2002 13:31

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. Why are

[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 --

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

2002-07-12 Thread Alex Shi
- 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: Hello, My client has a website and it support MySQL/PHP. The client want

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 access it in Access. Doesn't matter, OD

[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 following

[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.

[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.

[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

[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] Send html email

2002-05-11 Thread Alex Shi
d direct SMTP transport. -- Michael Geier CDM Sports, Inc. - Systems Administrator email: [EMAIL PROTECTED] Quoting Liam MacKenzie [EMAIL PROTECTED]: RTFM http://www.php.net/manual/en/function.mail.php - Original Message - From: Alex Shi [EMAIL PROTECTED] To

[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

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

2002-05-03 Thread Alex Shi
mail.mindspring.com instead of localhost. ---John Holmes... -Original Message- From: Alex Shi [mailto:[EMAIL PROTECTED]] Sent: Friday, May 03, 2002 6:52 PM To: [EMAIL PROTECTED] Subject: [PHP] I want to use a mailer other than sendmail Hi, I am using PHP 4.0.4pl1 on RH 7.0. I

[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

[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
there 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 sends the

[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'

[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

[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,

[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] 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,

[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] PHP4 on Windows98 with PWS4

2001-12-18 Thread Alex Shi
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 the list administrators

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 on Windows98 with PWS4 Hello

Re: [PHP] PHP4 on Windows98 with PWS4

2001-12-18 Thread Alex Shi
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] Sent: Tuesday, December 18, 2001 6:52 PM Subject: Re: [PHP] PHP4

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

[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

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 someone

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

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]

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] How to compute time to load page...

2001-12-08 Thread Alex Shi
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: Saturday, December 08, 2001 11:42 PM Subject: Re: [PHP] How to compute

[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

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...

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: [EMAIL PROTECTED] Sent: Friday, December 07, 2001 12

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] 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 -

[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

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: ? session_start(); $value = 908; // I always register it before using it session_register(value); header(location : new location); // How did you write the new location? I never

[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]

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' names of a MySQL table? Hi

[PHP] Sovket help?

2001-09-24 Thread shi
Hi I'm trying to listen to port 119 with a socket connection. The script looks like this: It works fine until this line if(($ac=accept_connect($sock))0){ Thats where the problem is, it never accepts a connection it just keeps on running. ? $sock = socket (AF_INET, SOCK_STREAM, 0); $bin =

  1   2   >