[PHP] Executing a CGI script from a PHP script

2001-09-06 Thread Patrick Dunford

The server I am on uses a CGI script to get a count for home pages. With 
server side includes it is executed using the Apache exec SSO directive 
and works well.

The problem with PHP is that the CGI script when executed by Apache sets 
a lot of environmental variables that apparently aren't set by the PHP 
script when using system() to run the CGI script.

I wondered if there are any commands in PHP4 that will cause PHP/Apache 
to set the environmental variables the same way as it would when Apache 
executes a CGI script directly.

-- 
===
Patrick Dunford, Christchurch, NZ

   He makes me lie down in green pastures, he leads me beside quiet
waters, he restores my soul. He guides me in paths of righteousness
for his name's sake.
-- Psalm 23:2-3
   http://www.StudyLight.org/desk/?query=Psalm+23:2-3

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Re: begginer needs help

2001-08-30 Thread Patrick Calkins

Sure, you should just (for Windows) download the Apache web server for
windows, and get the PHP for windows off of php.net. Then you can run a
'local' server that processes your PHP code. Or do the same for a Unix
machine...

--
Patrick Calkins
OEMSupport.Com, Inc.
** please remove the _ to reply **
Nikola Veber [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 I have been doing some amateur web-design by now, but I decided to learn
 something like php. I was wondering if there is a way to test php code
without a
 server(on local computer).

 Thanx in advance

 Nikola Veber





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] POST to port 443 (SSL)

2001-08-27 Thread Patrick Calkins

Hello,
I am trying to use the UPS Online Tools, the XML version. This requires you
POSTing an XML document to their Tools server, which is SSL enabled. I am
having a problem getting this to connect in PHP (4.0.6) on my server (Apache
1.3.20). In my scripts, I use
$Socket = fsockopen (www.ups.com, 443, $errno, $errstr);

if (!$Socket)
die (Error bla bla bla);

fputs ($Socket, GET /ups.app/xml/Rate HTTP/1.0\r\n\r\n);
...
...
If you point your browser to https://www.ups.com/ups.app/xml/Rate you will
see a response. But this code seems to just time-out. If I change the port
443 to port 80, I will get a response. What am I missing for it to talk to
an SSL port??

Thanks!
Patrick
[EMAIL PROTECTED]
** remove the _xxx_ to reply

--
Patrick Calkins
OEMSupport.Com, Inc.
** please remove the _ to reply **



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Trouble with getimagesize

2001-07-24 Thread Patrick J. Militzer

Hi there,

Having problem with a snippet of code, the code works in php4 but not in php3.

Here is the snippet:

$imagesize = getimagesize($UPLOADFILE);
 // print $imagesize[0] .   . $imagesize[1];
 if($imagesize[0]  360 or $imagesize[1] 252 or $UPLOADFILE_size  51024)
 {  // Image Size Too Large
  header(Location:
toolarge.html?HEIGHT=$imagesize[1]WIDTH=$imagesize[0]FS=$UPLOADFILE_size );

 }

When we take out the comments by the print statement we get the image size of
the file we are uploading and they are 960, 660.  The If statement should catch
it and redirect to the toolarge.html page. It does do this in the php4 but not
in php3.

Any ideas

Thanks in advance.

Pat

Pat Militzer
Tech Support Supervisor
Metro/MLS Inc.
11430 W North Ave
Wauwatosa, WI 53226
414-778-5400 ext. 124
Fax 778-6143
email: [EMAIL PROTECTED]
web site: www.metromls.com
  www.wihomes.com


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] Send variables from php to dll and back.

2001-07-23 Thread Patrick Lynch

What you are probably looking for is:
http://www.php.net/manual/en/class.com.php

Make a COM object out of your VB DLL (more info on this is available on a VB
faq). You can use the functions on the page above to access the
functionality of the COM object.

Best Regards,
Patrick Lynch.  
==
Eirco
==
Web: http://www.eirco.com


-Original Message-
From: Ryan Marrs [mailto:[EMAIL PROTECTED]] 
Sent: 23 July 2001 16:00
To: [EMAIL PROTECTED]
Subject: [PHP] Send variables from php to dll and back.


I'm trying to call a VB DLL to run validation checks on user input.  I know
nothing of VB, or even how to call a DLL for something like this, so I'm
going to need to be shown like a newbie.  I've already read over Luiz
Fernando's request and responses, and they didn't seem to help me.  

For example, I need to send:

$string=Hello World;
$string2=This/Would/Fail
$string3=Test 3;
$string4=Test%5;

script sends $string to helloworld.dll
.DLL grabs the string, validates it, and sends back the variables that
passed, and the variables that failed.  

IE:

$passed=string, string3;
$failed=string2, string4;

Any ideas how I would go about sending this information to the .dll and
returning it?

Thanks in advance!

Ryan

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED] To contact
the list administrators, e-mail: [EMAIL PROTECTED]

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] Another how do i question

2001-07-23 Thread Patrick Lynch

Unless you are sending HTML mail, you need to use newline - not BR

?php
$email = [EMAIL PROTECTED];
$subject = Mini survey;
$message = $name . \n . $last_name . \n . $age . \n . $system . \n .
$res . \n . $cpu . \n . $comments; 
mail($email, $subject, $message);
?


