I tried what Matt suggested but it doesn't work. Anybody else got any
suggestions?
- Original Message -
From: "Tim Harvey" <[EMAIL PROTECTED]>
Newsgroups: php.general
To: <[EMAIL PROTECTED]>
Sent: Sunday, November 11, 2001 3:44 AM
Subject: Problems with the fopen() function
> Can somebo
On Sunday 11 November 2001 05:18, HEW Staff wrote:
> Hi,
>
> I'm trying to pull a random row from my database and display the
> contents.
>
> I know that the code:
> SELECT * FROM TABLENAME WHERE RAND() LIMIT 1
> should work.
(1) [EMAIL PROTECTED] has nothing to do with this. So don't crosspost t
If I have the string like this "str1 | str2"
Then "|" is found
However, if I do the above as "str1|str2" without spaces
Then "|" can not be found
I appreciate any hints on a work around.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additio
Can someone please tell me what to look for when this error appears:
Warning: Cannot use a scalar value as an array in
/home/sites/site7/web/admin/repeat.php on line 141
It just came about in a page that has worked fine until now. But that is how problems
usually arrive, I think it is fine and
It works now!! It was some problems with DreamWaver ..
"Kal Amry" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> If I have the string like this "str1 | str2"
>
> Then "|" is found
>
> However, if I do the above as "str1|str2" without spaces
>
> Then "|" can n
php-general Digest 11 Nov 2001 09:44:26 - Issue 988
Topics (messages 74125 through 74160):
Re: global variable for all scripts
74125 by: Kurt Lieber
mail() attach jpeg
74126 by: jtjohnston
Date help (no not that kind)
74127 by: sundogcurt
gdImageGif compile errors
Hi All,
I have a kind of unique problem that I've had trouble finding information
on around the net. I have a site that I pay a hosting company for that
expects my php scripts to have #!/usr/local/bin/php at the beginning of
each script which works fine. Now, I'd like to keep a development serv
Hi
Check out this attached
image.
This is the source HTML :
1
1
Notice that the upper pull down
has a small space on the left side of the arrow.
Anyone has an idea why the RTL
makes that?
--
PHP General
In article <008a01c16a91$9da01200$89383842@home>,
[EMAIL PROTECTED] (Brett) wrote:
> Can someone please tell me what to look for when this error appears:
> Warning: Cannot use a scalar value as an array in
> on line 141
On (or before) line 141 of /home/sites/site7/web/admin/repeat.php, an arr
Leave out the second $.
Eg, $this->database is correct.
Next time when debugging, set error_reporting(E_ALL);
This will catch this error I believe.
Bye, John
Alexander Czernay <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi,
>
> I just tried to write a si
Run in CGI mode. The ISAPI is still a bit unstable. Sigh.
Kevin Pratt <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I appear to be having a problem where when I run a PHP script that uses
ODBC
> calls my ASP/ODBC driven pages stop functioning. When I run a P
This is a Cobalt box! well you should edit the code and look at line 141 -
What error it mentions.
Telnet to the box, and cd to that directory
then vi repeat.php to edit the file
then Type 141 and then Shift G
That should take you the line but if you are not familiar with vi the do
not conti
I didn't see the description of the error so take that into consideration
when reading my post, yet I agree Zona.
"Cc Zona" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> In article <008a01c16a91$9da01200$89383842@home>,
> [EMAIL PROTECTED] (Brett) wrote:
>
PHP 4.0.5, as far as I know.
- Original Message -
From: "Brian Clark" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, November 11, 2001 6:15 AM
Subject: [PHP] e modifier
> Does anyone know when the PCRE modifier 'e' was added into PHP? Is it
> version dependant, or
Dear all
can I view a pop3 mail account without using IMAP?
If there is can someone point me to such a resource
the function imap_open() will not work on my cgi server
Thanks
Colm Rafferty
-Original Message-
From: Christian Dechery [mailto:[EMAIL PROTECTED]]
Sent: Sunday, November 11,
> can I view a pop3 mail account without using IMAP?
> If there is can someone point me to such a resource
> the function imap_open() will not work on my cgi server
http://phpclasses.upperdesign.com has a number of pop3 access classes iirc.
--
Richard Heyes
"If you have any trouble sounding cond
Hi all,
Description of my problem: i want to sent a newsletter to a mailgroup.
However i also want to be able to see who read the mail at a certain
moment and who didn't. Therefor i thought putting the page online, i.e.
it's a php page which gets its data from the database. By sending a mail
to t
has a problem with a
date written as 11/11/2001, but when 10/11/2001 is written down, does it mean
yesterday (10-Nov-2001) or one
month back (11-Oct-2001)? In America, the two formats are known as "American"
(MM/DD/CCYY) and "European"
(DD/MM/CCYY) format.
Moving to the format used
Hi everybody,
I hope someone is able to help me with this, I've been having this problem for a
couple of months now and I have not been able to find a solution. I have a form to
upload a file which submits to itself, and has two submit buttons, one called
"eliminarfoto" (deletephoto) and "sal
Sandra,
I've been trying to get a file upload form to work, but am not having any
success. So, I dropped the file part from the form, leaving just text input,
and have discovered that when I use the POST method, my variables may or may
not be available on the receiving page. GET works fine. I've
On Sunday 11 November 2001 04:49, Michael Rice wrote:
> Hi All,
> I have a kind of unique problem that I've had trouble finding information
> on around the net. I have a site that I pay a hosting company for that
> expects my php scripts to have #!/usr/local/bin/php at the beginning of
> each scri
Hi Steven,
Thanks a lot for answering. Have you uploaded files successfully with the
GET method? I was wondering if the problem may be because I submit the form
to itself and not to another PHP page. All the examples I see, the form gets
submitted to a different php page.
The strange thing in my
Can someone help?
I'm trying to figure out how to attach my image.png that I create on the
fly.
This would work if I had mime text. What's wrong with this? How do I
conver $image to mime format or ... how shlould I approach this problem?
--
PHP General Mailing List (http://www.php.net/)
To u
Hi,
I have a class that allows me to send e-mail with an attachment. I have a form that
gathers information and I would like to allow the user to attach a file from his local
drive. Is there a PHP routine that allows the user to browse his drive and choose a
file?
Thanks,
Don
I am sure that I am just .. missing this ..
>From one script I wish to 'execute' another script. How is this done?
Setting a link and clicking is not the answer .. one script loops
through all the 'selected' rows and I want to 'execute' another script
for each row .. can this be done?
thanks
I found a lot of scripts which regarding this user authentication.
But most of them are using mysql for their userlist
What if I got a server which have users in it, and I want to reuse the
same list of users and password in the server.
What should I do ?
Thankyou
Jian An
--
PHP General M
I'm not clear on what it is that you are trying to accomplish. Could you
restate your question, please?
At 08:43 PM 11/11/2001, David Tod Sigafoos wrote:
>I am sure that I am just .. missing this ..
>
> >From one script I wish to 'execute' another script. How is this done?
>
>Setting a link an
Hi,
I have a class that allows me to send e-mail with an attachment. I have a form that
gathers information and I would like to allow the user to attach a file from his local
drive. Is there a PHP routine that allows the user to browse his drive and choose a
file?
Thanks,
Don
i'm new to php and need some advice. i have a site currently composed
of static pages generated via a c program. i want to convert the site
to php. the first page is an explorer-like table listing summary
information. when a user clicks on a row in this table, they're taken
to a detail page w
When in "safe mode" shouldn't PHP check to see if the directory that is
about to be opened with a opendir() function has the same UID as the PHP
script itself, and fail if the UIDs do not match?
Because in PHP 4.0.6 with safe_mode "on", a PHP script owned by "fred" can
open any directory owned
it's HTML
-Original Message-
From: Don [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 12, 2001 3:37 PM
To: php
Subject: [PHP] emailing attachments
Hi,
I have a class that allows me to send e-mail with an attachment. I have a
form that gathers information and I would like to allow
Thanks. I already tried that which allowed me to browse but...
In my form, I have:
My form line is :
Yet when I submit, and check the value of $filename in my PHP script, it is empty???
Therefore, the attachment in my mail class
ends up being empty and not sent!!!
> it's HTML
>
>
>
include "file";
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 12, 2001 3:44 PM
To: [EMAIL PROTECTED]
Subject: [PHP] executing another php.script
I am sure that I am just .. missing this ..
>From one script I wish to 'execute' another scrip
Good time of a day!
well... as for me the construction...
switch($action)
{
case ...
..
}
...is not very elegant when number of cases over 40-60 or more and the only
thing they must do is start one function (often with the same name). for
example:
ca
[EMAIL PROTECTED] wrote:
>
> When in "safe mode" shouldn't PHP check to see if the directory that is
> about to be opened with a opendir() function has the same UID as the PHP
> script itself, and fail if the UIDs do not match?
From 4.1.0, optional GID check is available.
>
> Because in PHP
But where user "fred" can opendir() a directory owned by user "mary"
(underneath the open_basedir), that action doesn't even pass a UID check
if the UIDs are supposed to match in safe mode in order for the action to
be allowed.
How would an optional GID check help?
A.
> > When in "safe mode"
On Mon, 12 Nov 2001 15:16, Scott Dudley wrote:
> i'm new to php and need some advice. i have a site currently composed
> of static pages generated via a c program. i want to convert the site
> to php. the first page is an explorer-like table listing summary
> information. when a user clicks on
Hello,
I need to capture the contents of a Form into a text file format and
automatically allow the user to Save the file to his desktop.
Here is what I am intending to do:
* Capture the form contents and save to a temporary file. This works fine.
* Provide some method of the user automatically
once you have read in the file and parsed it up, all you need to do then is
to find the correct "string" to execute and call it using :
eval($string);
happy coding
Martin T
-Original Message-
From: Galkov Vladimir [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 12, 2001 4:12 PM
To: [E
Hello. I just want to confirm that if I use a system call to
execute gzip, so I can zip a directory, the file can be
decompressed by windows users
for example, if I visit
bleh.php and it compresses a directory /directory
will that file that it creates, which I download, be
able to be unpacked u
[EMAIL PROTECTED] wrote:
> But where user "fred" can opendir() a directory owned by user "mary"
> (underneath the open_basedir), that action doesn't even pass a UID check
> if the UIDs are supposed to match in safe mode in order for the action to
> be allowed.
>
> How would an optional GID check
On Mon, 12 Nov 2001 16:28, [EMAIL PROTECTED] wrote:
> Hello. I just want to confirm that if I use a system call to
> execute gzip, so I can zip a directory, the file can be
> decompressed by windows users
>
> for example, if I visit
> bleh.php and it compresses a directory /directory
> will that f
Gzip only compresses single files?
So what if I want to compress a directory and have it download when a page is
accessed?
I thought gzip would allow this. To compress a specified directory
when page.php is accessed. This is confusing. I tried the zend.com articles,
too confusing to grasp. I a
Hi,
I'm facing a problem. I made a simple DB with simple
adding records in DB operation. I've even put up a
JavaScript validation of the Form from where you add
info. And yet, in the display table, there are many
many blank fields. I don't know how they are
generated.
The Adding of info form is
On Mon, 12 Nov 2001 16:51, [EMAIL PROTECTED] wrote:
> Gzip only compresses single files?
>
> So what if I want to compress a directory and have it download when a
> page is accessed?
>
> I thought gzip would allow this. To compress a specified directory
> when page.php is accessed. This is confusi
say you have 100 records.
you delete number 36.
your db will then be
...
34
35
37
38
...
correct?
after a delete, you could then say:
update table set id_num=id_num-1 where id > 36
and this would update all relevant records
-Original Message-
From: Thomas Edison Jr. [mailto:[EMAIL PROTEC
I want to make a login page in PHP, which will check the
user/password against the system's user/password file (in my case,
/etc/passwd and /etc/shadow.) With the machine running PAM, how can I
have PHP do this?
Keep in mind I don't need to modify anything, just verify the
login. Once
$string = preg_replace('/]*>/si', '', $string);
"Richard S. Crawford" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
All I need to do is strip out IMG tags from strings; I don't want to strip
out all of the HTML, just the IMG tags, so the strip_tags() function won't
be adequate.
Hello,
Is is advisable that I mail lots of users from a database via one call to
mail() ?
Or else, how do you think I should split the list and send my mails?
Is there is a way to tell if the mail was returned because the email address
was invalid?
Thanks.
--
PHP General Mailing List (htt
49 matches
Mail list logo