Hey,
Now, that being said, there was a discussion on here a while ago that you
don't _really_ have to close PHP mode at the end of your file and there
were
certain pros and cons to doing so. Adapt to your needs.
Sounds like I missed a good discussion because I was awayany idea of
what
the
Ryan A wrote:
snip
Do I have to start and end the included files with ?php ? ?
Yes.
--
By-Tor.com
It's all about the Rush
http://www.by-tor.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Wednesday, January 21, 2004, at 05:11 AM, Ryan A wrote:
Do I have to start and end the included files with ?php ? ?
Did you try it? Then you'd have your answer :)
Did you read http://www.php.net/include/ ? Because all the examples
show what you need to know too.
Read the manual, and
On Tue, 2004-01-20 at 18:07, Justin French wrote:
On Wednesday, January 21, 2004, at 05:11 AM, Ryan A wrote:
Do I have to start and end the included files with ?php ? ?
Did you try it? Then you'd have your answer :)
Did you read http://www.php.net/include/ ? Because all the
I think I must be missing something but this command isn't renaming the
file specified... Pointers, tips appreciated!
system(rename('/path/to/new.sh', '/path/to/old.$today'));
/to directory has permissions set to current user and is also owned by
the current user (test_user)... I can write
Jas wrote:
I think I must be missing something but this command isn't renaming the
file specified... Pointers, tips appreciated!
system(rename('/path/to/new.sh', '/path/to/old.$today'));
/to directory has permissions set to current user and is also owned by
the current user (test_user)...
Hi jason,
Quoting Jas [EMAIL PROTECTED]:
system(rename('/path/to/new.sh', '/path/to/old.$today'));
I don't think this is correct syntax. Either use the php rename function like
rename('/path/to/new.sh', '/path/to/old.$today');
or if you want to use system then use
system (rename
Roger Spears wrote:
Try this:
system(rename('/path/to/new.sh', '/path/to/old.$today'));
Actually, it should be this:
rename('/path/to/new.sh', '/path/to/old.$today');
--
paperCrane Justin Patrin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Folks,
I did the fillowing install
./configure --prefix=/www --with-mysql --withmssql=/usr/share/freetds --with
-apxs=/www/bin/apxs --enable-track-vars --with-config-file-path=/www/conf
When I try access the index..php via the web the file it tries to download.
I checked all
of the config
--- Patrick Fowler [EMAIL PROTECTED] wrote:
When I try access the index.php via the web the file it tries to
download.
Try adding this to your httpd.conf:
AddType application/x-httpd-php .php
Hope that helps.
Chris
=
My Blog
http://shiflett.org/
HTTP Developer's Handbook
Just found it. If anyone is interested,
$src_image=myImage;
$picsize=getimagesize($src_image);
$source_x = $picsize[0];
$source_y = $picsize[1];
echo $source_x. x .$source_y;
Thanks anyway,
Voodoo
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Harry Yau [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hi all,
I am writing a HTML page to gather whole bunch of information
provided by user and pass it to the PHP script to generate a report base
on these information. Namely, user inputs data in textfields of a HTML
FORM.
Hello all!
I'm having problems getting the below working. I'm actually trying to
get a telnet socket connection working but I figured that getting it
to talk a web server would suite the same purpose to begin with.
Any ideas why it stops right after the comment Getting welcome banner
stuff?
doe anyone quickly have a working
4.3.1 php.ini file, under apache 1.3.27 and redhat 7.2
that I could take a look at...for reference...
you see, I think ours is missing some lines...
of commands or something...it just doesn't look right
something is missing...I think.
so I need a good one that
[EMAIL PROTECTED] wrote:
doe anyone quickly have a working
4.3.1 php.ini file, under apache 1.3.27 and redhat 7.2
that I could take a look at...for reference...
you see, I think ours is missing some lines...
of commands or something...it just doesn't look right
something is missing...I think.
so
Matt Palermo wrote:
My question is can I search the session folder for:
cf4c4f6a8cffaf3334df48b6ea1d55e4 (or any other session id) to see if
that session still exists and is active, or if it is gone and doesn't
exist anymore? Can this be done? Please let me know if you have any
thoughts.
It
.
Matt
-Original Message-
From: Jean-Christian Imbeault [mailto:[EMAIL PROTECTED]
Sent: Monday, June 09, 2003 9:50 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Re: working with sessions
Matt Palermo wrote:
My question is can I search the session folder
Your original post is below for thos who want to read it :)
I see what you mean now.
Off the top of my head I think a better approach would be this:
- user logs in, his name and a timestamp are added to the list of active
users
- every time a user accesses a page on your list his timestamp is
Ok, I'm having problems with configuring all the things together. I have loaded on Php
4.3.1, Mysql, IIS 5.1 and Dreamweaver MX, but I can't get php to work from
dreamweaver, well i can't say it works at all having used a piece of code to check php
works in html. I have installed php but I get
:
PHP isn't working in my html docs - what changes do I need to make to get
it
to do so? Does it need to be recompiled? Can I do it without
re-compiling?
Give your file a .php extension, maybe?
---John Holmes...
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe
:
PHP isn't working in my html docs - what changes do I need to make to get
it
to do so? Does it need to be recompiled? Can I do it without
re-compiling?
Give your file a .php extension, maybe?
---John Holmes...
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe
PHP isn't working in my html docs - what changes do I need to make to get
it
to do so? Does it need to be recompiled? Can I do it without
re-compiling?
Give your file a .php extension, maybe?
---John Holmes...
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http
PHP isn't working in my html docs - what changes do I need to make to get it
to do so? Does it need to be recompiled? Can I do it without re-compiling?
Thanks,
-Mike
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
!
---BeginMessage---
PHP isn't working in my html docs - what changes do I need to make to get it
to do so? Does it need to be recompiled? Can I do it without re-compiling?
Thanks,
-Mike
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
---End
PROTECTED]
Sent: Thursday, November 07, 2002 2:16 PM
Subject: [PHP] PHP not working in html
PHP isn't working in my html docs - what changes do I need to make to get
it
to do so? Does it need to be recompiled? Can I do it without
re-compiling?
Thanks,
-Mike
--
PHP General Mailing List
And add this line:
AddType application/x-httpd-php .php .htm .html
Do a search for parse html php for more help.
-Kevin
- Original Message -
From: Mike At Spy [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, November 07, 2002 2:16 PM
Subject: [PHP] PHP not working in html
On Friday 08 November 2002 05:35, Mike At Spy wrote:
There isn't any .htaccess file in the directory - I added one with the line
you specified, and my directory comes up with a 'server misconfiguration
error'. Any other ideas? :)
You may have to put it inside a directory container:
Hey there check out this URL
http://www.php.net/manual/en/installation.php
-Lee
Mike At Spy [EMAIL PROTECTED] wrote in message
news:GKEFLEHIPEGIFEECKBNEAEHCGMAA.spycobalt;spyproductions.com...
PHP isn't working in my html docs - what changes do I need to make to get
it
to do so? Does it need
Use mod_ssl if you are doing apache.
Have a look at:
http://www.modssl.org/source/exp/mod_ssl/pkg.mod_ssl/INSTALL
Jc
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
HEY everyone,
esp all of you who tried to help me,
For all of you that are curious how.
Sheets Jason got to the problem
it was my proxy setting that was wrong.
I took his advise and went to the settings under tools-connections and checked the
bypass proxy for local addresses and it did
Am I the only one who seems to be irritated by the tremendous amount
of settings you have to do on the IIS Server if testing a PHP Script...
I am testing a Self modifying Script runs perfectly on Apache 1.3 /PHP4.2.1
However it is meant to sick Chunks of code at the beginning of my File...
Hence
On Mon, 15 Jul 2002, Kondwani Spike Mkandawire wrote:
Am I the only one who seems to be irritated by the tremendous amount
of settings you have to do on the IIS Server if testing a PHP Script...
You are not alone, I am irritated by IIS everytime I am forced develop
for it.
I am testing a Self
I got it fixed by changing the Max Execution Time in the
php.ini file... However, this is ridiculously slow... Does
anyone else have any idea how I can run through a 4 MB+
Database checking 2 fields Without having to wait longer
than 30 seconds... If it was a simple text file it would
have
On Tue, 9 Jul 2002 16:31:50 -0230, you wrote:
http://www.coop.mun.ca/verification.php
Try and Type in any Name... As it should simply
Step through the Database not find it and Respit the Page...
However this does not happn...
Please Help...
if (function_exists(odbc_fetch_array))
Index your database on the name and password fields and issue this query
Select count(*) where name = '$namevar' and password = '$passvar'
If count 0 you have a hit, proceed with rest of authentication, else send
appropriate error msg.
Whatever you do, DON'T make sequential searches through a
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
If you use win xp pro try use phptriad is working in my winbox ,
phptriads include = apache+mysql+php. You can download in sourceforge.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Glory!
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
I just downloaded the new version of PHP. I installed it and I am using
Omnicron HTTPD server version 2.09. The PHP that came with the server works,
but when I installed the new version of PHP from PHP.NET, I got the
following error.
!--- Error Message
Security Alert! PHP CGI cannot be accessed
If you have lots (let's say 100 or 200) of functions() in PHP does this
slow everything down a lot? How is the interal working of a function?
Warm regards,
Emile Bosch
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:
I have been trying to get FreeType working with PHP but have had no
luck. In Apache's error log i'm getting:
PHP Warning: libgd was not built with TrueType font support
Here's the lines that are probably pertinent from my web server
compilation script. Any suggestions on how to fix
]; [EMAIL PROTECTED]
Sent: Tuesday, August 21, 2001 10:10 AM
Subject: Re: [PHP] Need Working... pop up dialog (repost)
It's due to space restrictions on the server. We have 300GB available
on the server, but the compressed data takes up 200GB, and we're adding
new data (several GB) every month or so
It's due to space restrictions on the server. We have 300GB available
on the server, but the compressed data takes up 200GB, and we're adding
new data (several GB) every month or so.
So we need to keep as much compressed as possible, but we have to
uncompress the data for the webpages to use
On Tuesday 21 August 2001 17:10, Ray Clouse wrote:
So we need to keep as much compressed as possible, but we have to
uncompress the data for the webpages to use it. The PHP webpages on
the server use the uncompressed data to generate plots. The data is
never sent to the user, just the
Another part of this is an external program on the server that can't
read from the gzipped file. The file has to be uncompressed,
unfortunately. The resulting uncompressed file is recompressed through
a cron job after 30 days if it hasn't been used for 30 days.
I came up with something that
Subject: Re: [PHP] Need Working... pop up dialog (repost)
It's due to space restrictions on the server. We have 300GB available
on the server, but the compressed data takes up 200GB, and we're adding
new data (several GB) every month or so.
So we need to keep as much compressed as possible, but we
I'm trying to get a working... informational dialog or window going
with my PHP page but I'm not getting anywhere. Here's the situation:
When the user clicks on a link that has to gunzip a very large file, I
want a popup to say Working... while the file is uncompressing.
Then, when the file is
Ray Clouse wrote:
When the user clicks on a link that has to gunzip a very large file, I
want a popup to say Working... while the file is uncompressing.
Then, when the file is uncompressed, I want the Working... popup to
close itself and then the parent window to load a new URL (where it
Just trying to see...
--
Matt
--
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]
Very strange situation, PHP Version 4.0.3 on one of my production web
servers has started to loose different functionality?? The OS is
Apache/1.3.12 (Unix) (Red Hat/Linux 6.2) PHP/4.0.3 mod_perl/1.21, PHP was
compiled as a module with apxs. The strange thing is, some virtual host
directories have
Just wanted to post a quick note to thank those of you who offered
suggestions regarding my posts re: php not working and php STILL not
working. I've been deedle-dinking around with it off and on since Sunday,
and after a multitude of ./configures makes make installs and whatever else
I even tried the LoadModule trick, but since I didn't compile as a
module, that just gave me an error when I restarted the server.
And therein lies the rub.
If you compiled as a stand-alone binary (aka CGI) you don't want AddHandler,
you want Action.
Something not unlike:
Action
]]On
Behalf Of brent
Sent: Sunday, June 24, 2001 7:49 PM
To: Php-General@Lists. Php. Net
Subject: [PHP] php not working
Hi. Need help badly.
I've been trying in vain to get PHP 4.0.5 working with Apache 1.3.20.
Red Hat 7.0
I've added the lines:
AddType application/x-httpd-php .php
Hi. Need help badly.
I've been trying in vain to get PHP 4.0.5 working with Apache 1.3.20.
Red Hat 7.0
I've added the lines:
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
to my httpd.conf file
and :
application/x-httpd-php php phtml pht
I've added the lines:
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
to my httpd.conf file
Maybe try adding:
AddType application/x-httpd-php4 .php
instead of:
AddType application/x-httpd-php .php
It depends on how you did the
php.exe
he's using redhat ... so there might be a _very_good_ possibility that he doesn't have
php.exe laying around.
lenar.
Jason Lustig [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
I've added the lines:
AddType application/x-httpd-php .php
Jason et. al.,
Thanks for the suggestion, but I'm still up the creek. I've seen some posts
about AddHandler, so I tried adding the following to the .conf file:
AddHandler php-script .php
but again, with no success.
Any other ideas? TIA again.
Brent
Jason Lustig wrote:
I've added the
gosh, i just downloaded the new PHP file from
www.php.net, the file i downloaded is :
***
PHP 4.0.5 [4,590Kb] - 30 April 2001
(CGI binary plus server API versions for Apache,
AOLserver, ISAPI and NSAPI. MySQL support built-in,
many extensions included, packaged as zip)
***
i'm using win98 PWS
if you get a page full of html - the output of
phpinfo() - or some error messages. If you get the html, then php is working
fine but your PWS configuration is not.
Cheers
--
Phil Driscoll
Dial Solutions
+44 (0)113 294 5112
http://www.dialsolutions.com
http://www.dtonline.org
--
PHP General Mailing
php.exe, type php.exe -i and see if you
get a page full of html - the output of
wow - i did this thing, and YES! i did get a whole lot
of HTML tags so that means my PHP is working fine.
than what the hell is the problem with my PWS it
was working great with the earlier version. i didn't
change
Correct line:
setcookie ("user_reg[1]" , "$pass_w", $lifetime, "/",
".mydotcom.com");
Now look at this line:
setcookie ("user_reg[2]" , "$full_name", $lifetime, ".mydotcom.com");
Don't you just hate it when you forget a "/"? ;)
--
Plutarck
Should be working on something...
...but
hi peoples, Im going insane here, I have this script working great except
two things ...
for one , the sql query returns an error that couldnt run the query...
and the second is that the variable $user_reg[2] holds nothing even though
I cheked the html form and also checked the cookie variable
this is opening home.php instead of the test include file..whats wrong?
tabletrtda href="home.php?Name=test"bTest/b/a/td
td? include("$Name.inc"); ?/td/tr/table
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL
What are you wanting to do? Let's assume :
a. You want soon-to-be-included file names to depend on values
passed through the url QUERY_STRING (links). (also, be careful)
b. The file containing this code is called home.php
Let's slightly modify your code :
tabletrtda
Well Im trying to use a template system for pages. php4 bible lists it as
sort of a GET method of handling links rather than creating all of the
pages, you just use template with includes
What are you wanting to do? Let's assume :
a. You want soon-to-be-included file names to depend on
Hello..i'm veri tired, and i am going to require your help.
I need to make some operations with a cuadratic curve. But with the current php
code...
?php
$curve = new Java("java.awt.geom.QuadCurve2D.Double")
?
... i get this error:
Warning: java.lang.ClassNotFoundException:
this is a PHP list.
your problem is with java, not PHP
-Original Message-
From: Celestino Roberto Alejandro [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 15, 2001 3:34 PM
To: Lista PHPGral
Subject: [PHP] Error working
Hello..i'm veri tired, and i am going to require your
For data validation, I am using the following regex:
$Status = (ereg("^(^[A-Za-z0-9` !@#$%()=:;\"\'.?/^|{}-]*)(.*)$", $String,
$List));
This works perfectly for the moment. However, I need to add both square
brackets [] to the list of allowed characters above.
But when I add the closinjg
Did you try escaping it with the \?
At 04:51 PM 3/6/01 +1000, Murray Shields wrote:
For data validation, I am using the following regex:
$Status = (ereg("^(^[A-Za-z0-9` !@#$%()=:;\"\'.?/^|{}-]*)(.*)$", $String,
$List));
This works perfectly for the moment. However, I need to add both square
For data validation, I am using the following regex:
$Status = (ereg("^(^[A-Za-z0-9` !@#$%()=:;\"\'.?/^|{}-]*)(.*)$", $String,
$List));
This works perfectly for the moment. However, I need to add both square
brackets [] to the list of allowed characters above.
This is JavaScripts RegEx
Yes.
Did you try escaping it with the \?
At 04:51 PM 3/6/01 +1000, Murray Shields wrote:
For data validation, I am using the following regex:
$Status = (ereg("^(^[A-Za-z0-9` !@#$%()=:;\"\'.?/^|{}-]*)(.*)$",
$String,
$List));
This works perfectly for the moment. However, I need to add
I just installed php as an apache DSO module
on the first try of a phpinfo(); it worked
just as it should, then I loaded phpmyadmin
and now when I make a request for a php file
it tries to download, my httpd.conf file seems
to be in order...any ideas?
Jerry Lake- [EMAIL PROTECTED]
Addressed to: "Jerry Lake" [EMAIL PROTECTED]
[EMAIL PROTECTED]
** Reply to note from "Jerry Lake" [EMAIL PROTECTED] Mon, 26 Feb 2001 12:58:35 -0800
I just installed php as an apache DSO module
on the first try of a phpinfo(); it worked
just as it should, then I loaded
After hours of pulling my hair out and staring a C code I don't understand,
I almost have a generic PHP multiplexing TCP server running. Basically
right now multiple clients can connect and be recognized by the server and
the server is aware of incoming input from the clients.
This is mostly
I am trying to run PHP in Windows '95 with Apache server. I followed all
the instructions in the installation doc, including editting the Apache and
PHP configuration files, and putting the PHP.INI file in my Windows
directory, and when I try to run a PHP file, I just see everything from the
Hello Phil,
(PS == "Phil Scopes") [EMAIL PROTECTED] writes:
PS I am trying to run PHP in Windows '95 with Apache server. I followed all
PS the instructions in the installation doc, including editting the Apache and
PS PHP configuration files, and putting the PHP.INI file in my Windows
PS
101 - 176 of 176 matches
Mail list logo