[PHP] Downloads, headers and binary data

2001-01-19 Thread Juan Germano
Hi. I'm trying to write a script to download a mp3 file. I did this: $filesize=filesize($filename); header("Content-disposition: attachment;filename=".basename($filename)); header("Content-type: application/octetstream"); header("Content-Transfer-Encoding: binary"); header("Pragma: no-cache"); he

Re: [PHP] Downloads, headers and binary data

2001-01-19 Thread jeremy brand
your script is probably timing out. Try doing: set_time_limit(0); at the top of your script. Jeremy Jeremy Brand :: Sr. Software Engineer :: 408-245-9058 :: [EMAIL PROTECTED] http://www.JeremyBrand.com/Jeremy/Brand/Jeremy_Brand.html for more - - - - - - - - - - - - - - - - - - - - - - - - -

Re: [PHP]

2001-01-19 Thread Teodor Cimpoesu
Hi Alex! On Thu, 18 Jan 2001, Alex Black wrote: > xml problems? > > _what_ xml problems? > I was refering to whole story of using `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

Re: [PHP] Setcookie problem in ie 5.0

2001-01-19 Thread Krzysztof Dziekiewicz
On Fri, 8 Dec 2000, Rustam Nabirov wrote: > I'm using IE5.0 on Win98, it's as simple as it gets. But still I don't see > any cookies saved. As far as I understand, on this platform cookies get > saved in C:\WINDOWS\Cookies, and C:\WINDOWS\Temporary Internet Files has > only shortcuts to those coo

Re: [PHP] general CGI question

2001-01-19 Thread Brian Clark
Hello Hrishi, (H == "Hrishi") [EMAIL PROTECTED] writes: H> I need to know how to get apache to parse CGI output with the SSI H> parser (the [php] script will have includes, which need to go H> through mod_include). changing the mime-type to x-server-parsed or H> anything hooked by mod_include

Re: [PHP] File upload on linux

2001-01-19 Thread Brian Clark
Hello MacBane, (M == "MacBane") [EMAIL PROTECTED] writes: M> I have some file upload code but it is not woking on debian linux, M> could some one give me a hand M> $the_path is set some where else What is the value of $the_path? M> $path = "/var/www/cms/gentext/$section/$doctype/"; This

Re: [PHP] Error connecting to MySQL server

2001-01-19 Thread Brian Clark
Hello Rosen, (R == "Rosen") [EMAIL PROTECTED] writes: R> When I try to connect to MySQL server I get message "Can't connect R> to MySQL server (10060 )! Where's your code? Are you using someone else's application? Is mysqld even running? Is it /still/ running after you get that error? Are

Re: [PHP] Good Reads

2001-01-19 Thread Brian Clark
Hello Sean, (SB == "Sean Brown") [EMAIL PROTECTED] writes: SB> Does anyone have any suggestions on a good book for beginners. I SB> currently own "PHP3 Programming Browser-Based Applications" by SB> David Medinets. I have no regrets thus far on purchasing the book SB> but it seems to leave a l

Re: [PHP] Help with PHP Shell Scripting

2001-01-19 Thread Brian Clark
Hello Justin, (JY == "Justin Yu") [EMAIL PROTECTED] writes: JY> When I tried connecting to Postgres through a shell script that I JY> wrote, I get the following error: JY> "Fatal error: Call to undefined function: pg_connect()" Because you don't have pgsql (PostgreSQL) support built into you

Re: [PHP] Off The Topic But Please Help....

2001-01-19 Thread Brian Clark
Hello Statbat, (S == "Statbat") [EMAIL PROTECTED] writes: S> 1. In my htdocs folder, I am able to access any file which is in S> the htdocs folder but I am not able to access any file which in the S> sub folder of htdocs. It says file not found. Lets suppose If I S> have a test.php file in php

Re: [PHP] PDFLib and PHP and pdf_open_image_file

2001-01-19 Thread Brian Clark
Hello goood, (gg == "goood goood") [EMAIL PROTECTED] writes: gg> I have an problem with PDFLib and PHP. I'm trying to include gg> images in PDF file using pdf_open_image_file If in my source code gg> is line: gg> $o=pdf_open_image_file($pdf,"gif","pict.gif"); gg> i get the error: Cannot fi

Re: [PHP] temporary unsubscribe mailing list

2001-01-19 Thread Brian Clark
Hello Wen, (WNL == "Wen Ni Leong") [EMAIL PROTECTED] writes: WNL> I would like to unsubscribe the mailing list for a week which is WNL> effective from 20th of Jan 2001 to 28th of Jan 2001. I hope you WNL> can automatic reactive me into the mailing list after the 28th of WNL> Jan 2001. -- PH

Re: [PHP] Newbie : info/tut on XML and PHP

2001-01-19 Thread Brian Clark
Hello Rahul, (RB == "Rahul Bhide") [EMAIL PROTECTED] writes: RB> Can you give me pointers(read urls) to "Good Sites" on tutorials RB> or info from scratch on XML with PHP. http://www.phpbuilder.com/columns/justin2428.php3 http://www.phpbuilder.com/columns/joe2907.php3 http://www.phpbu

Re: [PHP] question on time-based function

2001-01-19 Thread Brian Clark
Hello Rudy, (RM == "Rudy McDaniel") [EMAIL PROTECTED] writes: RM> Anyone have any ideas on how to make a function reset every RM> 24-hours? For example, I have a function that grabs a random quote RM> from a file and selects a new one every time the page is reloaded. RM> What I want, however,

RE: [PHP] Good Reads

2001-01-19 Thread Boaz Yahav
Try the books section --> PHP : http://www.weberdev.com/index.php3?GoTo=Shopping.php3 -Original Message- From: Sean Brown [mailto:[EMAIL PROTECTED]] Sent: Friday, January 19, 2001 7:18 AM To: Php-General@Lists. Php. Net Subject: [PHP] Good Reads Does anyone have any suggestions on a goo

RE: [PHP] below10host.com as webhost?

2001-01-19 Thread Boaz Yahav
Look no further!!! http://www.weberdev.com/phenominet/prices.htm -Original Message- From: Jeff Lacy [mailto:[EMAIL PROTECTED]] Sent: Friday, January 19, 2001 7:11 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] below10host.com as webhost? I'm sorry, but why do you say webservpro doesn't ma

RE: [PHP] Web hosting for PHP/MySQl development

2001-01-19 Thread Boaz Yahav
The best around!!! http://www.weberdev.com/phenominet/prices.htm -Original Message- From: Chris Lott [mailto:[EMAIL PROTECTED]] Sent: Friday, January 19, 2001 3:37 AM To: PHP General Subject: [PHP] Web hosting for PHP/MySQl development Any recommendations for a good, savvy host for doi

RE: [PHP] Web hosting for PHP/MySQl development

2001-01-19 Thread WreckRman2
I would be willing to host sites for $10 a month with 100 meg, 25 Email, yourdomain.com, FP2000 if you like, PHP 4.04 with MySQL. Contact me for more information... No sites with extremely large bandwidth requirements please. David Smith -Original Message- From: Boaz Yahav [mailto:[EMA

Re: [PHP] Error connecting to MySQL server

2001-01-19 Thread Rosen
When I connect via WEB based admin, there is no problems ! The MySQL Server is remote. But when I install on my computer software ( Artronoc Admin, DbTools ) I receive error "Can't connect to MySQL server on host . (10060). Please Help ! Thanks, Rosen Marinov "Brian Clark" <[EMAIL PROTECT

Re: [PHP] Error connecting to MySQL server

2001-01-19 Thread Pavel Kalian
Isn't it possible that you're just not allowed to connect to the MySQL host remotely? Pavel - Original Message - From: "Rosen" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, January 19, 2001 10:55 AM Subject: Re: [PHP] Error connecting to MySQL server > When I connect via WE

Re: [PHP] Error connecting to MySQL server

2001-01-19 Thread Brian Clark
Hello Rosen, (R == "Rosen") [EMAIL PROTECTED] writes: R> When I connect via WEB based admin, there is no problems ! The R> MySQL Server is remote. But when I install on my computer software R> ( Artronoc Admin, DbTools ) I receive error "Can't connect to MySQL R> server on host . (10060).

Re: [PHP] stripping the keywords from a search engine... again...

2001-01-19 Thread Robin Vickery
> "BC" == Brian Clark <[EMAIL PROTECTED]> writes: > Hello Dallas, > (DK == "Dallas Kropka") [EMAIL PROTECTED] writes: DK> Posted earlier but got no response so here it is again... > I gave you a quick explanation of one way to do it earlier, but I > know of no tutorials off the to

Re: [PHP] a text formating & cpu question

2001-01-19 Thread Christian Reiniger
On Thursday 18 January 2001 23:05, Noel Akins wrote: > Question 2: > Is there a way for php to detect the cpu speed of a users computer? If you're on a Linux machine you can read /proc/cpuinfo and pick out the speed entry. -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) ...to p

[PHP] problem with file upload

2001-01-19 Thread John LYC
hi, i have a situation where i need to upload 3 img file within an array that is within another array. 2 di-array i have no problem with only variable type and value but its not working with type="file". here's my code "; //this is working print ""; //this is not } } ?> i can get

[PHP] Datasets

2001-01-19 Thread Bruno Freire
Hi My name is Bruno, I'm in Brazil and I'm new in PHP... I wanna know how can I roll in the records in a dataset. Like... Move First Move last Move next.os something like this Thanks..

[PHP] PATH_TRANSLATED doesn't work correctly !!!

2001-01-19 Thread Heino H. Gehlsen
I'm trying to use the clasic CGI environment varable PATH_TRANSLATED via Apache's Action directive (directing all requests through a script). But PHP messes PATH_TRANSLATED up and all I end up with a copy of SCRIPT_FILENAME ! I'm using PHP 4.0.3pl1 on a standard Debian 2.2r2 installation with Ap

Re[2]: [PHP] RE: Ethics question...

2001-01-19 Thread Max A. Derkachev
Hello Randy, Thursday, January 18, 2001, 9:49:37 PM, you wrote: RJ> is there any benchmarks or proof that I should host a high traffic site on a RJ> FREEBSD/APACHE instead of a redhat Linux/Apache server? I can't show the figures, but I gave the feeling that FreeBSD behaves better under heavy l

[PHP] session_start problem

2001-01-19 Thread Markus H. Maussner
hi... every time i do a session_start(); with php i get in the first two lines of the output this &PHPSESSID=ba606b5a90dbb4410417b4c612aaf1c9"">Your data Contact LOGOUT &PHPSESSID=ba606b5a90dbb4410417b4c612aaf1c9"">Contact LOGOUT do i do something wrong ? can i put this message s

Re: [PHP] Perl-like DBI and generic SQL

2001-01-19 Thread mlemos
Hello Dean, Dean Hall wrote: > > Is metabase in the "DB" subdirectory of PEAR? No, Metabase is available for free in a much larger PHP component site: the PHP Classes Repository. Almost 4.000 real PHP users have downloaded it from here: http://phpclasses.UpperDesign.com/browse.html/package/20

[PHP-CVS] cvs: php4 /ext/sablot php_sablot.h sablot.c

2001-01-19 Thread Jani Taskinen
sniper Fri Jan 19 03:44:12 2001 EDT Modified files: /php4/ext/sablotphp_sablot.h sablot.c Log: @- Added xslt_set_scheme_handler() function ([EMAIL PROTECTED]) Index: php4/ext/sablot/php_sablot.h diff -u php4/ext/sablot/php_sablot.h:1.12 php4/ext/sablot/

[PHP] References in an array

2001-01-19 Thread Ruppel, Mathias
Hi there, I'm just a beginner in programming PHP; so my problem is probably a mistake in my thinking. I'm using some arrays to display information of an internal news-server in a web-browser, like $overview = imap_fetch_overview($mbox, "1:$last", 0); $IDs = array(); $i = 0; foreach($overview

[PHP] PHP 4 cgi upgrade problem

2001-01-19 Thread Hrishi
Hello, We have a problem with running php4 as the cgi handler for php requests. Our setup was RH6.2/i586//Apache1.3.3(compiled locally) using PHP4.0.1pl2 as cgi(compiled locally), with the .htaccess looking like: AddType application/x-httpd-php .php .php3 .php4 .phtml AddType application/x-htt

[PHP] how to trigger incomming mail

2001-01-19 Thread Jeroen Olthof
hi, I'm building a online shop where people are able to pay online. The pay part is done by a external company who sends mail to a specifeid mail address when orders are placed and when orders are succesfully payed. both mails contains a order nummer in subject. now what I want is to automaticly

[PHP] Downloading PHP 4.0.4pl1

2001-01-19 Thread AFONSO Margarida Ramos
Dear all I can not download the PHP 4.0.4pl1 - 13 January 2001 (3.64 Mb CGI binary plus server API versions for Apache, AOL server, ISAPI and NSAPI. MySQL support built-in, ma

SV: [PHP] password()

2001-01-19 Thread Håkan Askengren
For me it´s plain text in Mysql table. In a project with < 500 users it is easy to to read forgotten passwords... Instead of giving away a new. /Håkan "Chris Lee" <[EMAIL PROTECTED]> skrev i diskussionsgruppsmeddelandet:9409fm$mg$[EMAIL PROTECTED] > Im curious to see how other php developers stor

[PHP-CVS] cvs: php4 /pear/HTML IT.php ITX.php

2001-01-19 Thread Sebastian Bergmann
sbergmann Fri Jan 19 05:37:03 2001 EDT Modified files: /php4/pear/HTML IT.php ITX.php Log: Whitespace only. Index: php4/pear/HTML/IT.php diff -u php4/pear/HTML/IT.php:1.2 php4/pear/HTML/IT.php:1.3 --- php4/pear/HTML/IT.php:1.2 Thu Jan 18 12:43:25 20

Re: [PHP] Downloads, headers and binary data

2001-01-19 Thread Rick Hodger
"Juan Germano" <[EMAIL PROTECTED]> wrote in message 004b01c081f3$46be8160$ddf90dd1@juangerm">news:004b01c081f3$46be8160$ddf90dd1@juangerm... > Hi. I'm trying to write a script to download a mp3 file. I did this: > > $filesize=filesize($filename); > header("Content-disposition: attachment;filename

SV: [PHP] Cookies still store old value(Help!!)

2001-01-19 Thread Håkan Askengren
Hi I have got a similar problem with session handling. As session handling is handled by cookies this should be the same problem. I handle (as Hendry in a similar way does) user right with session handling. IE ver 5 is no problem. I can have as many session (browers) running as I want. All sessio

[PHP] help - templating?

2001-01-19 Thread Jaxon
I think the code below is pretty simple... Can anyone suggest ANY way to do the bit in my last comment block??? thanks in advance! Jaxon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact t

[PHP] fputs() to save mysql db file

2001-01-19 Thread Lawrence Blades
I am trying to make a tab delimited file of a mysql table so I can open it with Excel. I select the data - 40 fields, 808 records no prob. I view a mysql_num_rows() query to make sure it selects all records; no prob. I create a tab delimited format: $result = mysql_query("SELECT * FROM $database"

[PHP] <> Flash + PHP <>

2001-01-19 Thread Abe Asghar
Hey Guys, Anybody have any good links for Flash with PHP simple stuff. Any tutorials or general links that maybe useful. Thanks, Abe -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the l

Re: [PHP] Smarty bug fix 1.0a

2001-01-19 Thread Monte Ohrt
A bug was fixed that caused the templates to be recompiled every time. Monte Ohrt wrote: > > Release 1.0. Please welcome Smarty to the PHP template engine arena :-) > > Inventors: > Monte Ohrt > Andrei Zmievski > > http://www.phpinsider.com/php/code/Smarty/ -- PHP General Mailing List (http:

[PHP-CVS] cvs: php4 / EXTENSIONS /ext/bz2 EXPERIMENTAL /ext/crack CREDITS EXPERIMENTAL /ext/domxml EXPERIMENTAL /ext/dotnet EXPERIMENTAL /ext/ingres_ii EXPERIMENTAL /ext/openssl EXPERIMENTAL /ext/qtdom EXPERIMENTAL /ext/sablot EXPERIMENTAL /ext/satellite EXPERIMENTAL /ext/sockets EXPERIMENTAL /ext/vpopmail EXPERIMENTAL

2001-01-19 Thread Jani Taskinen
sniper Fri Jan 19 05:43:35 2001 EDT Added files: /php4/ext/bz2 EXPERIMENTAL /php4/ext/crack EXPERIMENTAL CREDITS /php4/ext/domxmlEXPERIMENTAL /php4/ext/dotnetEXPERIMENTAL /php4/ext/ingres_ii EXPERIMENTAL /php4/ext/openssl

[PHP] Date/Time Formatting

2001-01-19 Thread Jamie
I'm fairly new to SQL and PHP and I'm haveing trouble useing the Date functions of Both Systems, so I'd be greatfull if someone can help. What I'm trying to do is have an 'administrator' be able to enter info through a form to a mySQL database. Then on a seperate page have the info reread and disp

[PHP] ASP Guy Looking for "Select Case" equivalent

2001-01-19 Thread Karl J. Stubsjoen
Hello, What is the equivalent command to Select Case as in: Select case 10 + 2 case 10 'nope case 11 'nope case 12 'yep case > 13 'yep - but case 12 comes first! end select -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail

Re: [PHP] ASP Guy Looking for "Select Case" equivalent

2001-01-19 Thread Adam Wright
switch adamw - Original Message - From: "Karl J. Stubsjoen" <[EMAIL PROTECTED]> To: "PHP Mailing List" <[EMAIL PROTECTED]> Sent: Friday, January 19, 2001 3:51 PM Subject: [PHP] ASP Guy Looking for "Select Case" equivalent > Hello, > > What is the equivalent command to Select Case as

Re: [PHP] Not quite relevant question about coding and query

2001-01-19 Thread Shaun Thomas
On Fri, 19 Jan 2001, Jacky@lilst wrote: > Can I just write a query to retrive UserID right after I have inserted > user detail into Usertable? and then assign into a variable and use > that value to insert into UserID field in another table? > like this: > > $getID = "select userID from user"; >

Re: [PHP] ASP Guy Looking for "Select Case" equivalent

2001-01-19 Thread Rasmus Lerdorf
http://php.net/switch On Fri, 19 Jan 2001, Karl J. Stubsjoen wrote: > Hello, > > What is the equivalent command to Select Case as in: > > Select case 10 + 2 > case 10 > 'nope > case 11 > 'nope > case 12 > 'yep > case > 13 > 'yep - but case 12 comes

[PHP] ENC: Datasets

2001-01-19 Thread Bruno Freire
Hi My name is Bruno, I'm in Brazil and I'm new in PHP... I wanna know how can I roll in the records of a dataset. Like... Move First Move last Move next.os something like this Move previous Thanks..

Re: [PHP] Re: PHP connecting to FIlemaker Database

2001-01-19 Thread Jerry
In article <20010118202212.PEYN8655.femail8.sdc1.sfba.home.com@localhost>, [EMAIL PROTECTED] (Michael Stearne) wrote: > True, but what if the poster has a FMP front-end to be used with the Web > version? mySQL is non-existent on the desktop. And FMP makes building > front-ends for destop ap

RE: [PHP]GD, PHP and Apache troubles

2001-01-19 Thread Kees Hoekzema
hello all, Rasmus, thanx for the advice you gave me :) I had to alter two of the Makefiles and the libphp4.module file. but now, finnally, it worked :D thank you very much, Kees Hoekzema [EMAIL PROTECTED] -Oorspronkelijk bericht- Van: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]] Verzonden:

Re: [PHP] PATH_TRANSLATED doesn't work correctly !!!

2001-01-19 Thread Adam Wright
Its a PHP bug, I've attached a patch (that they persistantly ignore :). adamw - Original Message - From: "Heino H. Gehlsen" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, January 19, 2001 10:42 AM Subject: [PHP] PATH_TRANSLATED doesn't work correctly !!! I'm trying to use th

php-general Digest 19 Jan 2001 16:23:51 -0000 Issue 464

2001-01-19 Thread php-general-digest-help
php-general Digest 19 Jan 2001 16:23:51 - Issue 464 Topics (messages 35560 through 35636): Re: Variable method 35560 by: Steve Edberg Re: Ethics question... 35561 by: John Hinsley 35567 by: Michael A. Peters 35577 by: jeremy brand 35578 by: Rasmus Le

[PHP] Integer division

2001-01-19 Thread Todd Cary
What is the syntax for dividing 7 by 2 and getting 3; not 3.5? Todd -- Todd Cary Ariste Software [EMAIL PROTECTED] -- 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] Integer division

2001-01-19 Thread Boget, Chris
> What is the syntax for dividing 7 by 2 and getting 3; not 3.5? you can use: $intVar = ((int)( 7 / 2 )); Chris

[PHP-CVS] cvs: php4 /main rfc1867.c

2001-01-19 Thread Sascha Schumann
sas Fri Jan 19 07:39:35 2001 EDT Modified files: /php4/main rfc1867.c Log: Make the code match the comment. Prior to this change, the upload code tried to add mangled names to the global HTTP_POST_FILES array, resulting in all kind of weird behaviour.

[PHP] Form Problems

2001-01-19 Thread Karl J. Stubsjoen
I'm having troubles : ( I can't seem to figure out how to retrieve the posted data. I'm trying this: $HTTP_POST_VARS["Login"] ! WAIT ! as I write this, I'm guesing that maybe my problem is *scope* (and not the mouthwash). I'm going to try that right now, set the above var to global within that

Re: [PHP-CVS] cvs: php4 /main rfc1867.c

2001-01-19 Thread Rasmus Lerdorf
> - is_arr_upload = (start_arr = >strrchr(namebuf,'[')) && > + is_arr_upload = (start_arr = >strchr(namebuf,'[')) && Yes, this makes more sense. -Rasmus -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, e-ma

[PHP] i should have been clearer

2001-01-19 Thread Slappy Smith
>Something along the lines of this?: > >"X-Powered-By: PHP/4.0.2-dev Content-type: text/html" > >If so, stick this at the top of your script(s): > >#!/path/to/php -q > >(obviously change the /path/to/php) This is my error: Warning: Sybase: Server message: Changed database context to 'foobar'. (s

Re: [PHP-CVS] cvs: php4 /main rfc1867.c

2001-01-19 Thread Sascha Schumann
On Fri, 19 Jan 2001, Rasmus Lerdorf wrote: > > - is_arr_upload = (start_arr = >strrchr(namebuf,'[')) && > > + is_arr_upload = (start_arr = >strchr(namebuf,'[')) && > > Yes, this makes more sense. Does anyone mind, if I bum

[PHP-CVS] cvs: php4 / NEWS

2001-01-19 Thread Derick Rethans
derick Fri Jan 19 08:03:23 2001 EDT Modified files: /php4 NEWS Log: - Added a notice about the wordwrap function fix #- suggested by Jani for people depending on the buggy behaviour Index: php4/NEWS diff -u php4/NEWS:1.563 php4/NEWS:1.564 --- php4/N

[PHP] is it possible to communicate javascript and php?

2001-01-19 Thread Evelio Martinez
I would like to know if it possible to pass in any way some values from javascript functions to php variables ? Any FAQ? Thanks -- Evelio Martínez Testanet. Dept. desarrollo software. Av. Reino de Valencia, 15 - 5 46005 Valencia (Spain) Tel: +34 96 395 90 00 Fax: +34 96 316 23 19

[PHP] Test - please ignore

2001-01-19 Thread Jason Bouwmeester
Test

[PHP] Function / String Problem

2001-01-19 Thread Karl J. Stubsjoen
Okay, what is wrong with this: echo "...are you logged in: $LoggedIn()"; // outputs:...are you logged in: () Function is: function LoggedIn(){ global $HTTP_POST_VARS if ($HTTP_POST_VARS["Login"] == "PHPIsCool") {return "YES";} else {return "NO";} }

RE: [PHP] Function / String Problem

2001-01-19 Thread Boget, Chris
>echo "...are you logged in: $LoggedIn()";> // outputs:...are you logged in: () > > Function is: > function LoggedIn(){ > global $HTTP_POST_VARS > if ($HTTP_POST_VARS["Login"] == "PHPIsCool") > {return "YES";} > else > {return "NO";} > } Change your

[PHP-CVS] cvs: php4 /main php.h

2001-01-19 Thread Sascha Schumann
#endif -#define PHP_API_VERSION 19990421 +#define PHP_API_VERSION 20010119 #define YYDEBUG 0 -- PHP CVS 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]

Re: [PHP-CVS] cvs: php4 /main rfc1867.c

2001-01-19 Thread Andi Gutmans
Are you talking about accessing it from a C extension or from a PHP script? Because I don't think it's accessible from a PHP script. Andi At 04:50 PM 1/19/2001 +0100, Sascha Schumann wrote: >On Fri, 19 Jan 2001, Rasmus Lerdorf wrote: > > > > - is_arr_upload =

Re: [PHP] Function / String Problem

2001-01-19 Thread Shawn Blaylock
Try this: echo "...are you logged in: " . LoggedIn() . ""; The reason it wasn't working is because it thought LoggedIn was a variable and () was part of the echo statement. "Karl J. Stubsjoen" wrote: > > Okay, what is wrong with this: > >echo "...are you logged in: $LoggedIn()"; > //

[PHP] Mail Syntax changing problem

2001-01-19 Thread Todd H MacPherson
I use the following syntax on one site to get the names in the email message and it works fine: mail("$we_to<$we_demail>", "$we_subject", StripSlashes($message), "From: $we_from<$we_semail>"); and it works BUT On another site I must change it as such to get it to work: mail("$we_to", "$we_subj

Re: [PHP] ENC: Datasets

2001-01-19 Thread Ignacio Vazquez-Abrams
On Fri, 19 Jan 2001, Bruno Freire wrote: > > Hi My name is Bruno, I'm in Brazil and I'm new in PHP... > > > I wanna know how can I roll in the records of a dataset. > Like... > Move First > Move last > Move next.os something like this > Move previous > > Thanks.. > Move Next is simple; j

Re: [PHP] Running java under php4 (PHP4 ext/java)

2001-01-19 Thread Alex Akilov
Fraser MacKenzie wrote: > Alex, Ok...so far, I have progress. I have PHP recognizing Java... or at > least, phpinfo() does. > > Now, when I try to do a new Java("class"); > > I get the following error: > > Fatal error: Unable to load Java Library > >/home/local/java/jdk1.2.2/jre/lib/i386/classi

[PHP-CVS] cvs: php4 / EXTENSIONS

2001-01-19 Thread Sam Liddicott
samjam Fri Jan 19 08:12:36 2001 EDT Modified files: /php4 EXTENSIONS Log: Added muscat to EXTENSIONS as it should be there all along PR: Submitted by: Reviewed by: Obtained from: Index: php4/EXTENSIONS diff -u php4/EXTENSIONS:1.14 php4/EXTENSI

Re: [PHP-CVS] cvs: php4 /main rfc1867.c

2001-01-19 Thread Sascha Schumann
On Fri, 19 Jan 2001, Andi Gutmans wrote: > Are you talking about accessing it from a C extension or from a PHP script? > Because I don't think it's accessible from a PHP script. C++ extension. - Sascha -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTE

Re: [PHP-CVS] cvs: php4 / EXTENSIONS

2001-01-19 Thread Jani Taskinen
On Fri, 19 Jan 2001, Sam Liddicott wrote: > --- >+EXTENSION: muscat >+PRIMARY MAINTAINER: Sam Liddicott <[EMAIL PROTECTED]> >+MAINTENANCE: Maintained >+STATUS: Working >+SINCE:

[PHP] "but what if.." Function / String Problem

2001-01-19 Thread Karl J. Stubsjoen
What if I want the function to be processed within the " " quotes? Same as a variable might be interopelated? IOW, can I call a function without concantenating the function together with the string? *being a little stubborn* - Original Message - From: "Karl J. Stubsjoen" <[EMAIL PROTE

Re: [PHP] ENC: Datasets

2001-01-19 Thread mlemos
Hello Bruno, Bruno Freire wrote: > > Hi My name is Bruno, I'm in Brazil and I'm new in PHP... > > I wanna know how can I roll in the records of a dataset. > Like... > Move First > Move last > Move next.os something like this > Move previous You may want to try this PHP Class that does

RE: [PHP] "but what if.." Function / String Problem

2001-01-19 Thread Boget, Chris
> What if I want the function to be processed within the " " > quotes? Same as a variable might be interopelated? IOW, > can I call a function without concantenating the function > together with the string? > *being a little stubborn* No. Why would you want to? You *might* be able to do it

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

2001-01-19 Thread Jani Taskinen
sniper Fri Jan 19 08:52:41 2001 EDT Modified files: /php4/ext/standard image.c Log: @- Added URL support for getimagesize() function (Jani) # tested with all imagetypes. Also the iptc works. Index: php4/ext/standard/image.c diff -u php4/ext/standard/ima

Re: [PHP] "but what if.." Function / String Problem

2001-01-19 Thread Shawn Blaylock
It won't work even with single quotes. It'll just echo out LoggedIn() as part of the string. "Boget, Chris" wrote: > > > What if I want the function to be processed within the " " > > quotes? Same as a variable might be interopelated? IOW, > > can I call a function without concantenating the f

RE: [PHP] "but what if.." Function / String Problem

2001-01-19 Thread Boget, Chris
> It won't work even with single quotes. It'll just echo out > LoggedIn() as part of the string. Yeah, I didn't think so. But I knew that '' behaves differently than "". I just wasn't sure of the exact details of the differences. Chris

[PHP] RE: unserialize() unexpectedly returns a boolean

2001-01-19 Thread TR Henigson
My original e-mail, unanswered, is referenced below. I am in serious need of HELP. To prevent the $SESSION variable from getting set to a boolean, I wrote the following loop with the idea that if the error happened in unserializing the data in the database, I would simply query the database again

Re: [PHP] "but what if.." Function / String Problem

2001-01-19 Thread Shawn Blaylock
Yep. I think the only difference is the way it handles variable interpolation, but I'm not entirely sure on that one. "Boget, Chris" wrote: > > > It won't work even with single quotes. It'll just echo out > > LoggedIn() as part of the string. > > Yeah, I didn't think so. But I knew that '' beh

Re: [PHP] i should have been clearer

2001-01-19 Thread mwaples
Slappy Smith wrote: > > >Something along the lines of this?: > > > >"X-Powered-By: PHP/4.0.2-dev Content-type: text/html" > > > >If so, stick this at the top of your script(s): > > > >#!/path/to/php -q > > > >(obviously change the /path/to/php) > > This is my error: > > Warning: Sybase: Server

Re: [PHP] Date/Time Formatting

2001-01-19 Thread Ignacio Vazquez-Abrams
On Fri, 19 Jan 2001, Jamie wrote: > I'm fairly new to SQL and PHP and I'm haveing trouble useing the Date > functions of Both Systems, so I'd be greatfull if someone can help. > What I'm trying to do is have an 'administrator' be able to enter info > through a form to a mySQL database. Then on a

Re: [PHP] "but what if.." Function / String Problem

2001-01-19 Thread Ignacio Vazquez-Abrams
On Fri, 19 Jan 2001, Shawn Blaylock wrote: > Yep. I think the only difference is the way it handles variable > interpolation, but I'm not entirely sure on that one. > > "Boget, Chris" wrote: > > > > > It won't work even with single quotes. It'll just echo out > > > LoggedIn() as part of the strin

Re: [PHP] Running java under php4 (PHP4 ext/java)

2001-01-19 Thread Fraser MacKenzie
Ok. I have done what you said, but I am now getting: Fatal error: Unable to load Java Library /home/local/java/jdk1.2.2/jre/lib/i386/libjava.so, error: libhpi.so: cannot open shared object file: No such file or directory in /home/rondaks_portal/httpd/docs/k2test/index.php3 on line 34 Fraser Mac

Re: [PHP] Datasets

2001-01-19 Thread Marcelo Gulin
Hi Bruno! what database are you using? for mysql, you can use mysql_data_seek function. regards Marcelo Gulin Bruno Freire escribió: > > Hi My name is Bruno, I'm in Brazil and I'm new in PHP... > > I wanna know how can I roll in the records in a dataset. > Like... > Move First > Mov

[PHP] makerpm

2001-01-19 Thread Lou Spironello
Has anyone used the makerpm script in supplied with the tarbar php distribution from snap.php.net? If anyone has, do you know where the documentation is? Thank you. Lou Spironello -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional command

Re: [PHP] RE: unserialize() unexpectedly returns a boolean

2001-01-19 Thread Ignacio Vazquez-Abrams
On Fri, 19 Jan 2001, TR Henigson wrote: > My original e-mail, unanswered, is referenced below. I am in serious > need of HELP. > > To prevent the $SESSION variable from getting set to a boolean, I > wrote the following loop with the idea that if the error happened > in unserializing the data in t

Re: [PHP] "but what if.." Function / String Problem

2001-01-19 Thread Shawn Blaylock
O yeah! Thanks for pointing that out! =) Ignacio Vazquez-Abrams wrote: > > On Fri, 19 Jan 2001, Shawn Blaylock wrote: > > > Yep. I think the only difference is the way it handles variable > > interpolation, but I'm not entirely sure on that one. > > > > "Boget, Chris" wrote: > > > > > > > I

[PHP] Migrating from PHP3 to PHP4 issues

2001-01-19 Thread James Atkinson
I'm working on a very large project that has been built in PHP 3. I've been charged with the task of moving it over to PHP4. So far everything has been going swimmingly (well, except that I forgot to compile PHP 4 --with-oci8 insted of --with-oracle). However, I've run into a couple of wierd issu

Re: [PHP] session_start problem

2001-01-19 Thread Ignacio Vazquez-Abrams
On Fri, 19 Jan 2001, Markus H. Maussner wrote: > hi... > > every time i do a session_start(); with php i get in the first two lines > of the output this > > &PHPSESSID=ba606b5a90dbb4410417b4c612aaf1c9"">Your data Contact > LOGOUT > &PHPSESSID=ba606b5a90dbb4410417b4c612aaf1c9"">Contact

Re: [PHP] Recompile GD ??

2001-01-19 Thread Richard Lynch
>How can I do it ??? I installed jpeg-6b, and I readed that before recompile PHP(with option : --with-jpeg-dir=/.../jpeg-6b), >I must recompile gd, its really necessary ? If si, how recompile gd. There should be instructions in the GD source code directory. By Day:

Re: [PHP] problems creating a png image from an array{HELP}

2001-01-19 Thread Richard Lynch
> I have a txt file as input.This file has the coordinates for a gas > network.With php I am creating an array with the above coordinates and then > I create from the array the image from the network.When the txt file is > >21Kb there is no image, else all works perfect{with a smaller txt file).I

Re: [PHP] problem with file upload

2001-01-19 Thread Richard Lynch
> for ($i=0 ; $i < 4 ; $i++) > { > file://do something > > for ($k=0 ; $k < 3 ; $k++) >{ > print " value=\"".$K."\" >"; file://this is working > print ""; file://this is > not >} > } For FORMs, files as arrays were added in later, and then 2-D arrays came after th

Re: [PHP] Ms SQL Error with php3.0

2001-01-19 Thread Richard Lynch
> Fatal error: Call to unsupported or undefined function > mssql_connect() in C:\HTTPD\HTDOCS\mssql.php3 on line > 3 > > I have uncommented the ; in the php3.ini file. Is that DLL actually in your php directory?... By Day:|By Night: Don't miss the Zend Web St

Re: [PHP] Datasets

2001-01-19 Thread Richard Lynch
> Hi My name is Bruno, I'm in Brazil and I'm new in PHP... > > > I wanna know how can I roll in the records in a dataset. > Like... > Move First > Move last > Move next.os something like this Depends on which database you use... Assuming it's MySQL, you have http://php.net/mysql_fetch_ro

Re: [PHP] References in an array

2001-01-19 Thread Richard Lynch
> $overview = imap_fetch_overview($mbox, "1:$last", 0); > $IDs = array(); > $i = 0; > > foreach($overview as $val){ > $IDs[$i][0] = $val->message_id; > $IDs[$i][1] = &$val; > $i++; > } > > echo ""; > foreach($IDs as $val){ > echo "" . $val[1]->subject . ""; > } > echo ""; > > Unfor

Re: [PHP] how to trigger incomming mail

2001-01-19 Thread Richard Lynch
> on this mail I want to trigger mail incomming on this adres so I can start a > php script that filters this standaard mail getting the order code and put Ideally you've got PHP compiled as a CGI as well as a Module. The trigger part is in your procmail filters, which I've never done, so I can'

Re: [PHP] Date/Time Formatting

2001-01-19 Thread Richard Lynch
> Also I'd like to if possible to be able to enter and display the date in > Australian / European Time format (DD,MM,) > I'm currently entering it on the form using three text fields and then > rearanging them to the Format in mySQL and indserting it as a string, but I > don't know how to 'br

  1   2   3   >