Re: [PHP] ftp_login problem

2001-02-20 Thread php3
Addressed to: [EMAIL PROTECTED] [EMAIL PROTECTED] ** Reply to note from [EMAIL PROTECTED] Mon, 19 Feb 2001 15:22:49 -0600 I wanted to check with all of you before I report a bug. Here is the problem: I am attempting to access a OS2 server via ftp. When I login on the

[PHP] using include_path with file_exists()

2001-02-20 Thread Ben Peter
Hi all, is there a decent way to check whether a file is available on the include_path? The only soultion I have found is if ( ( $fd = fopen( 'my_file', 'r', 1 ) ) ) { fclose( $fd ); /* ok, file is there */ } That one's not really nice, at it opens the file for reading. It would be

Re: [PHP] File upload problem on IIS/NT4

2001-02-20 Thread Phil Driscoll
Make sure that upload_tmp_dir in your php.ini file is set to something sensible for a windows machine. I have it set to f:\php\temp (and you also need to make sure that the directory specified actually exists). Cheers -- Phil Driscoll Dial Solutions +44 (0)113 294 5112

RE: [PHP] Will this work?

2001-02-20 Thread Tim Ward
empty test type input are always available even if empty. checkboxes and radio buttons are not set if empty but text inputs are always there. your test does not check for the fields not having been filled in. Tim Ward Senior Systems Engineer Please refer to the following

[PHP] WEALTH ON THE WEB!

2001-02-20 Thread Noel Hadfield
Get a FREE copy of the exciting 48-page booklet "Inside Secrets to Wealth on the Web". Just hit Reply and send a blank message with "Inside Secrets" on the Subject line. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

Re: [PHP] Libraries

2001-02-20 Thread Christian Reiniger
On Monday 19 February 2001 22:42, Kath wrote: Why do a lot of people use libraries like PHPLib? I find it a lot better to write my own basic functions. Is it just the attitude "Someone else coded it already, why should I?" Well, if you take a library you can be pretty sure that someone

[PHP] listing files and directories...

2001-02-20 Thread Miguel Loureiro
Hello all, To see all fields(directories and files) inside a directory I use the "dir" and "read", what I would like to know is, if there other way to do the same, others commands because now I have to problems, I want to make a sort of the list (by name or by date), and I have to use my

[PHP] sending variables

2001-02-20 Thread Rosen
Hi, I have two simple php files: main.php: A HREF="test1.php?rosen=11"LIST/A test1.php: ?print("$rosen");? But this doesn't work ! please HELP ! Rsen Marinov -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

[PHP] Re: sending variables

2001-02-20 Thread Ifrim Sorin
In test1.php you shoul have ? $qry=getenv("QUERY_STRING"); $rosen=substr($qry,6); print("$rosen"); ? Sorin Ifrim Rosen [EMAIL PROTECTED] wrote in message 96tdvp$oo7$[EMAIL PROTECTED]">news:96tdvp$oo7$[EMAIL PROTECTED]... Hi, I have two simple php files: main.php: A

Re: [PHP] WEALTH ON THE WEB!