Best Regards,
Patrick Lynch.  
==
Eirco
==

-Original Message-
From: Kyle Smith [mailto:[EMAIL PROTECTED]] 
Sent: 24 July 2001 00:25
To: [EMAIL PROTECTED]
Subject: [PHP] Another how do i question


I made this code for a simple for (the end of it) but what do i change in
the $message variable so there is a new line between each other variable in
$message (ive tried $name. br. $last_name and.  happens)

?php
$email = [EMAIL PROTECTED];
$subject = Mini survey;
$message = $name. $last_name. $age. $system. $res. $cpu. $comments; ? ?php

mail($email, $subject, $message);
?


-legokiller666-
http://www.StupeedStudios.f2s.com
New address new site

ICQ: 115852509
MSN: [EMAIL PROTECTED]
AIM: legokiller666



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] sleep() function question

2001-07-23 Thread Patrick Lynch

Is 
output_buffering = On
set in the php.ini file?

If it is set to on, no content or headers are sent back to the browser until
the whole page has been processed by PHP.

Best Regards,
Patrick Lynch.  

Eirco
Web: http://www.eirco.com


-Original Message-
From: Andrew Brampton [mailto:[EMAIL PROTECTED]] 
Sent: 23 July 2001 02:38
To: drb
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] sleep() function question


I know very little about PHP, but in other languages, what u describe
happens because the webserver doesn't send the output until the excution is
done...

But you can make it write your output as its generated... check out the
function flush

also after 20seconds of looking, I found ob_implicit_flush that may help
as well..

Hope I could help
Andrew
- Original Message -
From: drb [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, July 22, 2001 11:25 PM
Subject: [PHP] sleep() function question


 just wanted to make sure I was not doing anything incorrectly.

 I want to return some values to the screen and then sleep(), then
 return more values. It seems that nothing is returned till the sleep 
 is over and then all the values are returned at once.

 Is this the natural function of sleep();

 thanks,

 DRB



 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED] To
 contact the list administrators, e-mail: [EMAIL PROTECTED]




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED] To contact
the list administrators, e-mail: [EMAIL PROTECTED]

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] mail() help

2001-07-17 Thread Patrick W. Rateliff

I am getting this error when using the trying to use the mail function.  Any
insite will help, I have been up for too long working on a few projects and
my brain is damn near melted.


mail() is not supported in this PHP build in

so when I built PHP 4.06 I am assuming I missed a option, but just want to
make sure before i head back and re-do things.  Is there a simple option to
turn on the mail support.



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] how do i get url: response codes?

2001-07-12 Thread Patrick Sibenaler



I've tried for a while now to figure out how to test from within php 
if a url (http://xxx/file.html) is present and what error code is 
returned (200,201,202,404, etc...)

the only way to test a url seems to be to open
file('http://xxx/file.html') 
and see if it can be done. but that completely suppresses any error 
codes and especially redirects. Has anyone figured out how to pull out 
http error codes using php?


greets./

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] RE: [PHP-WIN] php XML output in IE: no display

2001-07-09 Thread Patrick Sibenaler




 IE does some intelligent guessing based on filename extension that will
 override headers. If you send enough headers in the right sequence you can
 get it to work right - with a weird name if you want to save it and
 sometimes a double query on whether or not you want to save it. Tricking it
 via PATH_INFO URLs works without any weird problems.

I've just tried to fool IE into any mime (text/plain, image/gif, 
foo/bar) with the same content but it keeps ignoring it all on IE.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] How to get PHP to do a POST??

2001-06-28 Thread Patrick Calkins

AH! Thank you for this info! This was exactly the problem! When I changed
the name_x to name.x, it worked, and UPS' site gave me back what I was
looking for. Thanks again, you're a lifesaver!

-- Patrick

Richard Lynch [EMAIL PROTECTED] wrote in message
046101c0fee3$a5d4ec80$6401a8c0@Lynchux100">news:046101c0fee3$a5d4ec80$6401a8c0@Lynchux100...
  tried it on my own server and found that php assigns the values 'name_x'
 and

 Those are really name.x and name.y in HTTP, but since . is not allowed
in
 a PHP variable name, you get _ instead.

 So UPS is using, almost for sure, name.x and name.y in their variables.

 (Well, they probably have something else as well, but if you give them
 name.x and name.y, they'll convert it like they always do.)

  button on my form, then all works fine, except for the fact that I can't
  intercept the data comming back from UPS so that I can adjust the
prices.

 Search the archives for Rasmus' posttohost function from way, way, way
 back when.

 --
 WARNING [EMAIL PROTECTED] address is an endangered species -- Use
 [EMAIL PROTECTED]
 Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
 Volunteer a little time: http://chatmusic.com/volunteer.htm



 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] search for a better php source code viewer

2001-06-27 Thread Patrick Calkins

You should try EditPlus !!! I love it!
http://www.editplus.com/
It runs on Win95/98/2000/NT and will create a Unix/Mac/PC file. Has custom
syntax highlighting, spell checker, integrated web browser, etc, etc. It
handles PHP, ASP, Perl, C++, and more...


