Have you set up PHP based on php.ini-recommended? Look out for the
include_path directive in your php.ini(-recommended) and remove the
semi-colon at the beginning of the line. I assume you're used to provide
the full path for every file to be included
include("../my_include_files/inc_file.php"
further on you should tell your DBMS that not only local scripts
(users), but also external users may access your database. this is done
by modifying the table "db" in the database "mysql". with this table you
can control which hosts may access your dbs. the simplest but also most
risky way is
It looks like your web server hasn't been told to handle php files the
way the are intended to. which web server are you using? check the php
manual for installation advice - and perhaps also the web server's.
HTH steff
Joey wrote:
> Everytime i try to view a php file on my server it prompts m
Everytime i try to view a php file on my server it prompts me to download
the file then opens it up in word pad. I can view any other file just not
php.
Can anyone help me with this problem please?
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/un
php-windows Digest 18 Apr 2002 22:22:38 - Issue 1100
Topics (messages 13155 through 13182):
R: [PHP-WIN] Using Access with PHP via ODBC
13155 by: Alberto. Sartori
Creating a "nice" link
13156 by: R.S. Herhuth
13157 by: Steve Bradwell
13158 by: Nicole Amashta
Hiya...
In case you can't get sessions working, you could use javascript to post a
form to the next page... (messy I know...)
Next page
I'm not too sure about cross browser compatibility though, you might want to
try in on Netscape and IE just in case.
Hope that helps...
Matt
"R.S. Herhu
Try to access the SQL DB by IP Address. If you want to access it from
outside you LAN, The machine the SQL DB is on has to have an external
IP.
Matt Babineau
Freelance Internet Developer
e: [EMAIL PROTECTED]
p: 603.943.4237
w: http://www.illuminatistudios.com
-Original Message-
From:
Newbie alert!
I am able to connect to a SQL Server Database on my local network by
specifying the host as "testHost" the database is "DB". My question is
if I'm outside the network what is the correct syntax that I need to
call in the host in order to access the database?
Thanks,
ROn
--
PHP
I am doing some php development and testing it on my WinME system. I have
Apache installed and the only way I can get anything to execute is with a
shebang at the beginning of the file. Then the shebang is printed in the
page:( Anyone know how to get around this. I don't have this trouble with
Hello All,
I have just started with php and I thought all was well. However I will
state problem and then my procedures.
Problem: I run a .php file and I get nothing but a blank screen. I view the
source and the php code is not there indicating that apache sent it to the
php program, right? I run
Go to php.net. Type in "exec" in the search box for functions.
It shows you how to use exec and system to execute system commands and
return the output.
I have a script to ping servers on the network and get their IP's. So, it
can be done.
--
Nicole Amashta
Web Application Developer
www.aeontre
Josh,
Believe it or not, I found an effective way to do that with a batch script!
But PHP works better :)
One of the easiest ways in PHP is to use the backtick method - the `
character (just like in unix).
Example:
Works great.
-Dash
-Original Message-
From: Evans, Josh [mailto:[
what would be the best way to ping a host and return the output to a
webpage?
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
add this lines to httpd.conf :
LoadModule php4_module c:/php/sapi/php4apache.dll
AddModule mod_php4.c
AddType application/x-httpd-php .php
Guilherme dávalos <[EMAIL PROTECTED]> píse v diskusním
pøíspìvku:001b01c1e718$6b6f6b60$[EMAIL PROTECTED]
Hi,
i'm trying to run an application on Apache 1
Hi,
i'm trying to run an application on Apache 1.3 at windows 2000 professional, but it
was made on php/Linux. I suppose that i'm having the following problem beacuse the
installation of PHP on windows is CGI version by default.
the problem is:
[Thu Apr 18 12:28:00 2002] [error] [client 127.0
When I use AppacheWebServer it Works
eg.
from send.htm ->
Send this file:
I send any file eg. Setuplog.txt to site send.php ->
\n";
echo "Tmp Name: ".$_FILES["userfile"]["tmp_name"]."\n";
echo "Size: ".$_FILES["userfile"]["size"]."\n";
echo
I tried your code and it works. Although this does not actually upload a
file anywhere. It just checks that the file is in the directory set in your
php.ini (in your case, c:\inetpub\wwwroot\upload).
Make sure that this directory has the Read and Write permissions, which you
can set bu right-clic
Hello everyone,
I am pretty new to php and web development, Right now I am writing my code
in VIM which I like but I was checking around and saw a download for PHP
SiteManager. I would like to start creating object oriented php applications
I have done some java and c++, will this help?
Also wha
OK, try some debugging lines.
First off, in your php script, you didn't upload the file anywhere. You have
to do some sort of:
copy( $userfile, $pathtonewfile )
to get the file there. Then, when you check the file exists, you want to
check the path of the new file, like so:
if ( file_exists(
Sorry, you already pasted code. I am trying to do 5+ things at once ...
--
Nicole Amashta
Web Application Developer
www.aeontrek.com
"Nicole Amashta" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> >>The file is smaller than 4M and folder 100% exist on my ser
>>The file is smaller than 4M and folder 100% exist on my server.
Could you paste the code you are using (privately if you prefer)? And is the
error you are getting just that the page hangs after you submit the file for
upload?
--
Nicole Amashta
Web Application Developer
www.aeontrek.com
"Nico
Is 4mb large enough? If the file you are attempting to upload is larger than
4mb, it won't work either. Also, be sure that uploads directory exists on
the computer PHP runs on.
--
Nicole Amashta
Web Application Developer
www.aeontrek.com
"Cybero" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROT
enable_dl = on
file_uploads = on
upload_tmpd_dir = c:\inetpub\wwwroot\uploads
upload_max_filesize = 4M
---
Odchádzajúca správa neobsahuje vírusy.
Skontrolované antivírusovým systémom AVG (http://www.grisoft.cz).
Verzia: 6.0.342 / Vírusová databáza: 189 - dátum vydania: 14.3.2002
--
PHP Win
You can use embedded javascript for this.
Example:
window.location='http://path/to/next/page';";
exit; ## you may want to stop execution of rest of page here but at this
point you should be
## directed to the url set above.
?>
hope that helps some.
--
Nicole Amashta
Web Application
Make sure the path in you PHP.ini to your temp folder is setup and that path
exists. When you upload files, they are temporarily placed in this temp
directory (which you set in php.ini). Double check this exists.
good luck,
--
Nicole Amashta
Web Application Developer
www.aeontrek.com
"Cybero"
Section in my php.ini
register_globals = on
I also try $_FILES["userfile"]["name"] but nothing.
Alberto. Sartori <[EMAIL PROTECTED]> píse v diskusním
pøíspìvku:[EMAIL PROTECTED]
k.com...
If you've turned on the Global Variables you can use this:
$_FILES["userfile"]["name"]
$_FILES["userfile"
If you've turned on the Global Variables you can use this:
$_FILES["userfile"]["name"]
$_FILES["userfile"]["size"]
-Messaggio originale-
Da: cybero [mailto:[EMAIL PROTECTED]]
Inviato: giovedì 18 aprile 2002 16.42
A: [EMAIL PROTECTED]
Oggetto: [PHP-WIN] help with upload IIS php 4.1.2
H
Hi all.
I have a big problem with uploading files.
I have WINDOWS 2000, IIS, PHP4.1.2.
send.htm ->
Send this file:
send.php ->
\n";
ECHO "Orign :
have you configured your session_data path in the PHP.ini file? this may
cause php to hang if you do not have this set
-Original Message-
From: R.S. Herhuth [mailto:[EMAIL PROTECTED]]
Sent: 18 April 2002 2:00 PM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] Creating a "nice" link
I am creat
I have php 4.0.6 on Win2k and Apache ... i use session and have no problem.
If you need help setting up your php.ini for sessions, let me know.
You need to make sure that the session directory exists (the one that is
setup in yoru php.ini should point to a directory that exists. Double check
that
Hey Ron,
I am using php4, apache and win98 and sessions work ok for me, I am pretty
new to php but I have found sessions are the easiest and most practical way
to store vars, I was using cookies before...which work really well but can
get a little tedious to use when you have alot of variables be
I am creating a few links on the fly that have to pass variables to the
next page:
echo 'next page'
The problem is that I don't want that information to appear in the
address field (more like a method=post instead of a method=get). How
can I do that?
I was trying to use sessions under W2k, ph
Try this (from pscode.com):
Open("DRIVER={Microsoft Access Driver (*.mdb)};
DBQ=C:\\inetpub\\wwwroot\\php\\mydb.mdb");
// SQL statement to build recordset.
$rs = $conn->Execute("SELECT myfield FROM mytable");
echo "Below is a list of values in the MYDB.MDB database, MYABLE table,
php-windows Digest 18 Apr 2002 10:04:57 - Issue 1099
Topics (messages 13144 through 13154):
Re: PHP Warning: No File Uploaded in Unknown on Line 0 .. any ideas?
13144 by: Shrock, Court
13145 by: Ethan Nelson
Re: COM and ADODB access
13146 by: Alan Brown
pspell act
Hi,
I'm developing an application which is built on top of an existing MS
Access Database, when the DB is not opened/windows client to the DB is
opened it creates a lock, which in turn prevents PHP from accessing the
Database, is there any solutions to this?
Thanks in advance
--
PHP Window
> -Original Message-
> From: Wayne Hinch [mailto:[EMAIL PROTECTED]]
> Does this get invoked as soon as the page is opened?
>
> -Original Message-
> From: brother [mailto:[EMAIL PROTECTED]]
>
> I most often uses the standard metarefresh, you just have to echo the
> variabels you
On Thursday 18 April 2002 08:26, Wayne Hinch wrote:
> header("Location: [filename.php]");
>
> although this is not working it is bringing up the following error
>
> Warning: Cannot add header information - headers already sent by (output
> started at c:\html/customer/newcust.php:3) in [filen
Does this get invoked as soon as the page is opened?
Wayne
-Original Message-
From: brother [mailto:[EMAIL PROTECTED]]
Sent: 18 April 2002 09:33
To: '[EMAIL PROTECTED]'
Subject: RE: [PHP-WIN] Forward Link
> -Original Message-
> From: Wayne Hinch [mailto:[EMAIL PROTECTED]]
>
> -Original Message-
> From: Wayne Hinch [mailto:[EMAIL PROTECTED]]
>
> Hi all,
>
> How can I get a page to automatically forward to the next
> page currently
> I am trying to use
>
> header("Location: [filename.php]");
>
> although this is not working it is bringing up the follo
Hi all,
How can I get a page to automatically forward to the next page currently
I am trying to use
header("Location: [filename.php]");
although this is not working it is bringing up the following error
Warning: Cannot add header information - headers already sent by (output
started at c:
You can't. There isn't a compiled dll (the one you're looking for is
php_pspell.dll) but it doesn't exist. Search google for the full
explanation but the underlying idea that I got when looking for someone a
couple of months ago is that it is "thread unsafe" and so is not suitable
for running un
41 matches
Mail list logo