I've since tried that also. It too seems to return the same error. I'm
curious if the file_exists can't use relative positionslike it has to be
in the same folder or you have to use the whole line like c:\ I'm
working on a box that isn't mine of the net...if that's the case I don't
know
Hello Prolog,
If course it doesn't use relative positioning.
You should do it like that file_exists("images/...") instead of
("/images/..."). That's all :)
P> I've since tried that also. It too seems to return the same error. I'm
P> curious if the file_exists can't use relative positions
One source for raq 3 users like myself said to edit it for php and do this:
Line 203:
($rc, @ARGV) = &Getopts("qn:gco:I+D+L+l+S+W+iaA",
@ARGV);
This line should read as I have above. Normally its:
($rc, @ARGV) = &Getopts("qn:gco:I+D+L+l+W+iaA", @ARGV);
[
How can I prevent somebody from using the back button after they fill
in a form and it takes them to a second page that checks there data
using php code. I don't what them to be able to resubmit the info a
second time with different information to be able to get the data that
they are buying. Hope
Two Words: Session Management
> How can I prevent somebody from using the back button after they fill
> in a form and it takes them to a second page that checks there data
> using php code. I don't what them to be able to resubmit the info a
> second time with different information to be able to
What credit service(s) can intergrate with PHP
__
Do You Yahoo!?
Buy the perfect holiday gifts at Yahoo! Shopping.
http://shopping.yahoo.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
could you give me a few more words to point me in the right direction
Saturday, December 01, 2001, 1:41:49 AM, you wrote:
Se> Two Words: Session Management
>> How can I prevent somebody from using the back button after they fill
>> in a form and it takes them to a second page that checks there
Well, that's kinda hard to do. You should start by looking at the
session management functions of PHP. Then, track your sessions by
creating a table in a database. Then, once you are doing that...you
will have a session id associated with any individual using your
website. Once that individual
Hi,
i know this has been asked before - but:
When i add entries to MySql (varchar and text) all " and ' gets a slash in
front of them. How do i get rid of these slashes?
Regards
# Daniel Alsén| www.mindbash.com #
# [EMAIL PROTECTED] | +46 704 86 14 92 #
# ICQ: 63006462 | +46 8 694 82 22
Addslashes() is probably getting called twice on the data on the insert...
if you have magic_gpc on, any inputted data already has the necessary escapes
- so you shouldnt need to call it again...
Hope that helped :)
--
Shane
On Saturday 01 Dec 2001 1:14 pm, Daniel Alsén wrote:
> Hi,
>
> i kn
Did you try adding:
header("Content-Type: text/xml");
To the top?
-Original Message-
From: Chris [mailto:[EMAIL PROTECTED]]
Sent: Saturday, December 01, 2001 12:34 AM
To: [EMAIL PROTECTED]
Subject: [PHP] XML and PHP - dynamic hell
I'm having one page output XML for other sites to p
It didn't help :(
- Original Message -
From: "Matthew Loff" <[EMAIL PROTECTED]>
To: "'Chris'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Saturday, December 01, 2001 10:03 AM
Subject: RE: [PHP] XML and PHP - dynamic hell
>
> Did you try adding:
>
> header("Content-Type: text/xml");
Hello everyone,
I posted this message to the mysql mailing list and didn't get a response.
I know a lot of people here are good with SQL. So, here's my e-mail:
Hello,
I've been struggling with this all night. Can someone give me a push in the
right direction? I
have a csv file named Sheet1.t
file_exists takes a string argument.
/images/$filename is not a string.
try "images/" . $filename instead.
Fred
Prolog <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I had a script that was running beautiful that simply called up a database
> and displayed th
It makes a huge difference if the order of fields is different in your text
file than it is in your mysql table. For instance, if your mysql table has
id before passcode (assuming id is an autoincrement field), then every time
you try to load data from this file it grabs the passcode (which is fi
On Sat, Dec 01, 2001 at 09:55:47AM +0200, faeton wrote:
> Hello Matt,
>
> filesize() works only on local filesystems.
If you want the size of a remote file, you'll have to download it; HTTP
doesn't provide a way to query a remote file's size. FTP does, if you have
FTP access.
Matt
--
PHP Ge
php-general Digest 1 Dec 2001 21:02:02 - Issue 1027
Topics (messages 76300 through 76322):
Re: file_exists problems
76300 by: faeton
76305 by: Prolog
76306 by: faeton
76320 by: Fred
Re: call_user_func problem
76301 by: faeton
76310 by: Papp G
Hello Matt,
Of course it does not, but as i've already said file() with strlen()
can be used. :)
MM> If you want the size of a remote file, you'll have to download it; HTTP
MM> doesn't provide a way to query a remote file's size. FTP does, if you have
MM> FTP access.
-
On Sat, Dec 01, 2001 at 11:05:51PM +0200, faeton wrote:
> Hello Matt,
>
> Of course it does not, but as i've already said file() with strlen()
> can be used. :)
>
> MM> If you want the size of a remote file, you'll have to download it; HTTP
> MM> doesn't provide a way to query a remote file's s
Hello Matt,
So does that problem have a solution?
MM> Not on binary files. For an image that's 4494 bytes, file/join/strlen gives
MM> me 3512. And since file() on a remote file is downloading it anyway, you
MM> might as well do it right:
MM> $fp = fopen('http://example.com/image.jpg','r');
MM>
I have been trying to get apache2 to load the php4 module for a while now, but after
consulting the bug report page, i was directed to seek assistance from you all. Is
there any further files I may need to have this program p and running.
Thank You For Your Assistance in this matter
Obasi Adand
Hello all,
I have ran across this error a number of times, and for those of you who
are or will pulling out your hair, read on.
When you get a:
Parse error: parse error, expecting `T_OLD_FUNCTION' or `T_FUNCTION' or
`T_VAR' or `'}'' in your_script.php on line 2149
Check to see if you have al
Hello,
I have a form with multiple checkboxes.
Their names are the same ie all are befname and their values are dynamically filled
from a data base.
When I check multiple boxes I expect that an array of the values with the array named
befname is sent to the results page. In my example the form a
Rename your form name to "befname[]" Then you'll get them all... this is
in the manual somewhere if you need more info on it... don't remember
exactly where.
-philip
On Sun, 2 Dec 2001, Ivan Carey wrote:
> Hello,
> I have a form with multiple checkboxes.
> Their names are the same ie all are b
Hola Daniel:
Te escribo en castellano ya que veo que el inglés no es tu idioma natural.
Creo que el error se produce al concatenar las variables, acordate que para
indicar que las variables con cadenas tenés que encerrarlas entre "", yo lo
definiría así:
$user_birthdate = "$birth_year-$birth_mo
What is not working? Are you getting an error message?
Fred
Obasi Adande George <[EMAIL PROTECTED]> wrote in message
000801c17ab6$5d77bf90$b6d45ed1@tbird">news:000801c17ab6$5d77bf90$b6d45ed1@tbird...
I have been trying to get apache2 to load the php4 module for a while now,
but after consulting
A couple of more pointers:
Check the line right before the parse error for missing }) or ;
Always close your curley braces right after you open them and then insert
your code lines between the braces. {} This will prevent you from
forgetting to close your braces.
Never write a single script wi
I have a file that contains settings and there are a lot of comments in
there and a lot of variables. An excerpt of the file looks like below. My
question is, is it possible to change only certain variables? For example,
I want to set just the db variables, is it possible for me to input the ne
You cannot make changes to a file without writing the entire contents of the
file to disk. On the other hand, you do not need to manually re-create the
entire contents. Simple read the file into a variable and use regular
expressions to replace the old lines with new ones and then write the file
I saw a download for it a few days ago but I am curious to know:
A.) how stable is it
B.) Is there offically a known 'make' one must have on linux to install it?
3.7.7 ok? (Freetype I found out 3.7.8 or higher according to a developer of
freetype)
C.) what are the new features and when is it off
Hello,
Slight Problem:
--
This piece of code:
session_start();
unset($testvar);
session_register("testvar"); $HTTP_SESSION_VARS["testvar"] = "testval";
print "Global: $testvar | Track_var: " . $HTTP_SESSION_VARS["testvar"] . ".";
$testvar = "testglobalassign";
print "Global: $testvar |
It looks like it is working as expected. You must note two things.
First, session variables are updated to new values only when you explicitly
call session_register or when the script ends. When you call
session_register, the session variable will have the value that the global
variable had at
[This mail goes out to php-dev, php-qa and php-general and
has its Reply-To: set to php-dev!]
Hi Zak,
thanks for the mail, I was thinking about writing such a mail
myself but was to tired I guess.
Yep, the CVS note to the latest ext/domxml changes state it
clearly:
| That means that you should create a .htaccess file containing that:
|
| php_value allow_call_time_pass_reference 1
|
| That should work :)
But as the errormessage mentioned it may not supported in future version.
I think if you declare your function arguments to be passed by variables
35 matches
Mail list logo