[PHP-WIN] Not PHP specific, but need help anyways

2002-03-19 Thread Randall Barber
Howdy-- I have a PHP script that creates links to external files that I want the user to save to disk. Specifically these are Postscript Printer Definition files (PPDs) which will be saved on a Mac or a PC. As it is, I use the following link: http://www.mypage.edu/printer.ppd";> etc... This

[PHP-WIN] GD and PHP versions

2002-01-22 Thread Randall Barber
Ok, this is rediculous-- I had 4.0.6 installed and was using GD lib with ImageCreateTrueColor(...). However, the font library was retarded and would NOT open a TTF font to save its life (abolute path given or not). So I just updated to 4.1.0 and ran my page through again and this is what I g

[PHP-WIN] Apache 1.3.22 and PHP 4.1.0

2002-01-02 Thread Randall Barber
Using both the MSI and EXE packages of the subject mentioned programs, I arrive at the same place, Apache will not run PHP. I am using NT 4.0 SP 6. I add the familiar LoadModule and AddType lines to the Apache httpd.conf file. I install Apache first, then PHP with the following error: Cannot u

[PHP-WIN] Installing w/Apache

2001-12-17 Thread Randall Barber
I have: W2K Apache 1.3.x I have downloaded: PHP 4.0.6 and PHP 4.1.0 I have used both versions with same results. I have used the MSI and tried to do it on my own. This is the error I get from Apache: c:/program filesnt/apache group/apache/conf/httpd.conf: Syntax OK [Mon Dec 17 10:39:07 200

RE: [PHP-WIN] ImageCreate

2001-07-19 Thread Randall Barber
Stuarts problem is not that gd.dll isn't uncommented, its simply no longer working since the upgrade. Thats how I understood his plight at any rate. Replace the 4.0.6 version of gd.dll with 4.0.5 and cross your fingers. Or you could compile your own. Ciao RDB

[PHP-WIN] GDLib not working

2001-07-13 Thread Randall Barber
I'm posting here because I am on a Windows platform, and serve my pages from an NT4SP6 box. Ok, I read a couple days ago that someone was having trouble with GD Lib in v4.0.6 of PHP. I'm joining the band-wagon. I missed if that person found a solution. I downloaded and installed the supplied

[PHP-WIN] Apache/PHP filtering?

2001-07-13 Thread Randall Barber
IIS supports (for lack of a better term) embedded ASP within HTML pages and still interprets it. Does such a thing exist for PHP and Apache? I've set up the PHP as a module in Apache and would like to do the following (notice the filename has a .html extension): This is a test. I realiz

[PHP-WIN] Apache and PHP

2001-07-12 Thread Randall Barber
I've downloaded PHP 4.0.6 and followed there two line instructions concerning rigging Apache for PHP interpreting: LoadModule php4_module c:/php406/sapi/php4apache.dll AddType application/x-httpd-php .php I stuck this in httpd.conf right after the commented out modules that they warn you shoul

[PHP-WIN] Apache and PHP: Sorry my bad

2001-07-12 Thread Randall Barber
My apologies... Turns out I forgot to copy the php4ts.dll over top of the old 4.0.4 dll and that was the problem. Thanks in advance to anyone that responds to my previous message. RDB

[PHP-WIN] GDlib and PDF

2001-06-29 Thread Randall Barber
Hi there, What I am about to describe was working at one point in the past, and for some reason has stopped. Because it was working, I don't think its PHP. I'll ask here at any rate. I have a page displays a form to the user. The information on this form is then used to generate a PDF file

[PHP-WIN] Uploading Files

2001-05-24 Thread Randall Barber
I have a NAGGING file upload problem. Details: Win2k, IIS5, PHP v4.0.4 As I understand this system, PHP uploads all files to a temporary place on disk. From there you can move them anywhere you want to. Well here's the scenario: Users are allowed to upload PRN files. Once uploaded I have a

[PHP-WIN] Sessions

2001-04-23 Thread Randall Barber
I am not familiar with the concept of sessions during a web browse. = >From what I gather, its just another way of passing information without = using GET and POST all over the place. The PHP docs are scanty, I guess they figure I'd know what this was. Will one of you point me toward a useful s

[PHP-WIN] Mail submisison of form data

2001-03-26 Thread Randall Barber
I have taken over a web page that submits form information to an email = address. I was wondering if there is a way in the mailto: tag to carbon copy the = message. If there is it saves me time. Otherwise, I was going to submit the results to a PHP page that simply = echo'd something like this:

[PHP-WIN] Exec and System

2001-03-09 Thread Randall Barber
I want my PHP script to execute an external program (which creates a file), then php opens this file and fpassthru(..) the file to the browser. The external exe needs a commandline arguement. This is what I have tried: exec("c:\\path\\to\\exe\\myProg.exe myValue=123456789"); This, along with s

[PHP-WIN] Slash stripping problem

2001-03-07 Thread Randall Barber
I have a tag in a form. The user inputs the following (and submits): Don't! I just used an apostraphe. The php script creates a pdf and prints the following to the pdf page: pdf_show_xy($pdf, "$str", 10, 10); Don\'t! I just used an apostraphe. I've tried stripcslash() and stripslashes()...

[PHP-WIN] CGI trouble

2001-03-07 Thread Randall Barber
I just finished writing a named-pipe client server for a project not web related. I haven't written a binary CGI for a long time and simply confused by one thing: The string submitted by a POST is given as argument 1 on the commandline of the program. Is that right? Given: a string that would

[PHP-WIN] RE: RE: HTTP HEADER

2001-02-26 Thread Randall Barber
This is what I get: Warning: Undefined variable: HTTP_REFERER in c:\inetpub\wwwroot\drew.php on line 3 Warning: Undefined index: HTTP_REFERER in c:\inetpub\wwwroot\drew.php on line 3 HTTP_REFERER is , , It is not defined and I am seriously perturbed :). I want to use Linux so badly, but I do