2001-02-20 Thread Graham Reeves
mm. I wonder what this guy is up to : 8-) - Original Message - From: Noel Hadfield [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, February 20, 2001 11:17 AM Subject: [PHP] WEALTH ON THE WEB! Get a FREE copy of the exciting 48-page booklet "Inside Secrets to Wealth

Re: [PHP] Re: sending variables

2001-02-20 Thread Ben Peter
No, PHP makes get variables available in $HTTP_GET_VARS. Thus, Rosen can access his variable as $HTTP_GET_VARS['rosen']. If register_globals is true, the variable is also available in the global scope as $rosen (as in Rosen's example). If this does not work, it would seem that register_globals

[PHP] CLOSE_WAIT - Closing connections to Postgresql database

2001-02-20 Thread Ovidiu EFTIMIE
Hi, I'm using non-persistent connections in a page which is accessed by a client once a second( yes once a second) for about 12 hours. Doing a netstat -apn|grep 5432|grep httpd a see that the php doesn't close the connection, in fact the connection is in CLOSE_WAIT state. I have tried to let the

Re: [PHP] Database Code Portability

2001-02-20 Thread Phil Lambert
Hi Dave, ODBC is probably your best bet but if your working on Unix/Linux it can be a bit of a problem as ODBC is primarily a Microsoft system. I'm working on something like this for my final year degree project. My script's are being developed using Postgres but the final version will use

Re: [PHP] Newbie passwordcheck-program problem

2001-02-20 Thread Simon Garner
Hi Ronald, Hello there fellow programmer, I just started learning PHP (I got version 4 installed with Apache on a Win98 machine). At the moment I'm trying to write a little program that verifies a user login. I know the program is not professional but for me it will do. Only I got stuck

Re: [PHP] Re: sending variables

2001-02-20 Thread Simon Garner
From: "Ifrim Sorin" [EMAIL PROTECTED] In test1.php you shoul have ? $qry=getenv("QUERY_STRING"); $rosen=substr($qry,6); print("$rosen"); ? Sorin Ifrim wtf? Most certainly do NOT do it like that. That's a ridiculous kludge. Rosen, when you say "it doesn't work" what do

[PHP] Newbie passwordcheck-program problem

2001-02-20 Thread Ronald Hemmink
Hello there fellow programmer, I just started learning PHP (I got version 4 installed with Apache on a Win98 machine). At the moment I'm trying to write a little program that verifies a user login. I know the program is not professional but for me it will do. Only I got stuck with the following

[PHP] PHP Variables across files

2001-02-20 Thread Jay Klehr
Hey all, I have a question about using a variable across multiple PHP files. I want to set a path variable such as: $root_path = /www2/yoursite/docs and I want this variable to be able to be changed in case the site is moved to another server that has a different root path. I was thinking

Re: [PHP] PHP Variables across files

2001-02-20 Thread Ben Peter
Jay, to make variables.inc available from wherever you are, set the value of include_path in your php.ini or httpd.conf or .htaccess t something like ".:/path/to/where/variables.inc/is:/other/paths" as an alternative, use the auto_prepend_file directive to include variables.inc before any

Re: [PHP] summing unkown values

2001-02-20 Thread Robin Vickery
"C" == "Claudia" [EMAIL PROTECTED] writes: I would like to sum totals for unknown values. Here is the design Course names are entered in separate table -- courses If the course is still being tested the course status = open This status is stored in the Course table. Each course

[PHP] Fwd

2001-02-20 Thread Taylor Silvers
Dear Friends Future Millionaire: AS SEEN ON NATIONAL TV: ''Making over half million dollars every 4 to 5 months from your home for an investment of only $25 U.S. Dollars expense one time'' BE A MILLIONAIRE LIKE OTHERS WITHIN A YEAR!!! Before you say ''Bull'', please read the following. This

[PHP-CVS] cvs: php4 /ext/midgard php_midgard.h preparser.c

2001-02-20 Thread Emiliano Heyns
emile Tue Feb 20 02:59:56 2001 EDT Modified files: /php4/ext/midgard php_midgard.h preparser.c Log: Header files moved Index: php4/ext/midgard/php_midgard.h diff -u php4/ext/midgard/php_midgard.h:1.3 php4/ext/midgard/php_midgard.h:1.4 ---

[PHP] Sablotron Errors

2001-02-20 Thread John McKerrell
Hi, Not sure if this has been covered on here but... In recent versions PHP/Sablotron I've found that parse errors in the XML/XSL cause fatal errors. I'd much rather not have this happen so is there a way I can get around it? I'm doing xslt_process( ... ) which is meant to return false on

[PHP] Strange behaviour: Cannot exit as expected AND Script starts from the beginning, executed TWICE. Anyone?

2001-02-20 Thread Yasuo Ohgaki
This is really strange. PHP fails to exit / die form script after include / require / include_once / required_once (I tested with all of them, same result). In addition to this, script gets started again automatically from the beginning. (You probably think this is a another newbie mistakes, but I

[PHP] Job [Toronto]

2001-02-20 Thread Calexis
Downtown Toronto web developer seeks experienced PHP/Perl/SQL developer with 2-3 years web experience to work on new and existing websites. Strong database and Apache on unix knowledge an asset. Please email resumes to [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To

[PHP-CVS] cvs: php4 /ext/midgard .cvsignore

2001-02-20 Thread Emiliano Heyns
emile Tue Feb 20 03:00:25 2001 EDT Modified files: /php4/ext/midgard .cvsignore Log: ignore *.la Index: php4/ext/midgard/.cvsignore diff -u php4/ext/midgard/.cvsignore:1.4 php4/ext/midgard/.cvsignore:1.5 --- php4/ext/midgard/.cvsignore:1.4 Sun Feb

[PHP-CVS] cvs: php4 /ext/midgard mail.c preparser-parser.y preparser.c

2001-02-20 Thread Emiliano Heyns
emile Tue Feb 20 03:14:55 2001 EDT Modified files: /php4/ext/midgard mail.c preparser-parser.y preparser.c Log: header file moved Index: php4/ext/midgard/mail.c diff -u php4/ext/midgard/mail.c:1.3 php4/ext/midgard/mail.c:1.4 ---

Re: [PHP] Netscape6 with HTML Form using POST method

2001-02-20 Thread Yasuo Ohgaki
I'm having problem with Netscape6 does not resend valid POST data to PHP. Netscape is waiting until connection timeout. If I hit stop button, it logs warning message attached to this mail. (These forms work fine with IE5.x, NN4.5) I found out work around days ago, but I didn't post list..

[PHP-I18N] Fwd

2001-02-20 Thread Taylor Silvers
Dear Friends Future Millionaire: AS SEEN ON NATIONAL TV: ''Making over half million dollars every 4 to 5 months from your home for an investment of only $25 U.S. Dollars expense one time'' BE A MILLIONAIRE LIKE OTHERS WITHIN A YEAR!!! Before you say ''Bull'', please read the following. This

[PHP] HTTP Content-length...

2001-02-20 Thread Montgomery-Recht, Evan
I'm working through geting the raw sockets implementation to send a http post command to a cgi-script. But there's one thing I'm trying to figure out. How do I create the content-length? I don't see a obvious way but my expection would be the following code. $string ="foo=barfood=apple";

php-general Digest 20 Feb 2001 12:09:11 -0000 Issue 523

2001-02-20 Thread php-general-digest-help
php-general Digest 20 Feb 2001 12:09:11 - Issue 523 Topics (messages 40667 through 40731): Re: File upload problem on IIS/NT4 40667 by: John Vanderbeck 40707 by: Phil Driscoll Re: mail() 40668 by: Christopher Allen 40674 by: David Robley 40677 by:

Re: [PHP] Strange behaviour: Cannot exit as expected AND Script starts from the beginning, executed TWICE. Anyone?

2001-02-20 Thread Ben Peter
Yasuo, the function you call is $msg = user_regist(); while in regist_util.inc, the function defined is function regist_user() { Could that be the problem? Do you see any errors about undefined functions? Cheers, Ben Yasuo Ohgaki wrote: This is really strange. PHP fails to exit /

Re: [PHP] HTTP Content-length...

2001-02-20 Thread Ben Peter
Evan, I have no good answer to your problem, but probably you should have a look at Snoopy (snoopy.sourceforce.net), which implements HTTP posts, along with some other nifty functions and is very easy to use. Cheers, Ben "Montgomery-Recht, Evan" wrote: I'm working through geting the raw

php-i18n Digest 20 Feb 2001 11:21:25 -0000 Issue 53

2001-02-20 Thread php-i18n-digest-help
php-i18n Digest 20 Feb 2001 11:21:25 - Issue 53 Topics (messages 124 through 124): Fwd 124 by: Taylor Silvers Administrivia: To subscribe to the digest, e-mail: [EMAIL PROTECTED] To unsubscribe from the digest, e-mail: [EMAIL PROTECTED] To post to the list,

[PHP-CVS] cvs: php4 /ext/mnogosearch php_mnogo.c test.php

2001-02-20 Thread Sergey Kartashoff
gluke Tue Feb 20 03:29:15 2001 EDT Modified files: /php4/ext/mnogosearch php_mnogo.c test.php Log: Phrase search support has been added to mnogosearch extenstion. Min_word_len and Max_word_len support has been added to mnogosearch extension. Example

[PHP] Redirect page

2001-02-20 Thread Rosen
Hi, I have php script and I want to redirect user to different pages. I tryed with header("Location: main.php"); but i receive error: Warning: Cannot add header information - headers already sent by (output started at F:\Inetpub\wwwroot\pernik\go.php:2) in F:\Inetpub\wwwroot\pernik\go.php on

[PHP-CVS] cvs: php4 /ext/midgard config.m4 mgd_access.h mgd_preparser.h php_midgard.h

2001-02-20 Thread Emiliano Heyns
emile Tue Feb 20 03:29:52 2001 EDT Modified files: /php4/ext/midgard config.m4 mgd_access.h mgd_preparser.h php_midgard.h Log: Header file moved. Index: php4/ext/midgard/config.m4 diff -u php4/ext/midgard/config.m4:1.5

[PHP-CVS] cvs: php4 /ext/yaz php_yaz.c

2001-02-20 Thread Adam Dickmeiss
dickmeiss Tue Feb 20 03:40:36 2001 EDT Modified files: /php4/ext/yaz php_yaz.c Log: Yet another bug fix regarding present. Index: php4/ext/yaz/php_yaz.c diff -u php4/ext/yaz/php_yaz.c:1.11 php4/ext/yaz/php_yaz.c:1.12 ---

Re: [PHP] HTTP Content-length...

2001-02-20 Thread Hrishi
$string ="foo=barfood=apple"; $contentlength=$string.size; $uuencodestring=uuencode($string); uuencode ? are you looking at urlencode ? use $contentlength=strlen($string); also remember according to the HTTP protocol, you have to show the length of the encoded string, not the original;

Re: [PHP] Redirect page

2001-02-20 Thread Ben Peter
Rosen, You have to make sure that nothing is output before the header function. Make sure that you neither employ an echo or print before, and have nothing outside of th ephp code (the part enwrapped in ?php or ? and ?), not even whitespace. You critical spot seems to be line 2 in go.php

[PHP] MyODBC and Crystal Reports

2001-02-20 Thread Bruno Freire
Hi, everybody! It's me again Bruno, from Brazil. Now i'm having some problems with MyODBC and Crystal. I have an ODBC named MyCOMERCIAL. I did make a report in the Crystal linked at this ODBC. When I call this report or update the data in the report from crystal reports, everythink is OK.

[PHP] LDAP Admin Tool

2001-02-20 Thread Ali
Hello, does anybody know of a LDAP Admin Tool (apart from LDAP Explorer) written in php. Any hint would be appreciated. Ali -- 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] processing form data

2001-02-20 Thread Denis L. Menezes
Hello friends. I am new to php4 which I am running on an intel machine with NT4 sp6 and IIS4. I have 2 forms name.php and username.php When I run the name.php, and click "submit data" button, the username.php does not appear. I have both the files in the same directory which is

Re: [PHP] processing form data

2001-02-20 Thread Thomas Deliduka
Change your form method to GET and find out what's being passed. Check your php.ini file. I think it's the "track vars" command that determines whether the variables will be parsed on the next page. On 2/20/01 9:16 AM this was written: I am new to php4 which I am running on an intel machine

Re: [PHP] processing form data

2001-02-20 Thread Thomas Deliduka
Correction To quote from a previous e-mail from some one else: If register_globals is true, the variable is also available in the global scope as $rosen (as in Rosen's example). If this does not work, it would seem that register_globals is not set [in the php.ini file]. On 2/20/01 9:16 AM

[PHP] 'use' and 'import'

2001-02-20 Thread Michael Dearman
I give up. The PEAR docs refer to 'use' or 'import'. I know I've seen 'import' somewhere, but I can't find either in my ref books, searches on Zend.org, nor the manual. Could someone direct me to where these 2 functions? / statements? / directives? are explained. Thanks, Mike D. -- PHP General

RE: [PHP] Multiple URLs and cookies

2001-02-20 Thread Jeremy Gillies
How will that work with three URLs and frequent language switching? Thanks, jer You can't do setcookie and Location: in the same page. Once they picked a language, set the cookie and return the HTML content for that home page, don't redirect. -- Visit the Zend Store at

Re: [PHP-CVS] cvs: php4 /ext/standard array.c basic_functions.c php_array.h

2001-02-20 Thread Andrei Zmievski
On Tue, 20 Feb 2001, Jason Greene wrote: + if (behavior == 0) { + compare_func = is_equal_function; + } else { + /* Lets not return a key unless the values are exact */ + compare_func = is_identical_function; + } Why not? Why should it be

[PHP] SMS again

2001-02-20 Thread Siim Einfeldt aka Itpunk
Hey I know this topic has been 'in the area' lots od times, but does anybody know of any scripts that are out there whichi I could use to let users of my website send SMS? And secondly, can I offer it as a free service (this would assume I don`t have to pay for it myself either)? Or is anyone

[PHP] Help?

2001-02-20 Thread Wee Chua
Hi all, I am sorry for asking this question but I just need some opinions or answers from you all. The question is "What are the limitations of software testing?" Thanks for any helps in advance. Calvin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL

[PHP] is eval expensive?

2001-02-20 Thread Jaxon
Hi, is eval() really that expensive? I want to parse a bunch of PHP 'modules' into an HTML string, so I can mostly separate content from markup. I've found a couple of comments on the list that say it is expensive, but none of my PHP books mention it :) cheers! jaxon -- PHP General Mailing

Re: [PHP] Open location automatically after checking

2001-02-20 Thread Edith Lai
I tried this but get error message. It says that i've opened a header and can't open another things like that. Is this the only way to do that? For your reference, my php file looks like this: ?php if ($submit){ if (checking not succeed){ echo ""; }else{

[PHP-CVS] cvs: php4 /ext/standard array.c basic_functions.c php_array.h

2001-02-20 Thread Andrei Zmievski
andrei Tue Feb 20 06:23:03 2001 EDT Modified files: /php4/ext/standard array.c basic_functions.c php_array.h Log: Rename to array_search(). Index: php4/ext/standard/array.c diff -u php4/ext/standard/array.c:1.92 php4/ext/standard/array.c:1.93 ---

[PHP-CVS] cvs: php4 /ext/zlib zlib.dsp

2001-02-20 Thread Daniel Beulshausen
dbeuTue Feb 20 07:05:37 2001 EDT Modified files: /php4/ext/zlib zlib.dsp Log: changed zlibstat.lib - zlib.lib, which is the correct name Index: php4/ext/zlib/zlib.dsp diff -u php4/ext/zlib/zlib.dsp:1.11 php4/ext/zlib/zlib.dsp:1.12 ---

Re: [PHP] using include_path with file_exists()

2001-02-20 Thread Michael Dearman
Hi Ben, I thought maybe there was something like HTTP_SERVER_VARS["INCLUDE_PATH"], but apparently not. Could you just define your own $GLOBALS["my_include_path"] = and use that with file_exists()?? Mike D. Ben Peter wrote: Hi all, is there a decent way to check whether a file is

Re: [PHP] Getting LDAPS to work

2001-02-20 Thread Victor V . Evtushenko
* John Hallam [EMAIL PROTECTED] [010215 17:58]: I have got php 4.0.4p1 configured with openssl 0.9.6 and ldap and I'm trying to get an ldap_connect to work over ldaps as described in the ldap_connect documentation. I have no problem connecting using ldap_connect(hostname) format but I do

Re: [PHP] Newbie password-check program

2001-02-20 Thread Chris Lee
try this. ?php class password { function checkpwd() { $this-username = @$GLOBALS['username']; $this-passwd = @$GLOBALS['passwd']; $this-username = strtoupper($this-username); $this-passwd = strtoupper($this-passwd); if ($this-passwd == 'MYPASS' AND $this-username ==

Re: [PHP] GD with Jpeg Support Problems

2001-02-20 Thread Chris Lee
what does configure spit out when compiled with your options? does it say checking for libjpeg (needed by gd-1.8+)... yes checking for jpeg_read_header in -ljpeg... yes checking for gdImageCreateFromJpeg in -lgd... yes if not find out where your jpeg libs are [ie. /usr/local/lib] then change

Re: [PHP] using include_path with file_exists()

2001-02-20 Thread Ben Peter
Michael, the include_path is available via ini_get("include_path"). One could split that path by ":", append the filename to each path and check with file_exists(), true. I'm not sure whether this wouldn't be more expensive than using fopen(,,1). Have to check that. Thanks for the idea, Ben

[PHP-CVS] cvs: php4 /ext/satellite config.m4

2001-02-20 Thread David Eriksson
erikssonTue Feb 20 07:12:30 2001 EDT Modified files: /php4/ext/satellite config.m4 Log: Corrected typo in config.m4 Index: php4/ext/satellite/config.m4 diff -u php4/ext/satellite/config.m4:1.2 php4/ext/satellite/config.m4:1.3 ---

[PHP-CVS] cvs: php4 /ext/swf swf.dsp /win32 php_modules.dsw

2001-02-20 Thread Daniel Beulshausen
dbeuTue Feb 20 07:15:10 2001 EDT Removed files: /php4/ext/swf swf.dsp Modified files: /php4/win32 php_modules.dsw Log: no swf under win32 Index: php4/win32/php_modules.dsw diff -u php4/win32/php_modules.dsw:1.36

[PHP-CVS] cvs: php4 /ext/satellite object.c

2001-02-20 Thread David Eriksson
erikssonTue Feb 20 07:18:26 2001 EDT Modified files: /php4/ext/satellite object.c Log: Stop leaking ParameterType data Index: php4/ext/satellite/object.c diff -u php4/ext/satellite/object.c:1.4 php4/ext/satellite/object.c:1.5 ---

[PHP-CVS] cvs: php4 /ext/iconv iconv.dsp

2001-02-20 Thread Daniel Beulshausen
dbeuTue Feb 20 07:19:38 2001 EDT Modified files: /php4/ext/iconv iconv.dsp Log: define HAVE_LIBICONV Index: php4/ext/iconv/iconv.dsp diff -u php4/ext/iconv/iconv.dsp:1.1 php4/ext/iconv/iconv.dsp:1.2 --- php4/ext/iconv/iconv.dsp:1.1Wed Jan 31

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

2001-02-20 Thread Sam Leibowitz
An unsuccessful include will give you an error. An unsuccessful require will kill the program. Also: require() statements cannot be embedded inside conditionals. For example: ?PHP if ($something) { include("somefile.php") // this is okay. } if ($something) {

[PHP-CVS] cvs: php4 /ext/pgsql pgsql.c

2001-02-20 Thread Daniel Beulshausen
dbeuTue Feb 20 07:34:11 2001 EDT Modified files: /php4/ext/pgsql pgsql.c Log: added missing ELS_FETCH() Index: php4/ext/pgsql/pgsql.c diff -u php4/ext/pgsql/pgsql.c:1.91 php4/ext/pgsql/pgsql.c:1.92 --- php4/ext/pgsql/pgsql.c:1.91 Mon Feb 19 08:31:17

[PHP] file grabber help

2001-02-20 Thread Brian C. Doyle
Hello all, I need to write a script to grab files via a web port. Is there any way to do this?? -- 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] redirect if sql = nothing

2001-02-20 Thread Matt Davis
If my SQL returns no results then i want to redirect to a page saying no results etc but if results are found then I want it to continue on down the script how would i do this. Matt. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

[PHP-CVS] cvs: php4 /ext/satellite typemanager.c

2001-02-20 Thread David Eriksson
erikssonTue Feb 20 07:35:55 2001 EDT Modified files: /php4/ext/satellite typemanager.c Log: Patch for inherited interfaces by Daniel Stodden [EMAIL PROTECTED] Index: php4/ext/satellite/typemanager.c diff -u php4/ext/satellite/typemanager.c:1.2

Re: [PHP] redirect if sql = nothing

2001-02-20 Thread Joe Sheble (Wizaerd)
by checking the return value of mysql_num_rows() At 04:32 PM 2/20/01 +, Matt Davis wrote: If my SQL returns no results then i want to redirect to a page saying no results etc but if results are found then I want it to continue on down the script how would i do this. Matt. -- PHP General

[PHP] Display Format

2001-02-20 Thread Website4S
Hi, I`m using the following code to display the contents of a file. ? $filename = "category/category.inc"; $fd = fopen ($filename, "r"); $contents = fread ($fd, filesize ($filename)); fclose ($fd); $content = explode (",", $contents); for ($a=0;$acount($content);$a++){ printf("TRTDA

Re: [PHP-CVS] cvs: php4 /ext/standard array.c basic_functions.c php_array.h

2001-02-20 Thread Jason Greene
Well, My thoughts on this one were that if you are actually grabbing a key, people are more likely to trust that the returned key does in fact reference the value that was searched. Perhaps defaulting to strict is not a good idea, but to me it seemed logical, and I figured that if anyone else in

RE: [PHP] redirect if sql = nothing

2001-02-20 Thread Brian V Bonini
$sql = "select * from table where bla bla bla"; if(!isset($sql)) { do this; } else { do this; } I think ? -Brian ** -Original Message- From: Matt Davis [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 20, 2001 11:33 AM To: Php Mailing List

RE: [PHP] file grabber help

2001-02-20 Thread Brian V Bonini
Is this what you mean? $fp = fopen("http://www.domain.com/file.xxx", "a+"); -Brian -Original Message- From: Brian C. Doyle [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 20, 2001 11:27 AM To: [EMAIL PROTECTED] Subject: [PHP] file grabber help Hello all, I need to write a

[PHP] checkboxes sessions

2001-02-20 Thread kaab kaoutar
Hi folks! How can i do the following using php: in a page i have many checkboxes that were generated dynamically, the user may check many of them, i want that when a checkbox is checked, add it to a session variable ! i thaught of using javascript, but i can't use session variables in

[PHP] Adding a string and a numeric

2001-02-20 Thread Don
I know this is most assuredly in the manual and I have looked but either the search engine is not robust enough or my eyes require additional laser treatment. I have a string variable called "released" and an integer, 1. I wish to concatenate so that I get the result: "released1". How may I

RE: [PHP] redirect if sql = nothing

2001-02-20 Thread Matt Davis
I have put this code in but its not making any difference if ($num==0) { header("location: http://www.***/0/cambridgeshire/_shared/database_files/php_files/nor esults.htm"); } else {; } Matt. -Original Message- From:

[PHP] Where do i look up return status codes?

2001-02-20 Thread George Herson
How do i find out what the return status of an exec() executed command means? For example, i have the line $ciphertext = exec("perl /home/httpd/cgi-bin/passgen.pl $plaintext",$arr,$retstat); which makes $retstat = 126. thanks, geo -- PHP General Mailing List (http://www.php.net/) To

[PHP] Uploading files will it time out?

2001-02-20 Thread Brandon Orther
Hello, If I use a form to upload will it time out after 30m seconds ? When the php script runs for 30 seconds it shuts down and I was wondering if the uploading of the file counts for this. Thank you, Brandon Orther WebIntellects Design/Development

Re: [PHP-CVS] cvs: php4 /ext/standard array.c basic_functions.c php_array.h

2001-02-20 Thread Andrei Zmievski
On Tue, 20 Feb 2001, Jason Greene wrote: Well, My thoughts on this one were that if you are actually grabbing a key, people are more likely to trust that the returned key does in fact reference the value that was searched. Perhaps defaulting to strict is not a good idea, but to me it

Re: [PHP] Header (location: test.php);

2001-02-20 Thread Nuno Silva
Christopher Allen wrote: Hello, I am using the Header call in a script that has multiple submit buttons: if ($submit =1) { Header (location: test1.php); } if ($submit ==2) { Header(location: test2.php); } Should not the form varaibles be passed along to

[PHP] No result - need advice.

2001-02-20 Thread Kenneth R Zink II
I'm having problem with a php script. I get a valid insert statment echoed to the screen but I don't get a result from it. If I cut and paste into the SQL query box in PHPMyadmin, it insert fine, but it will not do it from the script. Through debuging (echoing to the screen), I have

Re: [PHP] No result - need advice.

2001-02-20 Thread Website4S
Try adding where the Values go "INSERT INTO memberstest (Name, ICQ, Location) VALUES ('', '$name', '$icq', '$loc', '$active', '$date', '$mlist', '$email', '$url', '$year', '$make', '$model', '', '$et', '$mph', '$six', '$track', '$engine', '$notes', '', '$pass', '$drive', '$cab',

RE: [PHP] Header (location: test.php);

2001-02-20 Thread Hoover, Josh
The answer is yes, you need to pass along your form variables. You could do this with the following: ?php $formVars = ""; //Use $HTTP_GET_VARS if form is a get type while(list($name,$value)=each($HTTP_POST_VARS)) { $formVars .= $name . "=" . $value . ""; } if($submit == 2)

[PHP] Get name of current function

2001-02-20 Thread Ide, Jim
Hi - Is there some way I can get the name of the currently executing function? For example: ?php function MyFunction () { echo "The currently executing function is: " . here ; } MyFunction(); ? I want this to produce: The currently executing function is: MyFunction() Is

[PHP] unlik by sending variabel?

2001-02-20 Thread Jan Grafström
Hi! I am trying to get a file deleted when I send a variabel with the value "delete". I have this file: - $message = ereg_replace("\r","", $message); $message = "listmed$message/mednam$name/nam/list; $fp = fopen (basename($PHP_SELF) . ".xml", "a"); fwrite ($fp, $string); fclose ($fp); -

[PHP] mailto ?

2001-02-20 Thread kaab kaoutar
Hi i have a page taht is generated dynamically and that the user may email! the question is how can the receiver receives it as "an html" file whatever email software he's using ? I thouhgt of using mailto but i need a form however i have no inputs to use it, it's worthless! Thanks

[PHP] mailto ?

2001-02-20 Thread kaab kaoutar
Hi i have a page taht is generated dynamically and that the user may email! the question is how can the receiver receives it as "an html" file whatever email software he's using ? I thouhgt of using mailto but i need a form however i have no inputs to use it, it's worthless! Thanks

[PHP] email a page as attachment

2001-02-20 Thread kaab kaoutar
Hi! how can i email from a page, that page as attachment ? thanks _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL

[PHP-CVS] cvs: CVSROOT / avail gen_acl_file.m4

2001-02-20 Thread Andrei Zmievski
andrei Tue Feb 20 10:23:17 2001 EDT Modified files: /CVSROOTavail gen_acl_file.m4 Log: Karma to phpdoc for Sam. Index: CVSROOT/avail diff -u CVSROOT/avail:1.87 CVSROOT/avail:1.88 --- CVSROOT/avail:1.87 Tue Feb 20 08:28:34 2001 +++ CVSROOT/avail

[PHP] Can you make a file empty?

2001-02-20 Thread Jan Grafström
Hi! I am trying to delete all text in a file. $yourfile = "file.txt"; $fp = fopen($yourfile,w) "is there any good code to put in here?" fclose($fp); Thanks for any help. Regards Jan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

[PHP] Postgresql session handling

2001-02-20 Thread Bolt Thrower
PHP 4.04pl1, PostgresQL 7.0.3 on a RedHat 6.2 system. I'm trying to get session data to be stored in a postgres table. I'm using the pgsql session handler from http://www.csh.rit.edu/~jon/projects/php/pgsql_session_handler/, and I think I've got it set up correctly, but I thought I'd ask here

[PHP] Terrible Hosting Experience

2001-02-20 Thread Thomas Deliduka
I just need to tell all of you about my terrible hosting experience with yourwebhost.com which owned by hostingventures.com which is also kinda owned by alabanza.com (same owners, I believe, different company) Anyway. I have several sites hosted for free with them because they USED to host

Re: [PHP] HTTP POST Question

2001-02-20 Thread Julian Wood
Hmmm, I'm sorry - I didn't see any mention of flash in this thread. That is a completely different story from what has been talked about so far. What do you mean you can't write the unlink code? You mean you want to delete a file somewhere from flash? That shouldn't be a problem - post from

RE: [PHP] Display Format

2001-02-20 Thread Robert V. Zwink
In Reply to: Firstly is there any way I can sort these in alphabetical order?? More importantly is there any way of formatting them so they display Paul Mark Tom Ade So they are in two columns in a table rather than one?? Thanks for any help Ade ? $filename = "category/category.inc"; $fd =

Re: [PHP] email a page as attachment

2001-02-20 Thread atom
how can i email from a page, that page as attachment ? http://www.phpwizard.net/resources/phpMisc/scripts/pretty/mail.php3 Bye, Atom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the

[PHP] ereg match problem

2001-02-20 Thread W.D.
I'm testing email address, but want to test not only characters but the @ sign and for .com, .net, .org, or .tv. How would I include all of these? $test = $email if( ereg("[a-zA-Z0-9]+)\@([a-zA-Z0-9]+)\.comhow would I include the rest?

Re: [PHP] PHP vs. FreeTDS

2001-02-20 Thread Michael Kimsal
Scott Fletcher wrote: Hi! I am installing the FreeTDS so that unix machine can use PHP to connect to MS-SQL Server using odbc_connect. I assume you mean mssql_connect, not odbc_connect. However, the direction is pretty tricky and it isn't much of a help in clarification. I have

[PHP] PHP vs. FreeTDS

2001-02-20 Thread Scott Fletcher
Hi! I am installing the FreeTDS so that unix machine can use PHP to connect to MS-SQL Server using odbc_connect. However, the direction is pretty tricky and it isn't much of a help in clarification. I have been wonder if I am suppose to use the sybase environment variable and library path.

[PHP] Re:Is there a PHP equivalent of DATE_FORMAT ?

2001-02-20 Thread Phil Daintree
See Date("format_string",timestamp); Phil Daintree Dux Industries Ltd - Ph: +64 (04) 567 8900 Fax: +64 (04) 567 8904 -- 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] PHP and SuEXEC?

2001-02-20 Thread Matthew Toledo
I am using an APACHE server that has SuEXEC turned on. For those of you who don't know what that is. It is a way of adding more security to your scripts. You set your CGI scripts to permission level 700. Even text files that need to be read by your CGI scripts can be set to 700. This way, no

Re: [PHP] Terrible Hosting Experience

2001-02-20 Thread richard merit
Actually alabanza hosts a number of "hosting" companies from their baltimore sp? location. About two weeks ago a "hosting" service I used went down, they use alabanza as well, down for almost two days. Then when it did come up, the permissions were all wrong and I couldn't change the files for

  1   2   >