scott [gts] [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 im a textpad fan.  (for windows)
  http://textpad.com/

  it supports custom syntax hilighting,
  line numbers, and a ton of other features
  that i use :)


   -Original Message-
   From: Tyler Longren [mailto:[EMAIL PROTECTED]]
   Sent: Tuesday, June 26, 2001 10:26 AM
   To: [EMAIL PROTECTED]; php
   Subject: Re: [PHP] search for a better php source code viewer
  
  
   I suggest ConTEXT.  It's free, and it's for windows.
   http://www.fixedsys.com/context
  
   And for Linux, I suggest Nedit.
   http://www.nedit.org/
  
   Tyler


 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] FW: Setup Question

2001-06-26 Thread Patrick Smith












This may have just slipped through the cracks, anyone point
me in the right direction or anything?



Im installing PHP 4.0.5, I have Apache 1.3.20
installed currently and Im also using a built in module of mod_perl
1.25. Heres my apache mod
list

[grumster]:12:38pm:/usr/local/apache/bin:(raq)-
./httpd -l

Compiled-in modules:

 http_core.c

 mod_env.c


mod_log_config.c

 mod_mime.c


mod_negotiation.c

 mod_status.c

 mod_include.c

 mod_autoindex.c

 mod_dir.c

 mod_cgi.c

 mod_asis.c

 mod_imap.c

 mod_actions.c

 mod_userdir.c

 mod_alias.c

 mod_access.c

 mod_auth.c

 mod_so.c

 mod_setenvif.c

 mod_perl.c

suexec: disabled; invalid wrapper
/usr/local/apache/bin/suexec

Ive added LoadModule php4_module
libexec/libphp4.so to my httpd.conf file after doing the DSO compile for
PHP.

Whenever I try to load a webpage with PHP, Im getting
errors like Document Contains no Data.

When I do a gdb I get the following..:



bash-2.04# gdb /usr/local/apache/bin/httpd

(gdb) run -X

Starting program: /usr/local/apache/bin/httpd -X

warning: Unable to find dynamic linker breakpoint function.

GDB will be unable to debug shared library initializers

and track explicitly loaded dynamic code.



Program received signal SIGSEGV, Segmentation fault.

0x401fa9d0 in ?? ()

(gdb) bt

#0 0x401fa9d0 in
?? ()

#1 0x401fab24 in
?? ()

#2 0x8098103 in
ap_invoke_handler ()

#3 0x80abac9 in
process_request_internal ()

#4 0x80abb28 in
ap_process_request ()

#5 0x80a31e5 in
child_main ()

#6 0x80a3378 in
make_child ()

#7 0x80a34d3 in
startup_children ()

#8 0x80a3b08 in
standalone_main ()

#9 0x80a4287 in
main ()

#10 0x400cf577 in __libc_start_main () from /lib/libc.so.6

(gdb)





ANY HELP would be appreciated, I wasnt able to find
anything in the archives.



--



Regards,



Patrick Smith








[PHP] How to get PHP to do a POST??

2001-06-26 Thread Patrick Calkins

Hello all!
Here is an interesting problem that I can not solve, maybe one of you know??
Here is what I'm trying to do. I sell a lot of items on eBay, and lots of
people ask me for a quote on shipping. We ship via UPS and I go to their
site a lot to lookup rates. I decided to make my own web page that links
into UPS' with most of the fields already pre-set, and all I want to do is
give the user back a total for shipping. I need to manipulate what comes
back from UPS first, so I can add to the shipping price to cover materials,
etc, then give the final numbers back to the end user. This is where I have
a problem.
I was able to have my page act as a user-agent, and do the submit itself,
however on UPS's site, their submit button is not a button, but rather an
image. Since a button is easy to know what values are getting set (ie
name=Submit value=getinfo), I did not know what vars the image-submit
was setting, since there was no 'value' variable, only a 'name' variable. I
tried it on my own server and found that php assigns the values 'name_x' and
'name_y' giving us the xy values of where the user clicked, but UPS does
not use PHP, so I don't know what their software sets the submit values to
hence it does not work correctly. Their form just thinks something went
wrong and displays the beginning again. If I just include their submit
button on my form, then all works fine, except for the fact that I can't
intercept the data comming back from UPS so that I can adjust the prices.
Any idea on how to do this???

Thanks and sorry if this seems long-winded...



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Calling CGI from PHP page

2001-06-24 Thread patrick . azevedo

Please,
 

 
How do I unsubscribe this list? I tried two times these addresses:
 

 
[EMAIL PROTECTED]
 

 
[EMAIL PROTECTED]
 

 
Thank youvery much, Patrick.
 

 

 
-
 

 

 

 
Em 24 Jun 2001, Rasmus Lerdorf escreveu:
 

 
 I haven't really used PHP before, but I have a project where I need to 
 
call 
 
 a CGI script from a PHP page. The CGI has documentation that explains how 

 
to 
 
 call it from an SSI, but not from PHP. 
 
 
 
 The SSI command is 
 
 
 
 
 
 Can someone tell me what the equivalent command would be for PHP? Thanks 

 

 
See http://php.net/virtual 
 

 
-- 
 
