What is the error message? (It will help us a lot G)
Uma Shankari T. [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Hello,
I have installed php4 rpm in my machine.while connecting php with
mysql it is giving fatal error.I have given like this
Hello,
I am creating dynamic CSV files using PHP, and currently these files are
being saved on the server, but I would like to send them directly to the
user who requested the file, similar to what phpMyAdmin does. I looked at
the source for phpMyAdmin and it was a bit complicated. I was
what are you doing a while on
if while never ends and you reset the time out each loop and use
ignore_user_abort(true), it will still be going 13 hours latter.
maybe if you send the full code so we can look at it.
Paul Roberts
[EMAIL PROTECTED]
- Original
For whoever may have bumped into the same problem as Mr. Walker, please read the
release notes on sourceforge (kudos Matthew for the step-by-step bug-tracking -
I would've been unable to solve this for a long time without him).
This is my last message on this topic on the mailing list - I don't
List,
I'm using the following code to retrieve image from Mysql. My problem is how
can I output another image if the given ID doesn't have an image on it??? I
had already inserted a blank gif in the database in order to use it, but
I've tried to check if ($resultado['Imagem_data'] == ) or null
The code below doesn't show the test you mentioned. By all means testing if
a variable = should work, but you may want to try something like
if (!$resultado['Imagem_data']) {
...
}
Sometimes testing a value against can cause problems because of
non-appearing whitespace that may exist in
php-general Digest 26 Jan 2002 13:48:07 - Issue 1134
Topics (messages 82186 through 82210):
Re: upgrade problem
82186 by: Alan McFarlane
Re: HELP! with PHP extension
82187 by: Alan McFarlane
Re: Printing JPEG images generated with ImageJPEG with IE/WIN
82188 by:
Hi
Most of us that have sites use some kind of ad agencies. It's small
change but it helps. In recent months, many ad agencies closed down,
many stopped paying etc...
I was wondering if anyone is happy with his ad agency.
thanks
berber
--
PHP General Mailing List (http://www.php.net/)
To
Hi Folks,
I use the regular form POST method to send variables from Domain A to Domain B. On
domain B I run a short script. The script does it's thing and then sends the posted
variables back to Domain A with
header(Location: http://www.domainA.com/folder/script.php;);
The problem is that
Private note: heard the one about throwing stones and living in glass houses?
tip
Try to keep your posts a little shorter
if only for the sake of the dialup users ;)
/tip
this said by someone who:
- pushes MIME messages into a discussion list/newsgroup (instead of simple text format
smime.p7m
Description: application/pkcs7-mime
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
* and then DL Neil blurted
Private note: heard the one about throwing stones and living in glass houses?
tip
Try to keep your posts a little shorter
if only for the sake of the dialup users ;)
/tip
this said by someone who:
I suggest using an external tool - using PHP would probably be too slow esp.
if you're hitting 1000+ users. (Plus, I think you would have to run a lot of
clearstatcache()'s which may cause all sorts of problems)...
If you do an ls or dir or similar then you could parse the output, however
there
hey... im tryint to lay some conditions for the html output... example :
if ($check == 1) {
some html
}
else {
some other html
}
The problem here is, I want the html in both cases to be customisable by the
user... so I would have to make it a part of the
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
* and then Kunal Jhunjhunwala blurted
hey... im tryint to lay some conditions for the html output... example :
if ($check == 1) {
some html
}
else {
some other html
}
The problem here is, I want the
Is there any limit on the amount of variables that you can use?
Philip J. Newman
Philip's Domain - Internet Project.
http://www.philipsdomain.com/
[EMAIL PROTECTED]
Phone: +64 25 6144012
Hi Nick,
I found the solution. Thanks for your reply though. Basically, what I wanted
to do was simple :
the admin of my program can decided wether they want a feature on or off.
Now, depending on that, a lil section of the html would change. Using
phplib, I have seperated all my html from the
I'm sorry, but I won't be much help on the windows side of things, but for
UNIX, the job is already done for you! There is a utility called 'du',
which will tell you the disk usage of a file (or a folder and its contents).
Specifically, you would want to use the -s flag to specify only to show
I have had no luck changing:
20020124020555
into
24 01 2002 @ 0205h 55s
Can anyone put some light on this, I'm going nuts
Philip J. Newman
Philip's Domain - Internet Project.
http://www.philipsdomain.com/
[EMAIL PROTECTED]
Phone: +64 25 6144012
Hi, provided that your initial string will always be in the same format
(same # of numbers) I would use the substr function. substr(string, start,
[length])
Ex:
$mystring = 20020124020555;
$year = substr($mystring,0,4);
$month = substr($mystring,4,2);
$day = substr($mystring,6,2);
etc...
Hope
function ChangeDate ($date) {
$day=substr($date,6,2); //get the day
$month=substr($date,4,2); //get the month
$year=substr($date,0,4); //get the year
$time=substr($date,8,4); //get the time
$secs=substr($date,12,2); //get the seconds
$ret=$day $month $year @ $time h $secs s;
Is there any limit on the amount of variables that you can use?
I can't say for certain as I don't know the insides of PHP *that* well...but
I would guess your limitation on variables would be based on your
server/user memory allowances and/or your memory limitations for PHP
scripts.
Sincerely,
hi,
is there any site from where i can get the php scripts which can parse the
javascript or at lest document.write(ln) part into php echo variable so that
i dont need to implement javascript in my web documents(i have some
documents writen in javascript so that i can insert them in any doc but
I'm not entirely sure I understand your question. Are you asking if
there's an easy way to convert programs from JavaScript to PHP?
saif wrote:
hi,
is there any site from where i can get the php scripts which can parse the
javascript or at lest document.write(ln) part into php echo
Have a look around:
http://www.php.net/strip_tags
Regarding simple matches, consider:
http://uk.php.net/stristr
And who knows, maybe you want:
http://us.php.net/htmlspecialchars
Learn about if/else:
http://au.php.net/else
Regards,
Philip Olson
On Fri, 25 Jan 2002, Leif K-Brooks
Or if you are retrieving the data from a database, use the SQL Date-Time functions
(RTFM).
=dn
- Original Message -
From: Rafael Perazzo B Mota [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: 26 January 2002 16:38
Subject: [PHP] Re:[PHP] Changeing Dates.
function ChangeDate ($date) {
Hi there!
Anybody knows a replacement for the built-in
getenv()-function since it's not supported when
running as an ISAPI-module under Internet
Information Server 5.0 on Windows 2000
Professional (well, at least according to the
manual).
I've created a small counter that looks up the
user's IP
When trying to load Zend optimizer, the following error gets logged:
Failed loading /var/www/lib/ZendOptimizer.so: ld.so.1: \
/opt/apache/bin/httpd: fatal: relocation error: file \
/var/www/lib/ZendOptimizer.so: symbol _erealloc: referenced \
symbol not found
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
* and then Philip J. Newman blurted
Is there any limit on the amount of variables that you can use?
Well I certainly agree with Craig, but I'm interested to know why you
ask? Is it just idle curiosity or some interesting project you're
The HTML would be having problems because PHP would compile this:
--
?
print 'INPUT TYPE=TEXT NAME=savings VALUE=' .
$data[SAVINGS] . ';
?
--
as:
--
INPUT TYPE=TEXT NAME=savings VALUE='
--
Note VALUE's quotes: and '. Try with this:
--
?
print 'INPUT TYPE=TEXT NAME=savings VALUE=' .
I have to exchage over 304 different names, codes, and dates ...
- Original Message -
From: Nick Wilson [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, January 27, 2002 7:35 AM
Subject: Re: [PHP] Variables Limit
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
* and then
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
* and then Philip J. Newman blurted
I have to exchage over 304 different names, codes, and dates ...
305? :-)
Doesn't sound like it would be a problem.
- --
Nick Wilson
Tel:+45 3325 0688
Fax:+45 3325 0677
Web:
Unless your getting the values through a POST or a GET...both of these
have limitesi forget what it is...maybe 1024 bytes? you'd jave to
read the http rfc
~kurth
On Sat, 2002-01-26 at 14:51, Nick Wilson wrote:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
* and then Philip J. Newman
cool
- Original Message -
From: Nick Wilson [EMAIL PROTECTED]
To: PHP-General [EMAIL PROTECTED]
Sent: Sunday, January 27, 2002 8:51 AM
Subject: Re: [PHP] Variables Limit
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
* and then Philip J. Newman blurted
I have to exchage
Any Ideas how I can remove !@#$%^*()_+=-';:/.,? charactors from a string?
Philip J. Newman
Philip's Domain - Internet Project.
http://www.philipsdomain.com/
[EMAIL PROTECTED]
Phone: +64 25 6144012
I'm guessing something along the lines of:
--
$string=str_replace(!,,$string);
$string=str_replace(@,,$string);
$string=str_replace(#,,$string);
$string=str_replace($,,$string);
$string=str_replace(%,,$string);
$string=str_replace(^,,$string);
--
etc.
Philip J. Newman [EMAIL PROTECTED] wrote
Hm, it could be that IE tries to reload the picture (which isn't there
anymore because the form-data has been expired). Perhaps saving the
picture temporarly on the server will prevent the problem.
That could be what is happening. I'm generating data for students to
analyze on one page with
Philip J. Newman wrote:
I have to exchage over 304 different names, codes, and dates ...
Instead of hundreds of discrete variables, would you not be
better served by dividing them up into arrays of some sort?
instead of $name1, $name2, etc
$name[1]
$name[2]
or
$name[first]
$name[last]
Dean Householder wrote:
How can you pass an object from one page to another? Is there any convenient way to
do it with PHP?
Dean
You've had some suggestions to use 'sessions' but you can't really pass
an object between pages with sessions - UNLESS...
Unless both pages have the
Mike,
This can be a bit frustrating, but all in all it's not too bad. I usually
make up my own configuration file just to avoid re-typing everything,
because I generally don't get it right the first time. I then chmod +x them
so that they will execute. They're quite simple, just scripts that
Hello,
im introducing to php and i need to know (under windows98)
if are free /and where can i download it/ the software needed to
program and test php4
Thanks everybody,
Pablo.
On Fri, 3 Jan 1997, El Ucalito wrote:
im introducing to php and i need to know (under windows98) if are free
/and where can i download it/ the software needed to program and test
php4
www.php.net will answer all.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail:
I know this isn't the right place to add this, but can someone check this out ...
http://www.philipsdomain.com/hyperlinks/search.php
... and gimme some tips of what I could do ...
Philip J. Newman
Philip's Domain - Internet Project.
http://www.philipsdomain.com/
[EMAIL PROTECTED]
Phone: +64
Check out arrays... especially if you're going to be
dealing with 304 individual variables. your code
will be MUCH happier :)
-Original Message-
From: Philip J. Newman [mailto:[EMAIL PROTECTED]]
Subject: Re: [PHP] Variables Limit
I have to exchage over 304 different names, codes,
When I have an ? xml version=1.0 ? 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_open_tag
regards,
Cyth
--
PHP General Mailing
When I have an ? xml version=1.0 ? 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_open_tag
regards,
Cyth
--
PHP General Mailing
Philip J. Newman wrote:
I know this isn't the right place to add this, but can someone check this out ...
http://www.philipsdomain.com/hyperlinks/search.php
... and gimme some tips of what I could do ...
What are you asking for?
--
PHP General Mailing List (http://www.php.net/)
To
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
* and then ,,, blurted
When I have an ? xml version=1.0 ? 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
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
* and then Michael Kimsal blurted
What are you asking for?
Yeah, a little detail please :)
I don't even wana click it unless I know why, but then I'm just
paranoid!
- --
Nick Wilson
Tel:+45 3325 0688
Fax:+45 3325 0677
Web:
Hi. Have you tried something like:
? echo(? xml version=\1.0\ ?\n); ?
I've not tried using xml php, but that may work...
Jeff
- Original Message -
From: Frans Englich [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, January 26, 2002 2:53 PM
Subject: [PHP] PHP and XHTML
When
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
* and then Jeff Sheltren blurted
Hi. Have you tried something like:
? echo(? xml version=\1.0\ ?\n); ?
*Good* idea, tell us if it works!
- --
Nick Wilson
Tel:+45 3325 0688
Fax:+45 3325 0677
Web:www.explodingnet.com
Hello,
Dl Neil wrote:
One good point about what you said is that one budgetless what to
promote PHP is to use 'viral marketing'. Viral marketing is a way to
market something by using a technique that spreads by itself, ie, no
additional effort or money needed to be spent by the
This works just perfectly:
?echo(?xml version=\1.0\?); ?
regards,
Cyth
---
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
* and then Jeff Sheltren blurted
Hi. Have you tried something like:
? echo(? xml version=\1.0\ ?\n); ?
*Good* idea, tell us if it
I'm now using $S_REQUEST to pass things on a win32 with apache and
php4.1. In touching stuff up on the isp however, things are
incompatible. I have gone to using $HTTP_POST_VAR, etc. instead, so
when the isp goes to 4.1 we only need to replace them with $_REQUEST.
Is that the way to go?
Hello,
Vincent Stoessel wrote:
On another list that I am on someone made this very bold
statement:
I've seen a lot of jobs for ColdFusion Oracle or MS SQL server
experience combinations. Don't let anyone fool you, PHP/MySQL is not
going to land you a job [;)]
now, as someone that
Hi everyone!
I'm trying to put file names into variables which later I put into my
DB (MySQL) as text (only the filename and the extension).
I tried to use the upload format form before:
form ENCTYPE=\multipart/form-data\ ...
input type = FILE name =\file_name\
.
When I
Or do it all in one line:
$string = ereg_replace('[!@#$%^*()_+=-';:/.,?]', '', $string);
If you want to remove non-alphanumeric characters from a string, you can do:
$string = ereg_replace('[^[:alnum:]]', '', $string);
Perl-compatible regular expressions would work as well,
I've designed an architecture in PHP which is dependent on a class hierarchy
which has a parent class with a member variable which is a child object.
That child object contains a reference back to the parent. The problem I'm
running into is changes to the parent's member variables are not
Hi Guys,
I want a affordable and the best control panel for my website. Though i can make it
myself but it make some time to do that. Do any of you guys and gals know about this
do let me know.
Looking forward for yours earliest reponse.
karthikeyan.
php-general Digest 27 Jan 2002 02:33:30 - Issue 1135
Topics (messages 82211 through 82262):
Banner agencies - OT
82211 by: Boaz Yahav
Using HTTP Post variables with multiple domains and scripts
82212 by: Dreamriver.com
Re: break statement usage
82213 by: DL Neil
On Sunday 27 January 2002 11:10, Dani wrote:
Hi everyone!
I'm trying to put file names into variables which later I put into my
DB (MySQL) as text (only the filename and the extension).
I tried to use the upload format form before:
form ENCTYPE=\multipart/form-data\ ...
input
Spare us1
Miles Thompson
On Saturday 26 January 2002 09:39 pm, karthikeyan wrote:
Hi Guys,
I want a affordable and the best control panel for my website. Though i
can make it myself but it make some time to do that. Do any of you guys
and gals know about this do let me know.
Hi
use single quotes and it is simpler
echo '?xml version=1.0?';
Tom
At 09:40 27/01/02, Frans Englich wrote:
This works just perfectly:
?echo(?xml version=\1.0\?); ?
regards,
Cyth
---
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
* and then Jeff Sheltren
Regula
$string=preg_replace(/\W/,,$string);
\W = non-word characters in perl regular expressions. Word characters
are 0-9, a-z, A-Z, and _. To kill _ as well, do:
$string=preg_replace(/[_\W]/,,$string);
-Original Message-
From:
[EMAIL PROTECTED]
$q=preg_replace(/[_\W]/,,$q);
I have this to remove all the bad things, but it takes out the space to ... )o; why?
Philip J. Newman
Philip's Domain - Internet Project.
http://www.philipsdomain.com/
[EMAIL PROTECTED]
Phone: +64 25 6144012
Manuel Lemos wrote:
You seem to be just a bit 'doom and gloom'. Perhaps you're just in
'realist' mode, but I don't think it's a 'fait accomplit' just yet.
Since the massive bankrupcy of many Internet companies, LAMP is no
longer so much on demand. What happened is that most of those
In article 002801c1a6ed$1a9c10a0$0401a8c0@philip,
[EMAIL PROTECTED] (Philip J. Newman) wrote:
$q=preg replace(/[ \W]/,,$q);
I have this to remove all the bad things, but it takes out the space to ...
)o; why?
There's a space in your character class, so of course it will be among the
This returns an error
$q=preg replace(/[^ \w]/,,$q);
Parse error: parse error in d:\hosting\http\philipsdomain\config.php on line
41
Suggestions?
- Original Message -
From: CC Zona [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, January 27, 2002 6:15 PM
Subject: [PHP] Re: A
In article 004d01c1a6f2$cb909070$0401a8c0@philip,
[EMAIL PROTECTED] (Philip J. Newman) wrote:
This returns an error
$q=preg replace(/[^ \w]/,,$q);
Parse error: parse error in d:\hosting\http\philipsdomain\config.php on line
41
Suggestions?
I think ezmlm must strip underscores from
Hi,
Seems mysql_escape_string will just escape, seems like
addslashes and quotemeta.
quote in DBI will escape and quote if passed value is not an
integer (don't know about float).
Peter
---
Reality is that which, when you stop believing in it, doesn't go
away.
Hello,
I was hopping that one of you would know how to setup a self-extracting php program.
This is the story:
I'd like to offer a zipped file for download. Someone unzips it on their PC and there
find two files, extractor.php and some other file that php can unzip. They upload
these two
Computer science is considered an engineering discipline in most
institutions. And I think that's good... we need people out there to develop
OS's, create database servers, etc. PHP can be effectively used in this
curriculum, but C seems a lot more to the point.
The place where PHP could (and
It's hard, I think in part, because of the reputation PHP is
getting in
some circles. Many of the people evangelizing it don't know anything
else, and simply extoll all the 'wonderful' virtues of it.
YES! This poisoning of the well has happened and continues to happen. The
problem is
Chris Lott wrote:
It's hard, I think in part, because of the reputation PHP is
getting in
some circles. Many of the people evangelizing it don't know anything
else, and simply extoll all the 'wonderful' virtues of it.
YES! This poisoning of the well has happened and continues to happen.
I like this view. It's not so much a technology we're all speaking as much
as a language. Computers are computers and while linux is fun and kick's ass
sometimes you just need to get a job done.
tools are tools and php rules until php rules!
john l
It's hard, I think in part, because of the
75 matches
Mail list logo