[PHP-WIN] HTTP Header REFERER

2001-02-26 Thread Randall Barber
In apache, the variable: HTTP_REFERER is automatically set. I don't run apache, I tried to access the variable like this in a regular script: Other variations include: $HTTP_REFERER $HTTP_X_REFERER $myVar = getenv("HTTP_REFERER"); I don't get that variable. All the mail I found in the ar

[PHP-WIN] ?Finders?

2001-02-22 Thread Randall Barber
Someone told me today that a FINDER is a snippet of code that checks remote IPs and blocks against unwanted hosts. One way I thought of doing this is from the calling server the link is a form submit (post method) which contains the HTTP_SERVER_VARS["LOCAL_ADDR"] of the server in the post info

[PHP-WIN] PDFLib

2001-02-21 Thread Randall Barber
o set? Where do the fonts go? How do I install more fonts? What is the difference between the 'host', 'winansi' etc.. things? A point in the right direction is sufficient (I don't mind reading), but if not, someone please fill in the blanks. Thank you in advance Randall Barber

[PHP-WIN] addslashes() and binary data

2001-02-09 Thread Randall Barber
A curious man is me. I have some binary data that I wish to insert into a database, and all examples I have seen have used: $to_save = addslashes($binary_data); This is supposed to escape all the characters that databases don't like. This function does not always work. Some times it is fin

[PHP-WIN] Inserting Binary Data into MS Access 2000 DB

2001-02-08 Thread Randall Barber
x27;); I have a database that has 30 elements to insert, of which, 6 are binary fields (files). Thanks in advance. Randall Barber P.S. - I even used Access Qry builder and cut/paste the statement into the script. No go. I can print the string (after substitution) and everything looks ok. Al

[PHP-WIN] File Uploading

2001-02-04 Thread Randall Barber
I have scanned the archives (probably looking in the wrong place), and have tried the code in the documentation to no avail. I need help understanding the issues of file uploading using php. Here is the setup: PHP (ISAPI) installation. PHP.INI is in C:\WINNT the two DLLs are in C:\WINNT\SYSTEM