PHP General Mailing List (http://www.php.net/) 
 
To unsubscribe, e-mail: [EMAIL PROTECTED] 
 
For additional commands, e-mail: [EMAIL PROTECTED] 
 
To contact the list administrators, e-mail: [EMAIL PROTECTED] 
 

 
-- 

_
Oi! Você quer um iG-mail gratuito?
Então clique aqui: http://registro.ig.com.br/


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Setup Question

2001-06-23 Thread Patrick Smith








Im installing PHP 4.0.5, I have Apache 1.3.20
installed currently and Im also using a built in module of mod_perl 1.25. Heres my apache mod list

[grumster]:12:38pm:/usr/local/apache/bin:(raq)- ./httpd -l

Compiled-in modules:

 http_core.c

 mod_env.c

 mod_log_config.c

 mod_mime.c

 mod_negotiation.c

 mod_status.c

 mod_include.c

 mod_autoindex.c

 mod_dir.c

 mod_cgi.c

 mod_asis.c

 mod_imap.c

 mod_actions.c

 mod_userdir.c

 mod_alias.c

 mod_access.c

 mod_auth.c

 mod_so.c

 mod_setenvif.c

 mod_perl.c

suexec: disabled;
invalid wrapper /usr/local/apache/bin/suexec

Ive added LoadModule
php4_module
libexec/libphp4.so to my httpd.conf file after
doing the DSO compile for PHP.

Whenever I try to load a webpage with PHP, Im getting
errors like Document Contains no Data.

When I do a gdb I get the
following..:



bash-2.04# gdb /usr/local/apache/bin/httpd

(gdb) run -X

Starting program: /usr/local/apache/bin/httpd
-X

warning: Unable to
find dynamic linker breakpoint function.

GDB will be unable to debug shared library initializers

and track
explicitly loaded dynamic code.



Program received signal SIGSEGV, Segmentation fault.

0x401fa9d0 in ?? ()

(gdb) bt

#0
0x401fa9d0 in ?? ()

#1
0x401fab24 in ?? ()

#2
0x8098103 in ap_invoke_handler ()

#3
0x80abac9 in process_request_internal
()

#4
0x80abb28 in ap_process_request ()

#5
0x80a31e5 in child_main ()

#6
0x80a3378 in make_child ()

#7
0x80a34d3 in startup_children ()

#8
0x80a3b08 in standalone_main ()

#9
0x80a4287 in main ()

#10 0x400cf577 in __libc_start_main
() from /lib/libc.so.6

(gdb)





ANY HELP would be appreciated, I wasnt
able to find anything in the archives.



--



Regards,



Patrick Smith








Re: [PHP] setcookie()

2001-05-07 Thread Patrick Wayne Tan

BTW here's my php.ini file. many thanks!

- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, May 07, 2001 10:48 AM
Subject: [PHP] setcookie()


 Hi all,

 I have just migrated my scripts from redhat linux 6.2 and apache to win
nt4
 and IIS 4.

 I've been having problems with setting cookies though. Same piece of code
 from the linux version won't work at the Win NT/IIS site.

 Example of my code:

$username = test;
$password = testpass;
$kookieko = kookienimona;

setcookie(username, $username, 0);
setcookie(password2, $password, 1);
setcookie(kookieko2, $kookieko, 2);

 BTW I've installed php4.05 using the self-extracting installer I've
 downloaded from php.net. Please check my php.ini file if it is correct.

 Please help. I'm already at my wits end.
 Thanks so much!
 Patrick



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]


[PHP] win32 dll

2001-04-25 Thread Patrick Lai

Can anyone tell me whether php can use win32 dll library functions? If yes,
how?

Patrick



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Incrementing a String Name

2001-04-23 Thread Patrick Dunford

On 22 Apr 2001 17:56:23 -0700 AD in php.general, Chris Aitken said: 

Hi

Just a quick puzzle I cant seem to get around at the moment...

Why don't you put it in  your own thread


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] shm_attach not found

2001-04-18 Thread Patrick Lai

I get this error

Fatal error: Call to undefined function: shm_attach() in
/usr/local/apache/phplib/ct_shm.inc on line 31

Here is my compile parameter
'./configure' '--with-apxs=/usr/local/apache/bin/apxs'
'--with-config-file-path=/usr/local/apache/conf' '--enable-versioning'
'--with-ldap' '--with-xml' '--enable-bcmath' '--with-database'
'--enable-ftp' '--with-gd=/usr/local/gd1.3' '--enable-bcmath'
'--disable-debug' '--enable-memory-limit=yes' '--enable-track-vars'

Can anyone tell me why the library can find the standard shm_attach()?

thanx,

Patrick



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] PHP for Apache 2.0

2001-04-14 Thread Patrick Dunford

According to Apache, modules made for Apache 1.3 will not work as-is in 2.0 
due to changes in the API.

Is a version of PHP 4 for Apache 2.0 coming out?

-- 
===
Patrick Dunford, Christchurch, NZ - http://pdunford.godzone.net.nz/

   Ill-gotten treasures are of no value, but righteousness delivers
