Hello,
I am a ASP, VB developer, and new to PHP world, in ASP they is an object
name Application and Session use to store variable. i wondering in PHP is
they any object like that. How do i store variable, that can access
multiple pages
-
Sorry, should have mentioned -- if you are doing it on windows, then try
something like this:
include(getcwd().'\\path\\to\\file\\test.php');
-Mike
At 01:37 PM 5/23/01 +0700, you wrote:
>help...!!
>
>ilustration:
>i got trouble with include on the virtual directory...
>
>a myfile.php -->> incl
Try... include(getcwd().'/path/to/file/test.php');
-Mike
At 01:37 PM 5/23/01 +0700, you wrote:
>help...!!
>
>ilustration:
>i got trouble with include on the virtual directory...
>
>a myfile.php -->> include file on directory includes/test.php
>
>why it shouldn't work?. when i moved my file test.
You need to specify the full path (unless you're using the include_dir
setting in php.ini).
ie. include ("d:/inetpub/wwwroot/project/includes/test.php");
OR
include (get_env("DOCUMENT_ROOT")."/includes/test.php");
Ignatius Teo
Project Manager, Internet Access Services
Information Technolog
help...!!
ilustration:
i got trouble with include on the virtual directory...
a myfile.php -->> include file on directory includes/test.php
why it shouldn't work?. when i moved my file test.php from directoy
includes, with the same level of myfile.php directory it's work ?
examples: include "t
Brendan wrote:
> Thanks guys
>
> sorry about the delay .. I am in Australia..
> checking the time each loop would only work if the loops complete
correctly
> .. if the process locks mid loop php wont reach the criterion break
because
> it deals with each command linearly. ie
>
> for (x=0;x!="array
Thanks alot, it is nice to get a quick response when you are new to
something. Everything is working fine it just had me a bit concerned.
"Ignatius Teo" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> You have error_reporting set to E_ALL in your php.ini - which
Try $GLOBALS["HTTP_POST_VARS"]...
-Original Message-
From: juanma cola [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, 22 May 2001 22:40
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] problems with php_track_vars. please help
I have the following code in two files:
First file:
DELETE DOCUMENTS
In that case put the timing loop INSIDE dothisfunction() and rather than
breaking out of the loop, execute a return to the calling script.
Ignatius Teo
Project Manager, Internet Access Services
Information Technology Directorate
Southern Cross University
PO Box 157, Lismore NSW 2480
Email: iteo_a
You have error_reporting set to E_ALL in your php.ini - which is probably a
good thing, because it's telling you that these variables have not been
defined. You could set error_reporting to a lower setting like E_ALL &
~E_NOTICE instead, but the preferably fix would be to define these variables
fi
I also have this configuration and have no problems, allthough I'm handling
the database calls using ODBC functions instead of the php-mssql70.dll
extension.
Why don't you try it, it might fix the problem.
Also IIS really hates the ISAPI module, so it's best to change to
Well PHPFAN,
I think we're all fans, but what the heck.
I'm using the same configuration you are. Are you using PHP in CGI mode or
ISAPI mode. It doesn't like ISAPI so don't use it. I had similar problems
with ISAPI.
Also, I think the fdf module that shipped with 4.0.5 might be kind of funny
so
Zak Greant wrote:
> Johan Lundqvist wrote:
> > This is a way of doing it:
> >
> > $s = time() + 10;
> > for ($i = time(); $i <= $s; $i++) {
> > print $i;
> > }
> >
> > Will run for about ten seconds...
>
> Did you leave a bit of code out?
> In most cases, this will run for only a fe
I get the following errors when loading admin.php
Warning: Undefined variable: SCRIPT_FILENAME in
c:\inetpub\wwwroot\phpnuke\html\admin.php on line 393
Warning: Undefined variable: wdir in
c:\inetpub\wwwroot\phpnuke\html\admin.php on line 397
Warning: Undefined variable: cancel in
c:\inetpub\ww
I am running PHP 4.0.5 on Windows 2000 with SQL server databases.
If there is an error with my PHP code, my computer becomes very very slow
and nothing works. The PHP
process is using 99 % of the CPU. So I have to restart the computer. This
happens everytime there is an error in
my PHP code. For
Are you running PHP through ISASP or CGI? If you're not I'd recomend
switching to CGI or if you don't have any ASP code switch to Apache.
andrew
-Original Message-
From: PHPFAN [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 22, 2001 14:03
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] php 4.0/w
Hi John,
It's probably a good idea to consider installing the Apache server on
another port, just to interface with the database persistently.
Funny that PHP doesn't have the equivalent of "ASP Application Object".
-Original Message-
From: Asendorf, John [mailto:[EMAIL PROTECTED]]
Sent
When ever I am trying to access a php file with an error,my system is
overwelmingly slowing down and restarting is the only solution.
Previously I worked on linux/apache/php 4.0/mysql ,I never had such
problem.I used to get some errors and I used to correct them but working in
this environment is
Thanx Brian but I allready resolved the problem by switching the web server
from IIS 5 to Apache aparentrly IIS has problems setting cookies from PHP
scripts.
I'll still try your files and tell you what happened ok.
Later.
-Original Message-
From: Brian Little [mailto:[EMAIL PROTECTED]
php-windows Digest 22 May 2001 20:03:44 - Issue 612
Topics (messages 7803 through 7845):
Re: OK, I'm officially screwed if I can't get some suggestions
7803 by: Jason Gan
7808 by: Johan Lundqvist
7812 by: Paco Ortiz
7813 by: Svensson, B.A.T.
7815 by:
I'm not to clear on exactly what you meant.
What I tried with your code was to add these lines
print "";
print "";
print " document.frmForm.earnType.name = \"earnType[]\" ";
print "";
prior to my submit button
print "";
I still get a single value returned.
Vasu Gokaraju wrote:
> I think we
Can't say I know what the problem is, but here are two test files, that work
on my Windows 2000, IIS 5, SQL 7 machine. Let me know if you have a problem
with them and maybe we can find the problem.
Brian
"Iván Milanez Castellanos" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
>
I'll back that up, I ended up having to reboot constantly to clear out a
stalled IIS service.
Two problems with stored procedures, no return value and no output
parameters. You'll need to reformat all your procedures to have a SELECT
statement return those values.
I've been told that the 4.0.6
I want to try to fix the character truncation problem when using an mssql
database, but I can't seem to figure out how to compile PHP under VC 6. I
have searched all over the site for some insight into what to do, but I am
still having problems creating/finding TSRM.mak. Any and all help would b
I think we can handle this by changing the element name before you submit
the form.
For example, you have a select box like:
Value1
Value2
before you submit the form, change the tag name like this
document.frmForm.selTest.name = "selTest[]";
It worked for me with multiple check bo
You can only have one service listening to any TCP port at once, so you'd
have to bind IIS to a different port number (say, 8080) than Domino R5; this
is not difficult. Same is true for SSL (if Domino uses 443, then use
another port for IIS https). There's no reason (assuming you have
sufficient
LATEST UPDATE:
It looks like I've found my culprit...
I have an include (dl_app.inc) which contains the following lines:
These lines are eating up 12-14 second of the 14-16 second run time... (EVEN
WITH THE connection check commented out i.e. the check didn't seem to make
any difference) I ge
Hi,
First of all. NEWBIE ALERT!.. For all those still here, I have a
question. I currently have an NT server using Domino R5 as the web server.
It is our production machine. I want to gradually get rid of it and use php
and IIS (Apache later but have to use IIS to start.)
Can I have both web
Svensson, B.A.T. wrote:
> I am not sure I get what it is you want to do
>
>
>> Situation:
>> I'm using a DB query to bring back a list of values to populate a
>> selection box on a form. I would like the user to be able to select
>> multiple values.
>
>
> I dont understand this. You c
Sorry Matt,
That returns
Key: 0, Value: Array
If you don't mind, point out the suspect HTML
Matt Williams wrote:
> Hi Michael
>
> Sorry brain fade
>
> Try changing your selectname to earnType[]
>
>
>> print "";
>
>
>> print "";
>
>
> Also I don't know if that's all your code but there i
Aha, an ex-ASP programmer!
I've heard that the stop and start is faster, but it really doesn't matter
with PHP. In ASP its an issue because ASP does a context switch every time
from HTML to the VBScript/JScript compiler. PHP doesn't do any context
switches so there's no overhead to stop and start
I am fairly new to PHP and am right now writing my first complicated
script. There is a lot of HTML in the page and I was wondering which
method is faster. To always be inside the tags or to stop and
start.
Here is a quick example (not necessarily a good one)
OR
";
Hi Michael
Sorry brain fade
Try changing your selectname to earnType[]
> print "";
> print "";
Also I don't know if that's all your code but there is some suspect html in
there
M@
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional co
I am not sure I get what it is you want to do
>Situation:
>I'm using a DB query to bring back a list of values to populate a
>selection box on a form. I would like the user to be able to select
>multiple values.
I dont understand this. You can only select one item from a selct box(?).
>As
My idea NO WORK,
I tried replacing the value = \"%s\" with versions of
value = \"$earnType\"[]
value = \"$earnType[]\"
value = earnType[]
value = $earnType[]
Still not what I'm looking for
Michael Kelley wrote:
> I tried the [] inside & outside the quotes, only difference was that
> inside
I tried the [] inside & outside the quotes, only difference was that
inside gave me
Key: 0, Value: ACL[]
outside gave me
Key: 0, Value: ACL
Since we changed the %s to an array I changed the Explode statement and
the while Got the message that $earnType not an array .
Got an idea .
Nope, output is now
Key: 0, Value: ACL[]
instead of
Key: 0, Value: ACL
Matt Williams wrote:
> Hi Michael
>
> Try changing this line
>
>
>> printf("%s",
>
>
> To
>
> printf("%s",
>
> This should solve your problem
>
> HTH
>
> M@
--
Michael Kelley
[EMAIL PROTECTED]
Hi Michael
Try changing this line
> printf("%s",
To
printf("%s",
This should solve your problem
HTH
M@
--
PHP Windows 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
Situation:
I'm using a DB query to bring back a list of values to populate a
selection box on a form. I would like the user to be able to select
multiple values.
As it stands my code is only returning the last value selected.
I plan to use the selected values to run more queries so I believe the
It sure can.
example: $result = mssql_query("execute your_proc '$your_var',
$another_var");
note that you will probably have to go with the CGI version under IIS as the
ISAPI one is EXTREMELY unstable when used with MS SQL Server in my
experience.
Pavel
- Original Message -
From: "Scot
So we can exclude the hardware then. :) Assuming the queries runs
for about the same time in the RDBMS', then I would like to agree
with Johan Lundqvits: It seams to be something wrong on (ISO)
Transport, Network, Session level, etc.
Maybe you should review which transport protocols are used with
Hi-
I was using PHP on WinNT at my old job, when they closed I took this
new job where everything is/was done in ASP 3.0. Now I have been
told that I am welcome to explore other options--translation, I can
use PHP again :)
This db they have set-up does a ton of stored procedures and functions
i
No noticeable delays coming out of anything else I'm afraid. Everything
else seems to blaze...
-
John Asendorf - [EMAIL PROTECTED]
Web Applications Developer
http://www.lcounty.com - NEW FEATURES ADDED DAILY!
Licking County, Ohio, USA
740-349-3631
Aliquando et insanire iucund
1) About the only difference is the server where the dbs reside and they are
still VERY similar. Other than that, wiring is similar or identical and the
databases are quite a bit difference, but our Oracle dba (who I trust to the
nth degree) says the db is indexed as well as he can imagine indexi
I'd be happy to send these scripts via email to anyone who would request
them, but I don't want to post them to the forum.
-
John Asendorf - [EMAIL PROTECTED]
Web Applications Developer
http://www.lcounty.com - NEW FEATURES ADDED DAILY!
Licking County, Ohio, USA
740-349-3631
A
We thought so too, but other scripts and ASP stuff runs fine...
Regular http, firewal gets banged pretty hard all day. Client for this app
are on the private side.
-
John Asendorf - [EMAIL PROTECTED]
Web Applications Developer
http://www.lcounty.com - NEW FEATURES ADDED DAIL
I have the following code in two files:
First file:
DELETE DOCUMENTS
FILE NAME
";
$connId = ftpConnect();
$dir = ftp_pwd ($connId);
$list=Array();
$list=ftp_nlist($connId, "$dir");
$i=0;
$number = count($list);
for ($i = 0; $i < $number; $i++) {
$destinationFile = getFi
hi,
I have pbs with sessions. I would like to know first how to do , (enable
or
disable) about sessions in the php.ini file while I don't want to use
cookies
on the client at all.
I suppose I must put the id myself in each page. About this pint, I'd
like
to check something : if in my application
Hi,
I have installed php with windows installer and i would like
to add extensions but these ones doesn't work with my module
so I would like to install php again.
I would like to know where to put where the php.exe file is located.
In the Personal Web Server I don't find the place and in the
reg
>for ($x=0; $x < 10; ++$x) {
>
>if ( (0 === ($x % 1000)) && (time () - $start_time) > $timeout)
>break;
>
>echo ($x, '');
>}
I am a little bit conservative when it comes to use
the break-statement, and the rule of thumb I uses is;
any singular block sh
>I don't think that it's an SQL issue. Searches on the customer "Smith" run
>through and back (including formating the data) in about 3.5 seconds (per
>the timer in the script) but take about 15 seconds to see a response on the
>client. The whole building is base-T and fiber
Sound like the
My File field is named FILENAME, and I copy it into ./download directory
(from the uploadtemp dir defined in php.ini)
In php.ini, I have parametered 2 lines :
file_uploads = On; Whether to allow HTTP file uploads
upload_max_filesize = 2M ; Maximum allowed size for uploaded files
My for
>I've tried making the code as clean as possible, and the scripts themselves
>seem to be running very fast. Would sessions be the most likely culprit
for
>my speed loss? It's (the slowness) threatening to kill the whole
project...
>We have a similar ASP/M$SQL server application (vendor product)
Hi,
perhaps I am missing something, but I want to help,
>PHP 4.0.4. IIS 4, Oracle 8 client, Oracle 7.3.4 backend, webserver in DMZ
could it be that you need Oracle 7.3.4 client software, instead using Oracle8?
Then you would use Ora_Logon (OCI7), instead OCILogon (OCI8)
I experienced some mont
U R right Zak, I'm a bit dizzy today, thanx.
--
PHP Windows 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]
Johan Lundqvist wrote:
> This is a way of doing it:
>
> $s = time() + 10;
> for ($i = time(); $i <= $s; $i++) {
> print $i;
> }
>
> Will run for about ten seconds...
Did you leave a bit of code out?
In most cases, this will run for only a few milliseconds. :)
Try something like
This is a way of doing it:
$s = time() + 10;
for ($i = time(); $i <= $s; $i++) {
print $i;
}
Will run for about ten seconds...
/Johan
Brendan Gogarty wrote:
>
> hi,
> just wondering if there was any easy way to break/escape from a loop
> (for loop) if the loop exceeds a maximum time.
> I r
Sounds to me like it might be the firewall messing things up.
Are the clients connecting with https? What's the workload on the
firewall?
You said that the web server is in the DMZ. Where are the clients? On
the Private or Public side of the firewall?
/Johan
"Asendorf, John" wrote:
>
> I don't
On Tuesday 22 May 2001 09:39, mihai wrote:
> > I can install PHP on PWS for Windows.
> I follow the instructions but when run a php script i have an error message
> Error message: 500 internal server error.
>
> Thank you
>
Howdy
I am trying to get a picture gallery going on a family site. I want
family members to be able to upload scans, and the gallery code
to display them. I have the gallery code working fine, but I cannot
get uploads to work at all.
IIS 5 + Windows 2000 Professional + PHP 4.05 (I have also t
Hi,
>global $titel;
> $titel='html'
missing colon;
> $db = mysql_connect("localhost", "root") or die ("Kan geen connectie
> maken met het database programma. De Database server kan uit staan.");;
> mysql_select_db("setf",$db) or die ("Kan geen connectie maken met de
> database");
>
> $r
I can install PHP on PWS for Windows.
I follow the instructions but when run a php script i have an error message
Error message: 500 internal server error.
Thank you
Mihai
Hi John Asendorf,
Can you supply a short example of the PHP code, so that someone can suggest
ways of optimising it?
What do you mean "sessions via files"? Do you mean PHP's built-in support
for sessions?
Maybe it's just the server having a bad day.
-Original Message-
From: Asendorf, J
php-windows Digest 22 May 2001 07:52:20 - Issue 611
Topics (messages 7789 through 7802):
OK, I'm officially screwed if I can't get some suggestions
7789 by: Asendorf, John
7790 by: Asendorf, John
7791 by: Tim Uckun
7792 by: Asendorf, John
Question about TRUE
Hi, I've got a problem with variables.
I am trying to make a select staement for mysql using a variable in the
where clause. If i don't use the variable the result comes out fine but
with it there are parser errors on other lines. Can anybody tell me how
to insert a variable in such a script.
65 matches
Mail list logo