Re: [PHP] forcing pfds to download

2002-06-26 Thread Jason Wong
On Wednesday 26 June 2002 14:12, Peter wrote: I know tis a pain in the butt to do .. but wouldn't it be easier if you wanted to force a down load to zip the file(s) first? that way making them down load the gipped file? That's still no guarantee as some browsers are able to open zip files as

[PHP] Re: Testing PHP on a local machine

2002-06-26 Thread Craig
Thanks for pointing me in the right direction However, just have a few other questions:- Do i need to install apache if i use the windows self extracting version? Can all this be also done on a laptop? Thanks for all the advice Craig Craig [EMAIL PROTECTED] wrote in message [EMAIL

Re: [PHP] forcing pfds to download

2002-06-26 Thread Christian
Thanx, but I don't have a choice, The client uploads them as a pdf and I need to keep it simple for end users. Plus I'd still love to know how it's done. Peter wrote: I know tis a pain in the butt to do .. but wouldn't it be easier if you wanted to force a down load to zip the file(s) first?

[PHP] MySQL query time

2002-06-26 Thread Bharath Bhushan lohray
Is there a way to find the time that mySQL took to perform a query. like the one shown when you perform it on the console mode(0.09 sec or so) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] mysql Query time

2002-06-26 Thread Bharath Bhushan lohray
Is there a way to find the time that mySQL took to perform a query. like the one shown when you perform it on the console mode(0.09 sec or so) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Weird error!!

2002-06-26 Thread Bharath Bhushan lohray
Bad file descriptor is generally when there is a fault with the disk... try on some other server... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Easy Date MySQL Question...

2002-06-26 Thread Jesper Brunholm
John Holmes wrote: I have searched the php.net and don't know where to look for the code Yes? - but you did not try searching with the keyword date or how? Even a search in Google with php date returns the manual's page with date() as first response... BUT the mysql-manual:

[PHP] MySQL Problem with PHP

2002-06-26 Thread BB
I am using PHP and MySQL on a 2k dev box to be uploaded to a linux box I have a piece of SQL INSERT INTO `contracts` (`key`, `content`) VALUES (1,'blah blah blah character 39 is a single speach mark '+CHAR(39)+' blah blah blah') Instead of inserting: 'blah blah blah character 39 is a single

[PHP] Re: MySQL Problem with PHP

2002-06-26 Thread David Robley
In article [EMAIL PROTECTED], [EMAIL PROTECTED] says... I am using PHP and MySQL on a 2k dev box to be uploaded to a linux box I have a piece of SQL INSERT INTO `contracts` (`key`, `content`) VALUES (1,'blah blah blah character 39 is a single speach mark '+CHAR(39)+' blah blah blah')

[PHP] Re: MySQL Problem with PHP