from death.
-- Proverbs 10:2
http://www.heartlight.org/cgi-shl/todaysverse.cgi?day=20010414
===
Created by Mail2Sig - http://pdunford.godzone.net.nz/software/mail2sig/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] header( )

2001-04-13 Thread Patrick Dunford

On 11 Apr 2001 08:12:20 -0700 AD in php.general, Chris Lee said: 

I'll post you a simple HTTP auth script. but you should realize =
something about header()

client - server
server - client

the client sends some HTTP request to the server, then the server sends =
some HTTP response to the client. php is strictly server side, you have =
full control over the HTTP headers sent to the user, but not from the =
user to the server. ie. method=3D'post' that is sending client data to =
the server, you will have no control over this at all...

There are in fact two different servers: the web server and the PHP server. 
IMO it should be possible for the PHP server, executing PHP code, to send a 
request to the web server. It is certainly possible to send a header telling 
the web server to redirect to another web page.


-- 
===
Patrick Dunford, Christchurch, NZ - http://pdunford.godzone.net.nz/

   And my God will meet all your needs according to his glorious
riches in Christ Jesus.
-- Philippians 4:19
http://www.heartlight.org/cgi-shl/todaysverse.cgi?day=20010413
===
Created by Mail2Sig - http://pdunford.godzone.net.nz/software/mail2sig/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] HTML and PHP?

2001-04-13 Thread Patrick Dunford

On 13 Apr 2001 17:39:49 -0700 AD in php.general, Jason Caldwell said: 

Is there a utility that I can use that will take a bunch of HTML and
encapsulate it in the PRINT command?

i.e.

PRINT("{html stuff}\n");

??

I have a ton of HTML pages that I want to make dynamic, but dread having to
type the PRINT command in front of every line of html, and let alone having
at manually add the slashes... urg.

You don't need to make major changes to your HTML pages. Just embed the PHP 
into your HTML page wherever it's needed. Your web server will still treat a 
PHP page as an HTML except that the PHP code embedded in it is executed on 
the web server. However SSI commands will have to be replaced with their PHP 
equivalents.

-- 
=======
Patrick Dunford, Christchurch, NZ - http://pdunford.godzone.net.nz/

   And my God will meet all your needs according to his glorious
riches in Christ Jesus.
-- Philippians 4:19
http://www.heartlight.org/cgi-shl/todaysverse.cgi?day=20010413
===
Created by Mail2Sig - http://pdunford.godzone.net.nz/software/mail2sig/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] header( )

2001-04-11 Thread Patrick Dunford

Can someone explain "header" to me?

Does it mean you can send HTTP headers with any script if you are loading 
another document?

There are two possibilities that interest me:

1. Sending username and password for authorisation in a protected area. This 
of course is done by browsers when they get a 401 and ask the user for their 
username and password in a dialog box. I would like to ask them for the data 
in a form then send it to the page in question.

2. Passing in variables to a script without specifying them as part of the 
URL. Like a form that uses POST to submit variables to a script without them 
being displayed in the URL when the page loads.  

-- 
=======
Patrick Dunford, Christchurch, NZ - http://pdunford.godzone.net.nz/

   If only for this life we have hope in Christ, we are to be
pitied more than all men.
-- 1 Corinthians 15:19
http://www.heartlight.org/cgi-shl/todaysverse.cgi?day=20010411
===
Created by Mail2Sig - http://pdunford.godzone.net.nz/software/mail2sig/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] unset()

2001-04-04 Thread Patrick Dunford


I wrote a function inside a file which I included with a require() call.

The function takes four arguments by reference (because I need to pass back 
four values). The first thing it does is to call unset() four times to unset 
these arguments, so that it can enter new data into them. This will clear 
the variable values in the calling script of course, but is not a problem 
because the function needs to clear them so it can put data in them.

However it was a surprise to find that the variables contained data when 
checked on the last line of the function, but when checked in the calling 
code after the function call had been made, they were empty.

Removing the calls to unset() in the function resolved the problem and I 
have put the unset() calls into the calling code immediately before calling 
the function. This works but still leaves me with the question.

-- 
===
Patrick Dunford, Christchurch, NZ - http://pdunford.godzone.net.nz/

   Rejoice in the Lord always. I will say it again: Rejoice!
-- Philippians 4:4
http://www.heartlight.org/cgi-shl/todaysverse.cgi?day=20010404
===
Created by Mail2Sig - http://pdunford.godzone.net.nz/software/mail2sig/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] PHP3: suppressing error messages

2001-04-01 Thread Patrick Dunford

How can I prevent error messages from being displayed and sent to a log file 
instead?

-- 
===
Patrick Dunford, Christchurch, NZ - http://pdunford.godzone.net.nz/

   Now to him who is able to do immeasurably more than all we ask
or imagine, according to his power that is at work within us,   to
him be glory in the church and in Christ Jesus throughout all
generations, for ever and ever! Amen.
-- Ephesians 3:20-21
http://www.heartlight.org/cgi-shl/todaysverse.cgi?day=20010331
===
Created by Mail2Sig - http://pdunford.godzone.net.nz/software/mail2sig/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Image Resizing in PHP

2001-03-30 Thread Patrick Dunford

On 29 Mar 2001 16:33:48 -0800 AD in php.general, YoBro said: 

