Hello Todd,
verbose was just in there so I could see what was going on at the
command line it is not in the php script becase there is no need for
it
Sunday, September 01, 2002, 8:41:42 PM, you wrote:
TP> Only just noticed this when I read my post...
TP> Why do you want to use verbose?
TP>
In article <002101c25029$2ca0c490$[EMAIL PROTECTED]>,
[EMAIL PROTECTED] says...
> I have this set on both boxes. Here are the settings -
>
> local box (which does send mail)isp box (does not send
> mail)
> sendmail_from me@@localhost.com 'no va
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED]
says...
> Ok I think your definently going in the right direction - when I put this
> into my "series" I seem to be getting this message for each result:
> "Resource id #40" or some other number that in some way represents
> something? Any Clue?
Only just noticed this when I read my post...
Why do you want to use verbose?
If you want to capture the output for some reason, use this
exec("cd /change/to/dir; tar cvf /place/for/backup.tar files",
$capturedoutput);
otherwise drop the v (or --verbose) which will chew less resources.
To
Help
I want to install apache 1.3.26 with php 4.2.2 (plus png support) on a
suse 8.0 machine.
I constantly get segV errors when using imagecreatefrompng.
Have tried gd 1.8.4 / and the gd beta 2.0.1, have also tried installed
the latest libpng 1.2.4.
The php INSTALL file makes it see
Use ; instead of |
e.g.
shell_exec("cd /change/to/dir; tar cvf /place/for/backup.tar files");
Todd.
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Monday, 2 September 2002 9:40 AM
> To: php-general
> Subject: [PHP] using shell_exec
>
>
>
> Can so
Get general MSE error when using PHP to go from a non-secure page to an ssl
page. If I use the back button and try it again it will work, so the code
seems solid. Does not fail on Netscape. I heard that there is a Microsoft
Explorer issue with secure pages and/or php. Any ideas on how to resolve?
Thanks. I just figured it out myself. I had to change the expression:
$string= ereg_replace("[\\]+", "", $string);
The above is what worked.
Mike
"Justin French" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> on 02/09/02 1:14 PM, Mike Mannakee ([EMAIL PR
on 02/09/02 1:14 PM, Mike Mannakee ([EMAIL PROTECTED]) wrote:
> I'm getting multiple backslashes in data I get out of a mysql database.
>
> Example :
>
> ...Here\\\'s the d...
>
> No problem. Except I CANT GET RID OF THEM. I've tried several things:
>
> 1. $string = stripslashes($string);
Im trying to apply htmlspecialchars() to hrefs in a string.
Here is what I have.
my friend! this message uses html entities http://www.trini0.org";>test!';
$str = preg_replace('/(.*<\/a>)/',
htmlspecialchars("$1"), $str);
print($str);
?>
Any help would be appreciated.
I'm getting multiple backslashes in data I get out of a mysql database.
Example :
...Here\\\'s the d...
No problem. Except I CANT GET RID OF THEM. I've tried several things:
1. $string = stripslashes($string); - Doesn't do anything
2. $string = ereg_replace("\\", "", $string); - Does
I know how to use echo and print but I'm learning php so I try to understand
why I have this error with the heredoc syntax.
Thanks!
Peter Houchin wrote:
> simple .. look up docs on putting straight text to the screen and u'll find
> a number of options such as echo and print i bet ya'd be able
simple .. look up docs on putting straight text to the screen and u'll find
a number of options such as echo and print i bet ya'd be able to solve
really quickly
> -Original Message-
> From: Voisine [mailto:[EMAIL PROTECTED]]
> Sent: Monday, 2 September 2002 12:34 PM
> To: [EMAIL PROTECT
Hi,
What is wrong witht his code? Parse error: parse error, unexpected T_SL
in c:\program files\easyphp\www\tutorial\eod.php on line 2
Regards!
Joe
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Al --
...and then Al said...
%
% I'd like to use some of the Imagemagick functions; but my virtual host
% doesn't include it and won't bother to install it.
Phooey on them. You should switch to me :-)
%
% Is it practical to install Imagemagick php on a virtual host?
Sure; it doesn't have
Ryan --
...and then Ryan A said...
%
% Hi guys,
Hello!
% Kinda reached the end of my line, searched on yahoo,google,altavista,excite etc and
hotscripts,scriptsearch etc but could not find what i require
Of course not; it's never that easy :-)
%
% I need a shopping cart software which
on 02/09/02 6:40 AM, Ryan A ([EMAIL PROTECTED]) wrote:
> Hi guys,
> Kinda reached the end of my line, searched on yahoo,google,altavista,excite
> etc and hotscripts,scriptsearch etc but could not find what i require
>
> I need a shopping cart software which will display and sell .swf files,
on 01/09/02 10:23 PM, cLeAnEr ([EMAIL PROTECTED]) wrote:
> Hi.
> I have recently started prograemming some php. Now I wonder exactly what
> addslashes() is good for...
> I´ve read about it that it insert slashes where needed to get data in right
> form to Mysql? and then use stripeslashes() to re
Hi guys,
just wondering if there is any easy way to set a timeout on
the Imap Open function. I've written a script that polls
about 50 different peoples e-mail accounts and sometimes it
gets stuck on a few accounts that are taking ages to
respond.
Any thoughts would be gratefully received.
Che
I am executing the follwoing statement as part of a "while" loop. This is
part of a form and I wish to pass the name and value of the checkbox as a
hidden field only is the checkbox is checked. Can you suggest how I can
accomplish this task?
">
Thank You
Paul
php
--
PHP General Mailing List
Hey,
Thanks for your reply,
I have no problems trying to make an upload script as I have seen lots of
dudes on the list doing so and I know if I screw up being a newbie there are
a lot of people on the list who will be kind enough to help me.
I am trying to learn PHP, and no, I did not think this
I use fopen() in a template system that I have developed. I noticed
that occasionally I get blank pages served up. Here is one of my
snippets.
$filename = "$ROOTDIR/content/myfile.txt";
$fd = fopen ($filename, "r");
$PAGE_CONTENT = fread ($fd, filesize ($filename));
fclose ($fd);
Doing this I
Can somebody tell me way this will work at the command line but will
not work using PHP I also tried exec and system. from the command line
it adds all the files and directors. But using the script below from
PHP it creates an empty archive.
shell_exec("cd /home/sites/www.directphp.net/ | tar --
something like this should do
foreach ($reserved_words as $key => $value)
{
$reserved_words_bold[$key] = ''.$value.'';
}
$string = str_replace($reserved_words,
$reserved_words_bold,$string);
olinux
--- Gregor J <[EMAIL PROTECTED]> wrote:
> Same as with ".$reserved_words.", i get Array
> :)
Same as with ".$reserved_words.", i get Array :)
"Chaillan Nicolas" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> What about a
> str_replace($reserved_words, "$reserved_words",$string);
>
> Tell me.
>
>
> --
> Merci de nous avoir choisi. - Thanks you for you
I am having a problem with a script to dump a mysql database to a text
file. When I run the command below it creates the database.sql file but
it only puts the first three lines in that file they look like this
# MySQL dump 8.13
#
# Host: localhostDatabase: testdata1
#
php-general Digest 1 Sep 2002 21:23:17 - Issue 1560
Topics (messages 114818 through 114850):
Re: problem with links
114818 by: CHAILLAN Nicolas
Re: image manipulation
114819 by: CHAILLAN Nicolas
114833 by: Andre Dubuc
Re: UPDATE Query
114820 by: Tony Harris
Hi.
I have recently started prograemming some php. Now I wonder exactly what
addslashes() is good for...
I´ve read about it that it insert slashes where needed to get data in right
form to Mysql? and then use stripeslashes() to remove slashes when reciving
data out of database?
And I´ve also got
Hi,
Note that it is just a fileaccess, you can use htpasswd to put a password to
the correct file, you can make your own class easily if you know how to
parse a file and write in it. You can use exec() to make an
apache/bin/htpasswd call assuming you're using apache.
--
Merci de nous avoir chois
Hi
Thanks for replying,
There are some settings for sessions in php.ini but I can't find the thing
that I'm looking for.
It should exist, I mean isn't there any one who needs to know when the
session has expired?
Once again I ask my question:
How to make a session_on_end event in php?
Any help wil
Hi,
Making an upload script is really easy, I can't do it because of too much
work, but you should learn php yourself to do that, anyway this is not a
newsletter to get free programs. Just look at www.php.net and start reading
the manual to learn PHP.
--
Merci de nous avoir choisi. - Thanks you
What about a
str_replace($reserved_words, "$reserved_words",$string);
Tell me.
--
Merci de nous avoir choisi. - Thanks you for your choice.
Nicos - CHAILLAN Nicolas
[EMAIL PROTECTED]
[EMAIL PROTECTED]
www.GroupAKT.com - Hébergement Group.
www.WorldAKT.com - Hébergement de sites Internet
"Gregor
Hello, i have array $reserved_words which i want to replace with bold ..
but when i tried to do str_replace($reserved_words,
"".$reserved_words."", $string) it showed Array instead of
word
if i simply do str_replace($reserved_words, $reserved_words, $string) then
it shows the words not Array but
Hi guys,
Kinda reached the end of my line, searched on yahoo,google,altavista,excite etc and
hotscripts,scriptsearch etc but could not find what i require
I need a shopping cart software which will display and sell .swf files, it does *not*
have to integrate with ANY ecom credit card proces
PHP Auctions
I think you can find it on http://www.hotscripts.com
if not just search google
"Jaxon" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> hi,
>
> can anyone relay experience or recommend a php-based ebay-style auction
> script?
>
> tkx,
> jaxon
>
hi,
can anyone relay experience or recommend a php-based ebay-style auction
script?
tkx,
jaxon
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
nope sorry...
-Message d'origine-
De : Chris Knipe [mailto:[EMAIL PROTECTED]]
Envoyé : samedi 31 août 2002 20:10
À : you; 'Richard Lynch'
Cc : [EMAIL PROTECTED]
Objet : Re: [PHP] RE : include interpreted php file
fopen()
Regards,
Chris Knipe
Cell: (072) 434-7582
MegaLAN Corporate Netwo
I'd like to use some of the Imagemagick functions; but my virtual host
doesn't include it and won't bother to install it.
Is it practical to install Imagemagick php on a virtual host?
Has php. It's not a shell account. FTP is the only basic access.
--
PHP General Mailing List (http://www.p
Hi,
There is no way to get the filesize of a file using a remote file. You
should download it to a tmp directory then check. If it is get with an http
server, you should code something with sockets to ask to the http server the
filesize using a request.
--
Merci de nous avoir choisi. - Thanks yo
hi
in php.ini you can control behavior of sessions,
for example (take a look for you self;)
-> session.gc_maxlifetime = 1440,
in script you you may use ini_set for "dynamic control"
hope this is the right direction ..
robert
> Von: Mehran Ziadloo [mailto:[EMAIL PROTECTED]]
>
> Well since I
hi
take a look at http://phpclasses.org
as far as I remember there are some excel classe
robert
>
> Hey,
> sorry if this has already been answered somewhere, but I cant
> find a clear answer to this question.
>
> I have multiple xls files with 4 sheets a piece. I need to
> load them into
in my example I'm not pulling from a db. It does not even work like I have
it in my example though.
Thanks,
Chuck
- Original Message -
From: "Chuck Barnett" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, September 01, 2002 11:54 AM
Subject: [PHP] getimagesize with image in dat
Hi, I'm trying to get an image size from an image in a database.
here's my code
$imagesize = getimagesize(http://domain/image.jpg);
echo $imagesize[3];
but it returns nothing. If I use a local file, without http it works.
I have php 4.0.6
any suggestions.
Thanks,
Chuck
http://www.hido.net/projects/htadmin/
That may be what you're looking for.. Searching google for "php user
authentication htaccess" turns up several more results.. HTH..
Take care.. peace..
eriol
"Brian J. Celenza" <[EMAIL PROTECTED]> disgorged:
: Is it possible to set, delete, or alter
Hi tux,
For your second question, try:
http://www.linuxfocus.org/English/July2001/article211.shtml
It'll give some basci info on image manipulation using ImageMagick.
Hth,
Andre
On Sunday 01 September 2002 01:19 pm, tux wrote:
> Hey all,
>
> I was just wondering if anyone could recommend an
Well since I was working with ASP before PHP, there's an event for sessions
when they start and when they expire in ASP. Well in PHP I can put an IF
statement to check if my variables are set or not for on_start event. But
what should I do to have an event for the time they expire?
Thanks for you
Hey,
sorry if this has already been answered somewhere, but I cant find a clear
answer to this question.
I have multiple xls files with 4 sheets a piece. I need to load them into
either mysql or directly php.
>From what I understand I could simply save as text file tab delimited, but I
need somet
Hey,
Thanks for the reply,
what you sent me I had already read on other sitesI just didnt
understand them!
I basically wanted a longer explanation.
Thanks anyway,
-Ryan.
- Original Message -
From: "@ Edwin" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent:
Try the "mothership" again and type
php and "safe mode"
Click "Search". The first two results:
http://www.dynamic-webpages.de/php/features.safe-mode.php
http://info.ccone.at/INFO/PHP4/features.safe-mode.html
You can read only ONE so as not to get more confused... :)
- E
PS
Of course, y
Try changing your query to this: UPDATE news_db, newsreferenz_db SET
news_db.head = 'DFB Pokalasfasf', news_db.text = 'alkfhaslk fl akshf lakshf
lkahs lfk aslf yxvyxvyxvyxv', newsreferenz_db.kat_id = '3' WHERE (news_db.id
= '6' AND newsreferenz_db.news_id = '6')
Adding the ()'s around the WHERE d
Is it possible to set, delete, or alter htaccess usernames and passwords
using a php script? If so, where might I find a reference to the code for it
or even a walkthrough? I have searched the php functions and I haven't found
anything like that.
Thank you in advance.
--
I'm not sure if you've already tried the idea I posted earlier. Anyway, I
tried it myself and it works! (At least with this simple example...)
';
switch ($_GET['myvar']){
case 1: $_GET['myvar'] = 2;
case 2: echo "Hello!"; break;
case 3: $_GET['myvar'] = 4;
case 4: e
Hi Everyone,
I have a small question and just need some general direction, tried the
mothership(google) but got too many results and got more confused.
What is safe mode?
If you have any URL or file that can explain it kindly give it to me...
cheers and thanks again,
-Ryan.
Apologies to the list -- I *totally* sent this to the wrong mailgroup
sorry!
Justin
on 01/09/02 10:00 PM, Justin French ([EMAIL PROTECTED]) wrote:
> I go this email to my hinge address...
>
> I guess they want .h stubby holders!!
>
> J
>
> --
> From: "Karen and Jimmy" <[EMAIL P
I go this email to my hinge address...
I guess they want .h stubby holders!!
J
--
From: "Karen and Jimmy" <[EMAIL PROTECTED]>
Organization: Full Scale
Reply-To: "Karen and Jimmy" <[EMAIL PROTECTED]>
Date: Sun, 1 Sep 2002 21:20:17 +1000
To: <[EMAIL PROTECTED]>
stubbie holders!
--
Hi,
What's your definition of "open the word doc"?
Do you want to parse the contents of the Word Doc into a var?
Do you want to produce a link on the page TO the word doc?
Please be more specific -- it helps us give better answers.
Justin French
on 01/09/02 9:11 PM, DC ([EMAIL PROTECTED]) wr
Hi,
I have 200 items in a mysql database.
Each has a word document with the path:
Assets/Reports/Docname.doc
How do I open the word doc that is specific to the particular item?
Thanks
david
php novice
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.p
What about multiple tables? Can that be done?
"Mark Charette" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> No, only one db at a time may be updated. The "where" clauses can contain
> multiple db.
>
> -Original Message-
> From: Sascha Braun [mailto:[
Here is the list of the PHP's images functions:
http://www.php.net/manual/en/ref.image.php
You can look at filesize and getimagesize for the size / height width.
For the second question, I dont know look at the list.
--
Merci de nous avoir choisi. - Thanks you for your choice.
Nicos - CHAI
If you use global variables in your scripts, please put register global on
into php.ini.
--
Merci de nous avoir choisi. - Thanks you for your choice.
Nicos - CHAILLAN Nicolas
[EMAIL PROTECTED]
[EMAIL PROTECTED]
www.GroupAKT.com - Hébergement Group.
www.WorldAKT.com - Hébergement de sites Internet
php-general Digest 1 Sep 2002 09:21:25 - Issue 1559
Topics (messages 114789 through 114817):
Re: Last URL visited
114789 by: Marcel Besancon
Re: Dumb Question
114790 by: Michael Sims
114805 by: Gerard Samuel
UPDATE Query
114791 by: Sascha Braun
1147
What about
switch(@isset($_GET['status'])) ?
or
@switch(isset($_GET['status']))
--
Merci de nous avoir choisi. - Thanks you for your choice.
Nicos - CHAILLAN Nicolas
[EMAIL PROTECTED]
[EMAIL PROTECTED]
www.GroupAKT.com - Hébergement Group.
www.WorldAKT.com - Hébergement de sites Internet
"Peter Mr
Hello,
trying to figure a way to turn off the following warning. @ doesn't
seem to work neither does switch (isset($_GET['status'])){
Notice: Undefined index: status in E:\php\tt\index.php on line 6
switch ($_GET['status']){
scenario is this var is set in every instance but the first GET
SELECT * FROM mytable ORDER BY timestampcolumn DESC LIMIT 1
or
SELECT * FROM mytable ORDER BY id DESC LIMIT 1
HTH
Justin French
on 01/09/02 2:25 AM, Victor ([EMAIL PROTECTED]) wrote:
> How can I use php to get the newest entry from mysql database? Ie, if I
> make a timestamp and then I w
This would work if the script you wished to call was default.php / index.php
/ etc etc...
what I mean to say is site.com/index.php?var=foo is the same as
site.com/?var=foo, as long as your server works that way.
leaving out PHP_SELF will give different results if the script you wish to
call ISN'
Ooops, thats right. I should check over before i send i guess.
Sorry,
Todd
> $_SESSION is a predefined variable, session_start()
> session_register('BILLARRAY') should work though :)
>
> Keith Vance
> Vance Consulting LLC
> www.vanceconsulting.net
> (206) 355-2399
>
> Try my open source PHP aut
66 matches
Mail list logo