2002-06-26 Thread BB
I just preg_replace(/\'/,\',$text) and all was good :o) David Robley [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... In article [EMAIL PROTECTED], [EMAIL PROTECTED] says... I am using PHP and MySQL on a 2k dev box to be uploaded to a linux box I have a

[PHP] Deleting a read-only file (Windows)

2002-06-26 Thread Neil Freeman
Hi there, I'm trying to delete a file using PHP's unlink() function (on Windows). This works fine on writable files but fails when trying to delete read-only files. How can I delete read-only files? Is there a function available to change the permissions? Any help greatly appreciated. Neil

[PHP] Re: Weird error!!

2002-06-26 Thread David Robley
In article [EMAIL PROTECTED], [EMAIL PROTECTED] says... Bad file descriptor is generally when there is a fault with the disk... try on some other server... Bad file descriptor might well mean that a file that doesn't exist has been requested; this is more likely the problem --

[PHP] Re: Testing PHP on a local machine

2002-06-26 Thread David Robley
In article [EMAIL PROTECTED], [EMAIL PROTECTED] says... Thanks for pointing me in the right direction However, just have a few other questions:- Do i need to install apache if i use the windows self extracting version? I assume you are talking about php self extracting? If so, you will

[PHP] Changing Session ID

2002-06-26 Thread Riaan Stander
Hi there I've got the following cenario. I got a general user page with a Login button next to each user. This button only opens a new browser window by setting the target in the form tag and submits the username, password, button value, and a newsess flag to the login page in the new browser

RE: [PHP] Seperating presentation from logic

2002-06-26 Thread phpsurf
personnaly, I agree with you, and I would really like to see more PHP frameworks (or template systems) rely on XML/XSLT. you can have a look at : http://www.interakt.ro/products/Krysalis/ it's a sort of rewrite of cocoon in PHP ... I had a look to the code, but never used it yet on a real

Re: [PHP] Email

2002-06-26 Thread Kondwani Spike Mkandawire
You would have to reconfigure the smtp outgoing server in your php.ini file in the mail function as follows: SMTP=smtp.myHost.whatever I believe the php.ini file in Linux uses sendmail... In the php.ini simply search for [mail function] and make the necessary changes as above... Spike...

[PHP] trouble with my PHP4.2.1 running as SAPI module for Apache1.3.26 on W2K

2002-06-26 Thread Miroslav Zatko
I have trouble with my PHP4.2.1 running as SAPI module for Apache1.3.26 on W2K Every request to .php produces: Warning: Failed opening '/path/to/script.php' for inclusion (include_path='.;include/paths') in Unknown on line 0 No matter if I use php4apache.dll php4ts.dll distributed or self

Re: [PHP] Deleting a read-only file (Windows)

2002-06-26 Thread Lowell Allen
From: Neil Freeman [EMAIL PROTECTED] I'm trying to delete a file using PHP's unlink() function (on Windows). This works fine on writable files but fails when trying to delete read-only files. How can I delete read-only files? Is there a function available to change the permissions? I

RE: [PHP] Seperating presentation from logic

2002-06-26 Thread David Freeman
? // general_config.php $siteTitle $colBg = #FF; $colText = #FFCC99; $colLink = #EE; $colComplimentary = #CC6600; $fontHeading = FONT class=\heading\ face=\verdana, arial\ size=\3\; Wouldn't you ultimately be better off moving most of this sort of thing into

RE: [PHP] PHP not working on Apache at XP Pro.

2002-06-26 Thread David Freeman
I've got Windows XP Pro OS. I installed and am running mySQL on that. However, PHP is not getting configured with Apache on it. I got the latest Apache, 1.3.24 or something, not the Version 2. Anyway, Apache runs perfectly on it. However, when i put in the required PHP lines in

[PHP] problems compiling php-4.2.1 / solaris 2.6

2002-06-26 Thread Neil M
problems compiling php-4.2.1 / solaris 2.6 -- [root@sunnsr02] 240 /tmp cd /export/php-4.2.1 [root@sunnsr02] 241 /export/php-4.2.1 make Making all in Zend /bin/sh ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../main

[PHP] New installation on Windows 98 (problem)

2002-06-26 Thread Kerry Snow
I just installed the InstallShield installer version of PHP on a windows 98 machine (to run with MS PWS), and am getting the message: This PHP CGI binary was compiled with force-cgi-redirect enabled. This means that a page will only be served up if the REDIRECT_STATUS CGI variable is set, e.g.

[PHP] Sendmail doesn't send...

2002-06-26 Thread Nightshade
Hi, that's my configuration: I've Mdk 8.2 Today I've installed sendmail for 1st time... I tryed to use mail() function, but effectively works only when I send mail to [EMAIL PROTECTED] no mails go to the other local user, and specially to external user: i.e. mail([EMAIL PROTECTED],$subj,$msg);

[PHP] file_exists()

2002-06-26 Thread Anthony Ritter
I have a question about the PHP function file_exists(): This is taken from a textbook entitled PHP Professional Projects by Wilfred, Gupta, Bhatnagar (Premier Press 2002 - ISBN1-931841-53-5) on page 261 under the chapter titled Handling Files. The authors write... Consider the following code

Re: [PHP] Deleting a read-only file (Windows)

2002-06-26 Thread Neil Freeman
unlink() works fine apart from when trying to delete read-only files. Thanks for the suggestion anyway. Neil Lowell Allen wrote: ** This Message Was Virus Checked With : SAVI 3.58 May 2002 Last Updated 14th June 2002

Re: [PHP] file_exists()

2002-06-26 Thread Neil Freeman
You're right - the example is wrong. Neil Anthony Ritter wrote: ** This Message Was Virus Checked With : SAVI 3.58 May 2002 Last Updated 14th June 2002

[PHP] Require()

2002-06-26 Thread Andy Whittlestone
I want to use require to send some post information to a page. Code: if ($viewsystem = = 1) $Str = editexemptfiles.php?every = 1; require($Str); I've tried what it says in the online documentation, but it doesn't work, Tried: $Str = d:\htdocs\somewhere\editexemptfiles.php?every =

Re: [PHP] Require()

2002-06-26 Thread Adam Voigt
No spaces. Instead of every = 1 Use: every=1 Adam Voigt [EMAIL PROTECTED] On Wed, 2002-06-26 at 08:37, Andy Whittlestone wrote: I want to use require to send some post information to a page. Code: if ($viewsystem = = 1) $Str = editexemptfiles.php?every = 1; require($Str);

Re: [PHP] Sendmail doesn't send...

2002-06-26 Thread adi
Look in var/log/maillog or similar for errors - Original Message - From: Nightshade [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, June 26, 2002 3:18 PM Subject: [PHP] Sendmail doesn't send... Hi, that's my configuration: I've Mdk 8.2 Today I've installed sendmail for 1st

RE: [PHP] Re: MySQL Problem with PHP

2002-06-26 Thread John Holmes
I just preg_replace(/\'/,\',$text) and all was good :o) That's what addslashes() is for. It handles single and double quotes, backslashes, and nulls, so you won't have any problems... ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP] Seperating presentation from logic

2002-06-26 Thread John Holmes
personnaly, I agree with you, and I would really like to see more PHP frameworks (or template systems) rely on XML/XSLT. you can have a look at : http://www.interakt.ro/products/Krysalis/ I disagree. Maybe I'm just not getting it, or understanding the FULL POWER of xml/xslt. It just seems

Re: [PHP] Re: One more 'Headers Already Sent' error. :-(

2002-06-26 Thread Erik Price
On Tuesday, June 25, 2002, at 06:07 PM, Brad Melendy wrote: Well, I have traced this down to line 4 in the following code 'include(header.html);' which just includes my navigation bar. If I comment it out, everything works great, if I leave it in, I get the error Headers Already Sent.

Re: [PHP] Require()

2002-06-26 Thread Andy Whittlestone
I'm afraid it don't ork. Thanks Anyway. Anyone ? Adam Voigt [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... No spaces. Instead of every = 1 Use: every=1 Adam Voigt [EMAIL PROTECTED] On Wed, 2002-06-26 at 08:37, Andy Whittlestone wrote: I want to

RE: [PHP] Require()

2002-06-26 Thread John Holmes
if ($viewsystem = = 1) $Str = editexemptfiles.php?every = 1; require($Str); You don't pass variables to a require()'d file. Any variable in the current scope is available in the included()'d, require()'d file. So just require($editexemptfiles.php); and in that file, $every will be

RE: [PHP] Require()

2002-06-26 Thread Niklas Lampén
Try this: ? if ($viewsystem == 1) $Str = d:\\htdocs\\somewhere\\editexemptfiles.php?every=1; require($Str); ? Niklas -Original Message- From: Andy Whittlestone [mailto:[EMAIL PROTECTED]] Sent: 26. kesäkuuta 2002 15:37 To: [EMAIL PROTECTED] Subject: [PHP] Require() I want

[PHP] ODBC driver 4 MS access

2002-06-26 Thread Renaldo De Silva
does anyone know of any ODBC driver for access that allows me to use odbc_num_rows. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Seperating presentation from logic

2002-06-26 Thread John Holmes
Wouldn't you ultimately be better off moving most of this sort of thing into style sheets and then have the designers play with the style sheets instead? Sure, if all they are doing is playing with fonts, colors, sizes, etc... What if your designer wants to change from a two column table to

Re: [PHP] Passing Form Values

2002-06-26 Thread Erik Price
On Tuesday, June 25, 2002, at 06:56 PM, Phillip S. Baker wrote: When the form is submitted I want to values passed to a pop-up window. I am aware of the need for Javascript for the pop-up window, but how do I get the values from the form passed to the new window so I can use them in

Re: [PHP] Gradients in PHP GD

2002-06-26 Thread Anzak Wolf
I wrote a Color gradient in GD it is actually very simple. Though you need GD 2.x and mine is designed to go from left to right changing the color to the center line then changing it back to the edge. If your interested let me know and I'll send you a code snippet. Though I would like to

Re: [PHP] Security problem?

2002-06-26 Thread Erik Price
On Tuesday, June 25, 2002, at 08:26 PM, Analysis Solutions wrote: I usually run PHP as CGI. My secure files are kept in a directory that's not under the */docroot. Thus, they can't be gotten to through the web server at all. Plus, the secure files are chmoded 600 (which means they

[PHP] issues with PHP 4.1.2 / solaris 2.6 / gcc 3.1

2002-06-26 Thread Eugene Mah
After replacing hard drives and reinstalling solaris 2.6 onto my Sparc 20, I'm getting the following error when starting up Apache 1.3.26 and PHP 4.1.2 Syntax error on line 205 of /export/home/eugenem/apache/conf/httpd.conf: /export/home/eugenem/apache/bin/httpd: fatal: relocation error: file

Re: [PHP] Require()

2002-06-26 Thread Andy Whittlestone
Thanks, that worked, and made it alot clearer. Andy John Holmes [EMAIL PROTECTED] wrote in message 000501c21d12$f4907580$b402a8c0@mango">news:000501c21d12$f4907580$b402a8c0@mango... if ($viewsystem = = 1) $Str = editexemptfiles.php?every = 1; require($Str); You don't pass

Re: [PHP] appending to XML file before closing tag

2002-06-26 Thread Erik Price
On Tuesday, June 25, 2002, at 08:42 PM, Brian White wrote: I was actually thinking about this the other day - every now and again I find my self yearning for SGML, where you could have just declared the wrapping element end tag omissable, and then you would never have to worry about it -

RE: [PHP] MySQL Problem with PHP

2002-06-26 Thread John Holmes
INSERT INTO `contracts` (`key`, `content`) VALUES (1,'blah blah blah character 39 is a single speach mark '+CHAR(39)+' blah blah blah') That's because you are adding strings together, not concatenating them (this isn't javascript!) Use CONCAT() in MySQL to join strings together. mysql

RE: [PHP] MySQL query time

2002-06-26 Thread John Holmes
Is there a way to find the time that mySQL took to perform a query. like the one shown when you perform it on the console mode(0.09 sec or so) No. You can use microtime() to get the time before and after the query, subtract smaller from larger, and that's your time. It's not the actual

RE: [PHP] Security problem?

2002-06-26 Thread John Holmes
On Tuesday, June 25, 2002, at 08:26 PM, Analysis Solutions wrote: I usually run PHP as CGI. My secure files are kept in a directory that's not under the */docroot. Thus, they can't be gotten to through the web server at all. Plus, the secure files are chmoded 600 (which means they

Re: [PHP] MySQL Problem with PHP

2002-06-26 Thread BB
I understand about the concat function, but that doesn't really fit into my scheme of things I run all text for the web through a function SafeSQL so that values from the web don't make SQL error or potential hacks occur. All SafeSQL was doing (for mssql, access and just about any other db) was

Re: [PHP] Gradients in PHP GD

2002-06-26 Thread Ville Mattila
Yes please, I would appreciate if you send the code snippet. In fact I have rather same kind of demand for the code. My script should change the color in more than one place and the distance between the key points varies. But I'm sure I can modify the code to meet my needs. Ville Lainaus

Re: [PHP] Seperating presentation from logic

2002-06-26 Thread Mark Gallagher
John Holmes wrote: Wouldn't you ultimately be better off moving most of this sort of thing into style sheets and then have the designers play with the style sheets instead? Sure, if all they are doing is playing with fonts, colors, sizes, etc... What if your designer wants to

Re: [PHP] Re: MySQL Problem with PHP

2002-06-26 Thread Erik Price
On Wednesday, June 26, 2002, at 08:58 AM, John Holmes wrote: I just preg_replace(/\'/,\',$text) and all was good :o) That's what addslashes() is for. It handles single and double quotes, backslashes, and nulls, so you won't have any problems... Plus IIRC it's a C extension so it'll run

Re: [PHP] Sendmail doesn't send...

2002-06-26 Thread Nightshade
Adi wrote: Look in var/log/maillog or similar for errors - Original Message - From: Nightshade [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, June 26, 2002 3:18 PM Subject: [PHP] Sendmail doesn't send... [mail function] SMTP= localhost

Re: [PHP] Seperating presentation from logic

2002-06-26 Thread Erik Price
On Wednesday, June 26, 2002, at 09:05 AM, John Holmes wrote: I disagree. Maybe I'm just not getting it, or understanding the FULL POWER of xml/xslt. It just seems like it's adding in an additional layer that you don't need. It seems so dependent on browser versions, and parser versions,

[PHP] Web Services

2002-06-26 Thread Laurent Drouet
Hi the ML I would like to know if there is a way to request data from a web services for example http://glkev.net.innerhost.com/glkev_ws/Currencyws.asmx using php without java ? If yes do you have some examples ? regards Laurent -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Sendmail doesn't send...

2002-06-26 Thread Chris Hewitt
I don't have the /usr/sbin in mine (I left it at the default blank) and it works. Can an ordinary user send emails to the destinations you are trying to get to with PHP? If not, then you have a sendmail configuration issue. HTH Chris Nightshade wrote: [mail function] SMTP

Re: [PHP] Sendmail doesn't send...

2002-06-26 Thread Analysis Solutions
On Wed, Jun 26, 2002 at 03:52:48PM +0200, Nightshade wrote: SMTP= localhost ;for win32 sendmail_from = [EMAIL PROTECTED];for win32 only sendmail_path = /usr/sbin/ ;for unix Try commenting

Re: [PHP] Deleting a read-only file (Windows)

2002-06-26 Thread Analysis Solutions
On Wed, Jun 26, 2002 at 11:34:10AM +0100, Neil Freeman wrote: I'm trying to delete a file using PHP's unlink() function (on Windows). This works fine on writable files but fails when trying to delete read-only files. How can I delete read-only files? Is there a function available to

Re: [PHP] More on removing item from cart

2002-06-26 Thread Vicki
Dan: Thanks very much for the detailed reply. I took most of this code from Welling and Thomson's book PHP and MySQL Development, (chpt. 25) but I'm trying to modify it to fit my purposes. The html is mostly theirs, and it's not the way I would write it, but it's working on my test machine.

Re: [PHP] Web Services

2002-06-26 Thread Erik Price
On Wednesday, June 26, 2002, at 10:49 AM, Laurent Drouet wrote: I would like to know if there is a way to request data from a web services for example http://glkev.net.innerhost.com/glkev_ws/Currencyws.asmx using php without java ? If you know the web services API, you just send your

Re: [PHP] Deleting a read-only file (Windows)

2002-06-26 Thread Neil Freeman
According to the manual This function is not implemented on Windows platforms. Gave it a go though and it works! Cheers Dan, Neil Analysis Solutions wrote: ** This Message Was Virus Checked With : SAVI 3.58 May 2002

Re: [PHP] Web Services

2002-06-26 Thread Thalis A. Kalfigopoulos
I've used Dietrich's SOAP implementation for PHP and have been able to use only with specific type of webservices (soap:binding style=rpc... and soap:body use=encoded...). Unfortunately your service has style=document and use=literal, so I'm not sure about it. It can be found at:

Re: [PHP] Sendmail doesn't send...

2002-06-26 Thread Jason Wong
On Wednesday 26 June 2002 21:52, Nightshade wrote: [mail function] SMTP= localhost ;for win32 only sendmail_from = [EMAIL PROTECTED];for win32 only sendmail_path = /usr/sbin/ ;for unix

RE: [PHP] Web Services

2002-06-26 Thread phpsurf
you should use PEAR-SOAP ... there is also a php mailing list dedicated to the soap extension development ([EMAIL PROTECTED]) -Original Message- From: Thalis A. Kalfigopoulos [mailto:[EMAIL PROTECTED]] Sent: mercredi 26 juin 2002 17:11 To: Laurent Drouet Cc: [EMAIL PROTECTED]

Re: [PHP] sessions are remembered for one page, then forgotten

2002-06-26 Thread 1LT John W. Holmes
Do you have session_start() on each page? ---John Holmes... - Original Message - From: Phil Schwarzmann [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, June 26, 2002 11:31 AM Subject: [PHP] sessions are remembered for one page, then forgotten I'm still having a little

[PHP] OOP assistance request

2002-06-26 Thread Erik Price
Hi, I'm making this request for help because my experience with object oriented programming is very limited. I'd like to describe my situation and then ask a question at the end of it, any comments or input are very appreciated. My application needs to keep track of different kinds of

Re: [PHP] Re: One more 'Headers Already Sent' error. :-(

2002-06-26 Thread Brad Melendy
No Worries, I know when people post the same questions over and over again, it pisses a lot of the folks here off. I really do read other messages first and then post only when I can't figure out the answer from other posts. I appreciate your input. It makes more sense when you explain what

RE: [PHP] Web Services

2002-06-26 Thread phpsurf
you can get the entire php code with examples from the pear cvs repository -Original Message- From: Thalis A. Kalfigopoulos [mailto:[EMAIL PROTECTED]] Sent: mercredi 26 juin 2002 17:35 To: phpsurf Cc: [EMAIL PROTECTED] Subject: RE: [PHP] Web Services I looked in pear.php.net

Re: [PHP] Re: One more 'Headers Already Sent' error. :-(

2002-06-26 Thread Brad Melendy
I wanted the script to redirect to different locations based on what conditions were being met. My problem turned out that I had an include statement including an html file prior to the header function on line 17. If I understand this correctly, the include statement was providing 'output' and

[PHP] Compiling PHP with XML????

2002-06-26 Thread Scott Fletcher
I looked in the ./configure --help for the xml support. It didn't say but show some options such as disabling xml, using xml with different stuffs. Nothing is being mentioned about enabling xml or something. So, is xml in php supported automatically? Thanks, Scott -- PHP General Mailing

[PHP] logging onto phpmyadmin

2002-06-26 Thread Phil Schwarzmann
now that I put a root password on mysql, I can no longer log onto phpmyadmin. It mentions something about the lib.inc file, it looks like I need to edit the file and add in my new username/password. But when I open lib.inc, it looks like a bunch of garbage on the screen, it's not normal text.

[PHP] 4.2.1 installation under WIN2k with IIS - Extensions just won't work

2002-06-26 Thread John Brown
All I installed the 4.2.1 release over my 4.0.6 release (and had major fun getting all of my variables working again!) BUT I can't get php_gd.dll to load as an extension. I have added every combination in the extensions_dir line, including the 4.0.6 entry which worked fine. All I get is an

Re: [PHP] Compiling PHP with XML????

2002-06-26 Thread Erik Price
On Wednesday, June 26, 2002, at 11:57 AM, Scott Fletcher wrote: I looked in the ./configure --help for the xml support. It didn't say but show some options such as disabling xml, using xml with different stuffs. Nothing is being mentioned about enabling xml or something. So, is xml

[PHP] OSCON: anybody interested in my Oracle talk?

2002-06-26 Thread Thies C. Arntzen
hi, seems like oreilley will cancel my tutorial about PHP and Oracle at OSCON in san diego as there are not enough ppls interested. so - if you go to oscon, and if you are interested in that subject _and_ if you have not decided to sign up for my tutorial - hurry up

[PHP] Microsoft Bug come back to haunt?

2002-06-26 Thread Francis
Ok I posted a mail a couple of days ago about downloading files within PHP. Heres the code I'm using: Header(Content-Type: application/x-tar); Header(Content-Transfer-Encoding: binary); Header(File-Length: $fileSize); Header(Content-Disposition: attachment; filename=$filename); Anyway the

[PHP] Help with e-mail form with server-side written in php?

2002-06-26 Thread Chris Hounsell
I seem to be having an issue with an e-mail form that I have created for registration purposes with the server-side being written in PHP! I've tested the e-mail form using numerous browsers and operating systems including Microsoft, Netscape, Unix, and Linux! Everytime I test the form, it works

Re: [PHP] Compiling PHP with XML????

2002-06-26 Thread Scott Fletcher
Cool! Just finished compiling PHP before I read your post. :-) I took the risk and include hte --enable-xml option even though it is not included and it compiled successfully. But with a lot of warning though. Thanks! Scott Erik Price [EMAIL PROTECTED] wrote in message [EMAIL

[PHP] Re: Microsoft Bug come back to haunt?

2002-06-26 Thread Philip Hallstrom
I've had luck making the url look something like... http://server/path/to/dl.php?filename=filename.tar or http://server/path/to/dl.php/filename.tar (works with apache) The latter seems to work better for me. On Wed, 26 Jun 2002, Francis wrote: Ok I posted a mail a couple of days ago

Re: [PHP] Web Services

2002-06-26 Thread Laurent Drouet
Thanks for the test . I succeed in retrieving a number. I had to add $soapclient-setHTTPProxy to connect. I don't know anything about webservices and I wonder if you know what I can put in place of $soapclient = new soapclient ('http://www.edelphi.com/scripts/KzAnyWho.exe/soap/IAnyWho');

[PHP] Re: Microsoft Bug come back to haunt?

2002-06-26 Thread Francis
But when you save the file it keeps the filename so in my example if: $filename = newfile.xls; then if you click the save button ie saves it as newfile.xls but if you click open excel or word etc trys to open it was newfile.xls[1] and just cant find the cached file. Philip Hallstrom [EMAIL

[PHP] Re: Help with e-mail form with server-side written in php?

2002-06-26 Thread Andy
you should consider that not everybody has enabled JS. Always double check with php before you add data or send it via mail. Maybe some people just hit the send button without filling in anything. Andy -- http://www.globosapiens.net Global

[PHP] Re: [PHP-DB] OSCON: anybody interested in my Oracle talk?

2002-06-26 Thread Pierre-Alain Joye
Hello, I m sure I will not be in OSCON, but if there is a possibily for you to go to International PHP Conf, you will make certainly a very good session there, not lost your job and certainly see me ;)). International PHP Conference 2002 call for papers :

[PHP] Re: logging onto phpmyadmin

2002-06-26 Thread Andy
Hello Phil, you have to change the file config.inc (or similar name) and change your password there. Check the docu for phpmyadmin. Of course other people can access this webinterface as long as you give them the password and they have netaccess. you might want to give them different rights.

[PHP] rar error in session management

2002-06-26 Thread Andy
Hi there, I have written an own session management. Workes fine, but recently after more people signed up there has appeared an error. In some cases when people submit reports the userID cant be filtered out of the database (there is a special table handliing the sessions) There session seems

[PHP] dynamically creating variable names

2002-06-26 Thread Lee P Reilly
Hi, Can someone tell me if it's possible to create variable names from varaible names? I could work around this problem using some if/else statements, but I'm interested to see if there's another solution. I have 20 associative arrays all named compA, compB, compF, etc. The user supplies a

[PHP] Re: dynamically creating variable names

2002-06-26 Thread Lee P Reilly
No reply neccessary. A list minute search on google proved helpful... [http://216.239.35.100/search?q=cache:hLxGJH-pFeYC:www2.themanualpage.org/php/php_syntax.php3+PHP+dynamic+variable+nameshl=enie=UTF-8] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP] dynamically creating variable names

2002-06-26 Thread Lazor, Ed
I think so. Try using double dollar signs. $name = food; $$name = pizza; print $food; -Original Message- Can someone tell me if it's possible to create variable names from varaible names? This message is

Re: [PHP] dynamically creating variable names

2002-06-26 Thread Erik Price
On Wednesday, June 26, 2002, at 01:04 PM, Lee P Reilly wrote: Can someone tell me if it's possible to create variable names from varaible names? I could work around this problem using some if/else statements, but I'm interested to see if there's another solution. Just try it. for ($i = 0;

[PHP] PHP does not work??

2002-06-26 Thread Scott Fletcher
Hi! I downloaded the newer version of PHP and compiled it. The php is working great! But there is one problem. When I use the hyperlink, test.php?data=yes and I go to this page, test.php but there is no data in this variable, $data. So, the web page I have, most of them are all thrown off

Re: [PHP] PHP does not work??

2002-06-26 Thread Erik Price
On Wednesday, June 26, 2002, at 01:20 PM, Scott Fletcher wrote: When I use the hyperlink, test.php?data=yes and I go to this page, test.php but there is no data in this variable, $data. So, the web page I have, most of them are all thrown off becuase of this. I use PHP version 4.2.1.

RE: [PHP] PHP does not work??

2002-06-26 Thread Jay Blanchard
[snip] When I use the hyperlink, test.php?data=yes and I go to this page, test.php but there is no data in this variable, $data. So, the web page I have, most of them are all thrown off becuase of this. I use PHP version 4.2.1. Is there a bug in this PHP version??? Or some changes in PHP that

Re: [PHP] dynamically creating variable names

2002-06-26 Thread Lee P Reilly
Thanks for the replies. I'm still having a litte trouble though... Say I have an array called $compX, and given the letter 'X'... how can I access the variable $compX using these methods? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] dynamically creating variable names

2002-06-26 Thread Rasmus Lerdorf
http://www.php.net/manual/en/language.variables.variable.php On Wed, 26 Jun 2002, Lee P Reilly wrote: Thanks for the replies. I'm still having a litte trouble though... Say I have an array called $compX, and given the letter 'X'... how can I access the variable $compX using these methods?

[PHP] variable statements

2002-06-26 Thread Henning Sittler
Question: Variable variables and variable functions work great, but how can you execute arbitrary code statements using php code stored inside variables? // Example function stuff() { echo 'pStuff/p'; } // end stuff() $function = 'stuff'; $function(); // works /* Given the above, I

[PHP] problem proccessing SSI...

2002-06-26 Thread The Gabster
Hi everyone... I keep getting an [an error occurred while processing this directive] in my shtml page when I try to use !--#include virtual=news.txt -- I tried all the path/url variants in vain. Anyone can help please? I have win2k/Apache/php4. thanks gabi... -- PHP General Mailing List

[PHP] Synchronize FTP sites with PHP?

2002-06-26 Thread Jeff Lewis
We're using a FTP Control program here but it's very old and I'm wondering if anyone has used PHP to sync up FTP sites, to connect to a remote server and check if there is anything new... Not quite sure where to start with it though... Jeff -- PHP General Mailing List (http://www.php.net/)

[PHP] server security

2002-06-26 Thread Phil Schwarzmann
Okay, so with the help of all you, I have successfully set up a php server with apache/mysql on windows 98. THANK YOU!! What else can I do to make this server secure? What is this SSL business all about? Any extra programs I should add that might help? Thanks!!

[PHP] PHP sockets/daemon problem

2002-06-26 Thread Josh Levine
I'm trying to write a simple PHP script that communicates with a daemon running on the same server. Basically, the daemon just accepts an integer and returns an integer: [josh@jlevine-research josh]$ telnet 127.0.0.1 60324 Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. 9

Re: [PHP] problem proccessing SSI...

2002-06-26 Thread Jason Wong
On Thursday 27 June 2002 01:35, The Gabster wrote: Hi everyone... I keep getting an [an error occurred while processing this directive] in my shtml page when I try to use !--#include virtual=news.txt -- I tried all the path/url variants in vain. Anyone can help please? I have

Re: [PHP] variable statements

2002-06-26 Thread Jason Wong
On Thursday 27 June 2002 01:34, Henning Sittler wrote: Question: Variable variables and variable functions work great, but how can you execute arbitrary code statements using php code stored inside variables? eval() -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source

Re: [PHP] server security

2002-06-26 Thread Erik Price
On Wednesday, June 26, 2002, at 01:33 PM, Phil Schwarzmann wrote: What else can I do to make this server secure? What is this SSL business all about? Any extra programs I should add that might help? Read this from beginning to end. Then you will know what questions you need to ask to

RE: [PHP] variable statements

2002-06-26 Thread Henning Sittler
Perfect. Thank you Jason. Henning Sittler www.inscriber.com -Original Message- From: Jason Wong [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 26, 2002 1:44 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] variable statements On Thursday 27 June 2002 01:34, Henning Sittler wrote:

  1   2   >