Hello,

Is it possible to have PHP resize an image on the server?

Example.
If I upload a JPG file at about 40KB at 600x480 Resolution, but I only want
to display it as a small thumbnail. But if clicking the thumbnail it then
opens in a new window the full size version.

I have seen a auction site that I use, which is ASP and when I upload an
image to sell, i notice that it gives the thumbnail and the full size
images. How is this possible?

Any links to sites on this subject would excellent.

GDLib does this sort of thing, though I haven't tried it

-- 
===
Patrick Dunford, Christchurch, NZ - http://pdunford.godzone.net.nz/

   For this reason I kneel before the Father...  I pray that out of
his glorious riches he may strengthen you with power through his
Spirit in your inner being, so that Christ may dwell in your hearts
through faith.
-- Ephesians 3:16-17
http://www.heartlight.org/cgi-shl/todaysverse.cgi?day=20010329
===
Created by Mail2Sig - http://pdunford.godzone.net.nz/software/mail2sig/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] fscanf syntax

2001-03-30 Thread Patrick Brown

I want to parse a file with the following syntax.

hostname|protocol|number|severity|description

Each record is on it's own line and have the fields delimited by the pipe
character |. The file may have thousands of records and I would like to
bring them into a database for reporting.

Some of you may recognize this a the file format of a Nessus security scan
file.

What function should I use and what would the syntax be?

Thanks,
Pat



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] fscanf syntax

2001-03-30 Thread Patrick Brown

Thanks Chris,

That worked great. I didn't know that a file could be read directly into an
array.

--Pat

"Chris Fry" [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 Pat,

 You could read the file into an array;

 $aryNessus = file("/pathtofile/filename", "r");

 Each row of the array then has one line from the file;
 Get the record count;
 $intNumRecs = count($aryNessus);

 Now read through the array and extract the values;

 for($i=0;$i=$intNumRecs;$i++) {
 $aryNessusFields = explode("|", $aryNessus[$i]);
 $hostname = $aryNessusFields[0];
 $protocol = $aryNessusFields[1];
 $number = $aryNessusFields[2];
 $severity = $aryNessusFields[3];
 $description + $aryNessusFields[4];
 // Save the data into the database here
 }


 Regards

 Chris

 Patrick Brown wrote:

  I want to parse a file with the following syntax.
 
  hostname|protocol|number|severity|description
 
  Each record is on it's own line and have the fields delimited by the
pipe
  character |. The file may have thousands of records and I would like to
  bring them into a database for reporting.
 
  Some of you may recognize this a the file format of a Nessus security
scan
  file.
 
  What function should I use and what would the syntax be?
 
  Thanks,
  Pat
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  To contact the list administrators, e-mail: [EMAIL PROTECTED]

 --
 Chris Fry
 Quillsoft Pty Ltd
 Specialists in Secure Internet Services and E-Commerce Solutions
 10 Gray Street
 Kogarah
 NSW  2217
 Australia

 Phone: +61 2 9553 1691
 Fax: +61 2 9553 1692
 Mobile: 0419 414 323
 eMail: [EMAIL PROTECTED]
 http://www.quillsoft.com.au

 You can download our Public CA Certificate from:-
 https://ca.secureanywhere.com/htdocs/cacert.crt

 **

 This information contains confidential information intended only for
 the use of the authorised recipient.  If you are not an authorised
 recipient of this e-mail, please contact Quillsoft Pty Ltd by return
 e-mail.
 In this case, you should not read, print, re-transmit, store or act
 in reliance on this e-mail or any attachments, and should destroy all
 copies of them.
 This e-mail and any attachments may also contain copyright material
 belonging to Quillsoft Pty Ltd.
 The views expressed in this e-mail or attachments are the views of
 the author and not the views of Quillsoft Pty Ltd.
 You should only deal with the material contained in this e-mail if
 you are authorised to do so.

 This notice should not be removed.



 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] PHP Authentication

2001-03-26 Thread Patrick


- Original Message -
From: "Jon" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, March 26, 2001 1:38 AM
Subject: [PHP] PHP Authentication


 Hi,

 I have read that for using PHP authentication I must be able to user
 variables such as $PHP_AUTH_USER that are only avaible when  PHP is
 installed as a module. On the other hand I am using APACHE 1.3.17 with PHP
 4.04 and I have configured Apache with the following lines:

 ScriptAlias /php4/ "C:/php/"
 Action application/x-httpd-php4 "/php4/php.exe"
 AddType application/x-httpd-php4 .php

 As I think it could be interesting to use this kind of authentication, I
 need some help for configuring PHP as a module discarding the CGI version
of
 PHP that I think I am using with the lines of code above, so I would be
very
 grateful if anyone could give some help about configuring PHP this way.

 Thank everybody,

This is all I did added this to the module airea
LoadModule php4_module d:/php/sapi/php4apache.dll
and just uncomented this
AddType application/x-httpd-php .php
hope this helps




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] PHP Apache

2001-03-19 Thread Patrick

Ok I had this working once and again it is eluding me on win98 I have
added

ScriptAlias /php/ "d:/php/"

AddType application/x-httpd-php .php .phtml

