$str = ereg_replace('[-!@#$%^&*()_+=-\';:"/.,<>?]', '', $str);
You may need to escape some of these characters with \
On the other hand, they are contained in a character class [] so you may
not need to escape them. Note how the `-' is in the beginning.
-Jason Garber
IonZoft.com
At 09:13 AM
Hi,
I did a quick search for something like this below but did not find it.
Would you please criticize it. Thanks.
function &MakeUrls(&$data) {
$words = explode(" ", $data);
$new_data = "";
while (list ($key,$row) = each ($words) ) {
if (preg_match ("/^
I keep getting parse error with this code:
($teams[] is a big array that I got by using mysql_fetch_array)
$r = "game";
echo "";
echo "$teams[$r.'1']";
echo "$teams[$r.'16']";
echo "";
Im trying to make a dropdown list.
Here is the error message:
Parse error: parse error, ex
maybe you can try something like this...
$r1 = "game1"
$r2 = "game16";
echo "";
echo "$teams[$r1]";
echo "$teams[$r2]";
echo "";
Greets,
Edward
> I keep getting parse error with this code:
> ($teams[] is a big array that I got by using mysql_fetch_array)
>
>
>$r = "game";
>
Is there anywhere documentation of which bugs have been included in the
recent builds? There is a bug on the database that has been marked as fixed
and closed, but the fix doesn't appear to be in 4.1.1.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
Hi,
I wonder if anyone can offer me a few pointers..?
I'm building a portal to do various bits and bobs. I'm using sessions to
facilitate the user authentication/login, etc. The only problem I have
is that when viewing these (.php) pages in IE once the session variable
has been set, a "Warning:
Try
$teams[${"r1"."1"}]
or a variation on this theme
hugh
- Original Message -
From: "Edward van Bilderbeek - Bean IT" <[EMAIL PROTECTED]>
To: "Phil Schwarzmann" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Monday, January 28, 2002 2:16 PM
Subject: Re: [PHP] HTML lists & PHP
> maybe
Good day,
By default, IE will cache these pages (i.e. you won't get this message).
If you're receiving that message, it means that the browser doesn't have a
cached version of the page. Getting a new version would obviously mean
submitting the form information again, which IE, thankfully, doesn
http://www.wotsit.org/search.asp?page=2&s=animated
I haven't looked at the docs there for mpeg - but the other one's i've
looked at are really useful...
Martin
-Original Message-
From: Jon Farmer [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 29, 2002 12:22 AM
To: Edward van Bilderb
Hi,
I would like to know if there is a program similar to php in structure that I can use
to make an executable program on a pc running Windows 95 (and above). Since the only
"language" I can currently use is php, starting with something similar will be a big
help.
What I am trying to do, is
How do I use MySQL through the web. I currently have MySQL running on my
personal PC on WinXP. I use a command prompt to add tables, add records,
and so forth. How do I create tables and records when my database is on the
web?
Thanks,
Ben
--
PHP General Mailing List (http://www.php.net/)
T
How can I retrieve the HTTP Response Headers using iPlanet or a
independent SAPI function?
For example, supose there is a function called response_header()
If I write a script like this:
I would like to have a result like this:
array(2) {
["X-Powered-By"]=>
string(12) "PHP/4.0.3pl1"
Hi Everyone,
I need to know which function a would use to take a phrase from a remote
location.
Yes, I using my fopen and fread function. But I need to know what function I
would use to grab text between the one snip of code and a nother snip of
code.
Please email me back at [EMAIL PROTECTED]
I am going to compile php as a servlet (once again)
and I'm going to run it on tomcat 4.x as a webapp.
I know that I can still use php.ini to set6 my php
directives but I was wondering if there could be an alternative.
what I would like to do is to set those directives in the
web.xml file in my W
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Get the PHP source code, make the modifications you need, and
get/write a small minimalist web server to use it with. Then use your
PHP site from CD (or anywhere).
I have done almost exactly the same thing but with some additional
tweaks (like buil
str_replace() and eregi_replace() work well for this.
Mike
- Original Message -
From: "Robby" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, January 27, 2002 1:45 PM
Subject: [PHP] Need help with Taking a phrase from a remote location.
> Hi Everyone,
>
>
> I need to know whi
On Mon, 28 Jan 2002 21:10:02 +0800, you wrote:
>On Monday 28 January 2002 20:52, Floyd Baker wrote:
>> On Mon, 28 Jan 2002 15:20:05 +0800, you wrote:
>> >On Monday 28 January 2002 14:27, you wrote:
>
>> >2) session.save_path = c:/tmp, I don't use PHP on Windows, but looking at
>> > the other sett
I pulled some code off of the PHP site to use relative header info. I made
the correction and removed the additional "/" and I've got in running fine
on my development OSX machine but I've had problems on two different ISPs.
Here's the code I've used;
header("Location: http://"; . $HTTP_SERVER_VA
Is this date stored in mysql by anychance?
[EMAIL PROTECTED] wrote:
>Hi All,
>
>Is there any function in PHP4.X or in Oracle8i to calculate number of
>Business days ( excluding Saturday and Sunday) between two given dates?
>
>Thanks in advance.
>Sridhar.
>
>-Original Message-
>From: qar
Just add this header
header ("Cache-Control: public");
Alex.
- Original Message -
From: "Lee P Reilly" <[EMAIL PROTECTED]>
To: "PHP List" <[EMAIL PROTECTED]>
Sent: Monday, January 28, 2002 11:26 PM
Subject: [PHP] browser back button - "Page has Expired.. " problem
> Hi,
>
> I wonder
I'm not sure if this is a problem I can overcome with PHP or if I have
to go directly to the Linux box to fix (I hope not).
I have moved my development from a win32/apache/mysql box to a
Mandrake/apache/mysqly box and have only one problem (that I know of) to
overcome.
When I try to upload an
Ben,
Making the assumption that you plan on using php as the language to place or
extract data from the mysql database, you'll need to:
open a mysql database on-line (or have the site manager do this for you)
Write a php interface program which would write to, change or extract data
from the mysql
On Saturday, January 26, 2002, at 05:49 PM, ,,, wrote:
> When I have an inside my php script it wont work
> since
> php parses it as php code.
>
> Will short_open_tag = Off solve it? I would really like to use
> for the
> rest of my php code...there must be a better solution than
> Short_o
Is there any way to get the process id of a script running on Apache?
Regards,
Matthew Delmarter
--
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 P
Hi,
I remember doing this once under linux:
$pid = readlink("/proc/self");
but there seems to be a special function for it :
$pid = getmypid();
bvr.
On Tue, 29 Jan 2002 13:26:48 +1300, Matthew Delmarter wrote:
>Is there any way to get the process id of a script running on Apache?
>
>Regar
On Sunday, January 27, 2002, at 10:39 PM, Jason Wong wrote:
> On Monday 28 January 2002 04:37, Floyd Baker wrote:
>> I have 4.1, register globals off, on Windows 98.
>> //pull value from session file:
>> $page_views = $_SESSION['page_views'];
> No need for this, in fact this is what is prevent
Hi All,
Is there any function in PHP4.X or in Oracle8i to calculate number of
Business days ( excluding Saturday and Sunday) between two given dates?
Thanks in advance.
Sridhar.
-Original Message-
From: qartis [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 28, 2002 1:38 PM
To: [EMAIL
Hi Brian
I've just setup the RedirectMatch in Apache and tried the PHP script
(test.php) out and it worked fine.
The only thing that caused broken image symbols to appear was if the image
redirect script (test.php) created any output before the header() functions.
Check for whitespace or any fun
Hi
If you haven't got shell access but have a PHP enabled webserver then you
could try and install phpMyAdmin:
http://www.phpwizard.net/projects/phpMyAdmin/
Regards
Girish
--
www.girishnath.co.uk
- Original Message -
From: "Ben Clumeck" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
S
Hi Folks:
I haven't been reading the list lately. I went to the mailing list archives
on Google and MARC to see what's been said about the "Apache Win32 PHP.EXE
Remote File Disclosure Vulnerability." I was surprised to find only one post
to the php-dev list:
> As I responded on Bugtraq, this i
Actually,
as a note about this, we (i) did extensive testing to invoke the php.exe
binary and apache in any way but using an action and virtual url, and found
it didn't work.
We have suitably amended the documentation for both the win32 installer,
plus the manual, making it clearer that choosing
Then why not do this :
");
?>
bvr.
On Mon, 28 Jan 2002 18:49:18 -0500, Erik Price wrote:
>
>On Saturday, January 26, 2002, at 05:49 PM, ,,, wrote:
>
>> When I have an inside my php script it wont work
>> since
>> php parses it as php code.
>>
>> Will short_open_tag = Off solve it? I would
First, I am running (currently) php 4.0.6 under Redhat 7.2 with kernel
2.4.10
I know you can do the following:
to force the user to download a file.
However, this wouldn't work if blah.txt is larger than 2G on my machine
with php 4.0.6 for Redhat 7.2, because all the file I/O operations are
Hi,
You can do the exact same thing but instead of connecting to localhost,
you connect to the remote server.
To do this with the mysql monitor tool, use the -h command line option, followed
by the hostname or IP of the server.
If you cannot access the online database directly (possibly for
Stephano, Thank you for your generous offer, and I might yet take you up on
it. I am however, interested in a canned product like... (now don't laugh)
Visual C++.
>From the various past posts, I am led to believe that C++ is coded similar
to php and Visual C++ should have the bits and pieces to c
Like so?
error message :
Warning: Unable to create 'sdf.jpg': Permission denied in
/home/gruesome/public_html/valeriemacwilliam/includes/content/addpic.php
on line 21
code :
done";
}else{
print "not done";
}
}
?>
Add Picture
new file name
[EMAIL P
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says...
> I've been searching the PHP website and FAQ and also the Analog web server =
> analyzer website and their FAQ, but I haven't found an answer and was =
> wondering if anyone else had seen ridiculously high request counts for =
> their PHTM
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED]
says...
> First I must state that I didn't write the code, and I'm not much of a programmer of
>any kind. I'm hoping someone can tell me how to sort the filenames and file sizes
>returned by readdir and filesize in the below code. Thanks in ad
Thanks Matt, Jeff, and Sam
(BTW Sam, for some reason your post didn't come to me on the list through
regular email- I found it when I did a search in the archives at php.net. I
'm pretty sureI didn't delete it. I mention this because I'm sure the list
server hiccups sometimes and I'd hate to offen
Just curious, why not use FTP for such a large file?
/dkm
- Original Message -
From: "Wei Weng" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, January 28, 2002 8:39 PM
Subject: [PHP] why isn't this working? (many questions inside)
> First, I am running (currently) php 4.0.
basically it's to do with "lazy evaluation" or whatever it's called
* logical expressions are read from left to right.
* with OR, the expression reading is halted when the first TRUE is found
* with AND, the expression reading is halted when the first FALSE is found
so with :
if (true||fals
On Tuesday 29 January 2002 11:10, sundogcurt wrote:
> Like so?
>
> error message :
> Warning: Unable to create 'sdf.jpg': Permission denied in
> /home/gruesome/public_html/valeriemacwilliam/includes/content/addpic.php
> on line 21
>
> code :
> if($myfile){
> if(copy(stripslashes($myfile), $ne
the directory permissions are set to 777 / 0777 any user, any group,
etc. at least that is how I understand it. if i'm wrong please correct
me, I do appreciate the help thank you.
[EMAIL PROTECTED] wrote:
>On Tuesday 29 January 2002 11:10, sundogcurt wrote:
>
>>Like so?
>>
>>error message :
>>
On Tuesday 29 January 2002 11:48, sundogcurt wrote:
> the directory permissions are set to 777 / 0777 any user, any group,
> etc. at least that is how I understand it. if i'm wrong please correct
> me, I do appreciate the help thank you.
If they're set to 777 then anybody can do anything to it w
On Tuesday 29 January 2002 06:36, Floyd Baker wrote:
> Yes I have a c:\tmp directory and I see the session being created in
> it. And the page_view value of 1 after the first increment. The
> editor wants to reload each time I hit the submit button after that
> but the value does not increase b
Hi
For some reason i couldn't get the 777 thing to work on one of my hosts but
managed to get this syntax to work instead :
chmod o=rwx directoryname
***It's not exactly secure but might get the job done ***
Regards
Girish
--
www.girishnath.co.uk
- Original Message -
From: "Jason W
This is way too simple, but maybe you didn't think of it:
echo("Location: http://"; . $HTTP_SERVER_VARS['HTTP_HOST']
.dirname($HTTP_SERVER_VARS['PHP_SELF']) . "/webmgr_prop.php?action=1");
Tom Beidler wrote:
> Any ideas?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mai
Be carefull which version of javascript is in use (or more to the point,
which version of javascript the browser supports), because these goodies
aren't available in earlier versions (even 1.1 from memory), and you may
want to do a lot of testing before being happy.
Justin French
Indent.com.au
So
Yes, I would prefer using the back button and go to the page in the clients
cache but I think you are right, I may have place a back button on the page
that actually resubmits the query paramemters for me.
Finally found something that ASP pages can do better than PHP... but only one
thing. :)
Ed
Hello,
I have installed php3 in my system.I want to connect with mysql.I have
given this code
$link=mysql_connect("localhost","username","password") or die("could not
connect");
but it is giving Fatal error: Call to undefined function: mysql_connect()
Why it is showing like.
Mys
Hey Uma
call to undefined function, well thats exactly what it means (it doesnt like
the function specified eg mysql_connect)this means that your php
installation does not have support for mysql.
You can check this with the following
run this via a browser and check the config of php... it
Hi everyone:
I saw some code, the function is called with @..
like "@copy(,)". anyone can ask me what the purpose of the
function begin with symbol @
Vincent Ma
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands,
Ido believe the purpose of the '@' is to supress error messages from the particular
function it is next to, it may also supress errors from the entire line it is on.
-chris
1/28/02 11:14:40 PM, "Vincent Ma" <[EMAIL PROTECTED]> wrote:
>Hi everyone:
>
> I saw some code, the function is called wit
Hello,
How do i check php support mysql..
If any one came to know this tell me...
Regards,
Uma
--
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: [
On Tuesday 29 January 2002 15:29, Uma Shankari T. wrote:
> Hello,
>
>
> How do i check php support mysql..
>
>
> If any one came to know this tell me...
You have already been told how to. See the posting by Chris in response to
your posting about the same question just a little while ago.
On Tuesday 29 January 2002 15:14, Vincent Ma wrote:
> Hi everyone:
>
> I saw some code, the function is called with @..
>
> like "@copy(,)". anyone can ask me what the purpose of the
> function begin with symbol @
To suppress error reporting. Full details:
Manual -> Operators -> Err
Maybe your script timed out before it could finish. Try
set_time_limit(0)
Another possibility is that your browser gave up. You may need 4GB of
disk cache because browsers usually save all files in cache before
copying them to the place you designate.
Robin
Wei Weng wrote:
>
> First, I am ru
That is where the script is that uploads the file, the file should be
going to :
/home/gruesome/public_html/valeriemacwilliam/includes/content/
/home/gruesome/public_html/valeriemacwilliam/pics/
or /tmp/ or where ever I have tried a ton of different folders
[EMAIL PROTECTED] wrote:
>On Tuesd
Good day ppl,
I installed php4.1.1 i586 RPM on my Mandrake linux. After downloading other
dependencies and so on, I got it running. I know so when the phpinfo()
function is showing the php info. However when I installed php-imap i586 RPM
and all its needed dependencies, the page with the phpin
hi guys!
i've been working on this darn "instant payment notification" script
for weeks now. I've gotten pretty close based on some recent posts
that use the great Rasmus' postToHost function to talk to paypal and
get the "confirmation". However, the reply from paypal, instead of
being "one
Try changing the permissions of the parent directory. I've had that problem
in the past and that was the only thing that seemed to fix it.
Mike
"Sundogcurt" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I'm not sure if this is a problem I can overcome with
101 - 162 of 162 matches
Mail list logo