Action application/x-httpd-php "/php/php.exe"

but PHP still will not work
I have got Perl working and had PHP working but I neglected to save
the httpd.conf and now I am lost again

Thanks for the help
Pat




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] PHP Apache

2001-03-19 Thread Patrick

OK it worked Thanks for the pointers Yoshi


- Original Message -
From: "Yoshi Melrose" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, March 19, 2001 4:34 AM
Subject: Re: [PHP] PHP  Apache


 Patrick,

 Here's how i have my httpd.conf in 2000. make sure you put in the
reference
 to the isapi dll:

 LoadModule php4_module c:/php/sapi/php4apache.dll

 Load the module and it should work fine.

 - Original Message -
 From: "Patrick" [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Monday, March 19, 2001 3:13 AM
 Subject: [PHP] PHP  Apache


  Ok I had this working once and again it is eluding me on win98 I have
  added
 
  ScriptAlias /php/ "d:/php/"
 
  AddType application/x-httpd-php .php .phtml
 
  Action application/x-httpd-php "/php/php.exe"
 
  but PHP still will not work
  I have got Perl working and had PHP working but I neglected to save
  the httpd.conf and now I am lost again
 
  Thanks for the help
  Pat
 
 
 
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  To contact the list administrators, e-mail: [EMAIL PROTECTED]
 
 


 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Running script on remote server

2001-03-16 Thread Patrick Dunford

The PHP 4.0 manual contains this information:
-
Chapter 20. Using remote files
As long as support for the "URL fopen wrapper" is enabled when you configure
PHP (which it is unless you explicitly pass the --disable-url-fopen-wrapper
flag to configure (for versions up to 4.0.3) or set allow_url_fopen to off
in php.ini (for newer versions), you can use HTTP and FTP URLs with most
functions that take a filename as a parameter, including the require() and
include() statements.

Note: You can't use remote files in include() and require() statements on
Windows.

For example, you can use this to open a file on a remote web server, parse
the output for the data you want, and then use that data in a database
query, or simply to output it in a style matching the rest of your website.
-

The example in the Help shows opening a file at http://www.php.net/ with
fopen(). Are they accessing the source code of the script, or the HTML code
that is output by the PHP server when it runs the PHP script that it loads
from that location?

What I want to be able to do is, to get around the problem that the server
that I am running my site on does not have database, I want to run the
database on another server elsewhere on the Web. I want to be able to, by
fopen() -ing the page via its URL, to be passing some variables to the
script, have the remote PHP server run the script and pass back to me the
output as a file, which I can then load into my web page and display.

=======
Patrick Dunford, Christchurch, NZ - http://pdunford.godzone.net.nz/

   You are all sons of God through faith in Christ Jesus, for all
of you who were baptized into Christ have clothed yourselves with
Christ.
-- Galatians 3:26-27
http://www.heartlight.org/cgi-shl/todaysverse.cgi?day=20010316
===
Created by Mail2Sig - http://pdunford.godzone.net.nz/software/mail2sig/


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] (URL Translating) Apache, PHP, and the love of it all.... well, maybe not.

2001-03-03 Thread Jenni /or Patrick

I'm going to start with a nice simple, hopefully, questions.

Some of you may have seen PCWorld.com - and its urls that are like
http://www.pcworld.com/news/view/0,aid,3911,00.asp. This is achieved with a
product called XCache (for IIS, visit www.xcache.com), wich translates this
url into http://www.pcworld.com/news/view.asp?aid=3911.

Now, you can probably do this in regex, and use the mod_rewrite, but this is
not available to me, so we can all forget that one right away ;-).

I have created a 404-processor that does the conversion (and even checks if
the resultant page exsists, by using a simple file_exists();).

Apache (or was it PHP? Or a combination of the above?) used to, when you
said Header ("Location: /localpath"), just serve up the content, without
doing a redirect. Under Apache/1.3.17  PHP/4.0.4 this does not happen.

Is there a way to do this redirect internally - ie. the browser is not even
aware that the URL is different from the one it requested, let alone the
visitor.

And no, frames are not really an option: because it would defeat one of the
reasons I want  to do this internally, which is to prevent the need to do
two requests.

Hopefully someone will understand this (I'm sure there will be many), and be
able to guide towards something that will work.

Thanks,
Patrick.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] error handling

2001-02-14 Thread Patrick Brown

How can I disable the display of error to the browser window from within the
script? I want to do a redirect based on the error and cannot because header
info has already been sent.

Thanks,
Pat



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] error handling

2001-02-14 Thread Patrick Brown

OK, I tried the @ symbol. It seemed to just disable error checking
altogether. I have this in my code that I'd like to use.

if (!$php_errormsg) {
 header("Location: http://www.domain.com/admin/index.php");
}
else {
 header("Location: http://www.domain.com/admin/error.html");
}

"CC Zona" [EMAIL PROTECTED] wrote in message
96fcv5$2o0$[EMAIL PROTECTED]">news:96fcv5$2o0$[EMAIL PROTECTED]...
 In article 96faad$h9k$[EMAIL PROTECTED], [EMAIL PROTECTED] ("Patrick
 Brown") wrote:

  How can I disable the display of error to the browser window from within
the
  script? I want to do a redirect based on the error and cannot because
header
  info has already been sent.

 Use the "@" sign. Example

 @some_function()

 --
 CC

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Form submision probs with Javascript and PHP

2001-02-09 Thread Patrick Brown

Here's my script. This is a known working script when I use ASP. Why won't
is wotj with PHP.

function submitForm(f, strPage) {
 errormsg = "";
 if (f.login.value.length == 0) {
  errormsg = errormsg + "Please enter a login name.\n";
 }
 if (f.email.value.search("@") == -1 || f.email.value.search("[.*]") == -1)
{
  errormsg = errormsg + "Please enter a valid email address.";
 }

 if (errormsg != ""){
  alert(errormsg);
  }
  else {
  f.action = strPage;
  f.method = "post";
  f.submit();
 }
}

Here's the button.

input type="button" name="submit" value="Add User"
onClick="submitForm(this.form, 'adduser-do.php')" style="width=150;"

Any help would be great.

Thanks,
Pat



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Character translation in IE

2001-02-05 Thread Patrick Anderson

Hi,

I am using php, mysql and apache on a linuxserver to create some user
home pages,
and I have a problem with names including special chars.
If I retrieve an url including for example

/photos/BendseMartin97.jpg

everything is ok using netscape, but it doesn't display correct
using IE.

Apache error log reports: File does not exist:
/photos/BendseMartin97.jpg
Using netscape everything is ok and Apache access logs: GET
/photos/Bends%F8eMartin97.jpg


Is there a function to convert the special characters. I checked the
manual, but I only
found translation tables to html entities.

Thanks for any help,

Patrick.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Apache and PHP

2001-02-04 Thread Patrick L. Olson

I must be missing something while I had no problem getting
perl and SSI working getting PHP to work is eluding me
for some reason. I have added this to httpd.conf
can someone enlighten me on what may be missing

# And for PHP 4.x, use:
#
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps

if I call it like http://127.0.0.1/cgi-bin/one.php
with the shebang line #!php.exe
I get the following error
No input file specified
if I call it without the shebang I get
the Internal Server Error
Error logs indicate the the #! is needed
if I call it in the web root as
http://127.0.0.1/one.php4
it prints the code to the screen
any insight welcome

Thanks
going to RRTFM :)




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] PHP on PWS

2001-02-02 Thread Patrick L.

When I installed activestate perl from a cdrom,  it was an automatic install,  did all 
the
reg entries, etc.

I am somewhat of a newbie and am deathly afraid of going into the registry to install 
PHP.

I do have remote access to unix servers with php, but having it on my pc would be 
nice, too.

Is there anyone with an auto install program for win32 pws on php,  which has advanced 
beyond beta?

TIA,

Patrick L.
www.choozart.com




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Dnloading FDF docs / acrobat integration

2001-02-01 Thread Patrick Shafer

Greetings!

I am currently working on a project that creates an FDF document on-the-fly.
The end user should beable to click on a link (something like
http://whatever.com/mydoc.html?SID here) and download an FDF document.
Users who have acrobat reader installed (with the browser plugin) should
beable to simply click on the link, and reader will open, displaying the
proper pdf with the fields filled in 

The problem is:  When a user clicks on the link, the fdf document either 1)
is displayed in plain text (despite the proper header being sent) or 2)
acrobat reader opens but displays an error saying the file can not be found.

I can right click on the link, and choose to save to disk.  Once I have the
fdf document on disk, opening it will propely open its associated pdf and
fill in the fields.

Has any one had this type of problem before? could web cacheing be causing
this?  could php sessions be influencing this?

Please CC me your reply ([EMAIL PROTECTED]) as I am not on this
list.

Thanks.

-Patrick Shafer

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] test, please ignore

2001-01-31 Thread Patrick L.

testing



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Want to learn PHP

2001-01-31 Thread Patrick L.

I've been struggling with perl,  till someone said why not give PHP a shot.

Where do I start?

Aside from manuals,  are there any online courses/tutorials which will get me going?


TIA

Patrick L.

www.choozart.com




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] Funny running PHP4 on Apache, Windows 95

2001-01-11 Thread Patrick Dunford

Thanks, that works fine

 -Original Message-
 From: Brian Clark [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, 11 January 2001 14:15
 To: PHP is not a drug .
 Subject: Re: [PHP] Funny running PHP4 on Apache, Windows 95
 
 
 
 Hello Patrick, 
 
 (PD == "Patrick Dunford") [EMAIL PROTECTED] writes:
 
 PD I have this funny thing when running PHP 4 on Apache on Win95. If
 PD the script
 
 snip
 
 PD AddType application/x-tar .tgz
 PD AddType application/x-httpd-php3 .php3
 PD AddType application/x-httpd-php3-source .phps
 PD AddType application/x-httpd-php .php
 PD AddType application/x-httpd-php-source .phps
 
 Instead of all of those lines, try:
 
 AddType application/x-tar .tgz
 AddType application/x-httpd-php .php .php3
 AddType application/x-httpd-php-source .phps
 
 -Brian
 --
 Why do we ask rhetorical questions?
 
 
 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




<    1   2   3