When the exec'd program executes from the command line, does it output a
blank line as its last line?
-Original Message-
From: Walker, Roy [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 25, 2002 2:05 PM
To: '[EMAIL PROTECTED]'
Subject: RE: [PHP] Regular Expressions? Help!
I just realize
No. I think there is a carriage return (\n), but there is not a blank line
at the end.
-Original Message-
From: Rick Emery [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 25, 2002 3:07 PM
To: 'Walker, Roy'; '[EMAIL PROTECTED]'
Subject:RE: [PHP] Regular Expressions? Help
There is only an upload_tmp_dir. Not sure where you think this second
tmpdir is coming from. Once the upload is finished the file is written to
the upload_tmpdir and you then have to do something with the file from
there.
-Rasmus
On Mon, 25 Mar 2002, Gerhard Hoogterp wrote:
> On Sunday 24 Mar
Do this.
Execute the command at the command line and re-direct output to a file: xxx.
Open file xxx with an editor, such as vi. Is there a blank line, or line
with JUST a carriage-return (\n) as the last line?
-Original Message-
From: Walker, Roy [mailto:[EMAIL PROTECTED]]
Sent: Monday
At 25.03.2002 14:26, you wrote:
>
>Perhaps it is how I am calling the $lines in a while loop.? I have tried
>`$cmd`, exec(), exec($cmd, $ouput) (to capture the output as an array),
>system(), shell_exec(). None of them let me capture the STDOUT from the
>program. There has to be a way to do th
Hey PHP General List,
Well it didn't work with $_session["logged"]
and now i found one more interesting thing. it works if i do like
this:
.
$row = mysql_fetch_row($result);
$session["uzeriz"]=$uzr_name;
$session["logged"]=1;
.
then i pass:
.
draw_admin_menu($session["uzeriz"]);
...
Have you got the url?
John Fishworld wrote:
> I've seen various tutorials on sessions where they specify the session id
> instead of just using one
> generated by php !
>
> Why ?
>
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Good day,
exec() isn't very good at capturing output. It will only return the last
line of output, which is designed mostly to capture error conditions.
You would be best off using popen() and attaching a pipe to the output, and
then just read from the pipe. More information can be found about
Can anyone help me with the command I need for a RAW FTP file upload?
I can create connections and they empty file, but I have no idea how to get
the data into the file and I have tried everything.
Chris
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.n
$KundeRemark = stripslashes($val["KundeRemark"]);
^^^
\ This is fine, you're assigning TO this \ It's this bit
that's undefined
as you said:
> which is a field from a SQL result which currently doesn't exist...
so, in a way,
Hi
php compiled fine but when i restarted the webserver I recieved this error
msg.
conf_init: Error running init function load-modules: dlopen of
/SuperPages/ns-home/bin/libphp4.so failed (ld.so.1: ns-httpd: fatal:
relocation error: file /usr/local/lib/libsablot.so.0: symbol
__pure_virtual: refe
The following is directed to the PHP development team.
I would like to suggest a capability be added to PHP's class implementation.
Specifically, provide the capability to segregate class data and methods
into private methods and data from those that are available for direct
invocation from the o
exec() can capture ALL output from a command if you supply an array as the
second argument to it
-Original Message-
From: Darren Gamble [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 25, 2002 3:58 PM
To: 'Walker, Roy'; '[EMAIL PROTECTED]'
Subject: RE: [PHP] Regular Expressions? Help!
Go
I have some image urls that I have stored in a mysql database. I want to be
able to display the images in a popup window using javascript. But I haven't
been able to figure out how to get the get the info to mysql so that the
image loads when the popup window appears. Below is an example of
The problem is that exec() is looking for an immediate output and since I am
calling a command line program it doesn't return fast enough for it (I
think). The popen or fopen looks like it would work, but I don't understand
how to execute the command. Ie.
-Original Message-
From: R
ini_set ('include_path', '/new/path').
Change '/new/path' to (usually) your website root.
Beleza?
;-)
--
Julio Nobrega.
Um dia eu chego lá:
http://sourceforge.net/projects/toca
"Alberto Wagner" <[EMAIL PROTECTED]> wrote in message
LI41WQTNUO1TTQHGHBGEGBBAWVWUB0E.3ca4d9dd@alberto">news:
On Mon, 25 Mar 2002, Mantas Kriauciunas wrote:
> Well it didn't work with $_session["logged"]
$_session is not the same thing as $_SESSION
miguel
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Mon, 25 Mar 2002, David McInnis wrote:
> When I save a file that has been uploaded through PHP it prepends (adds
> to the beginning of the file) the mime type. This renders the file
> unusable when it is downloaded as MS Word cannot open the file and tries
> to install some kind of converter.
Hi there,
I have my own extension and I need to compile it with PHP. I was able to use
the automatic build system to compile it as a static module (--with-mymodule
or --enable-mymodule). However, I cannot find any documentation on how to
compile it as a shared module. Can anybody enlgihten me how
On Mon, 25 Mar 2002, Brad Harriger wrote:
> I'm trying to debug a program written by someone else. There are two
> files that I'm having problems with. File A uses require_once to call
> file B. Near the beginning of File B is a Header("Location:") that
> calls File A. Can anyone tell me i
No luck on any of those suggestions people but thanks anyway :(
I had a feeling it was a bit too complex for a regexp.
> Oh, I didnt read the bit at the bottom about the times appearing any
> number of times. Off the top of my head I think this should work...
>
> PREG:
>
> "/'([a-z]+)-([a-z]+
Maybe I'm missing something, but if you mean that you want to add some new
functionality into your PHP module e.g. for the GD image library, then you create the
libphp.so all over again (don't you?)
--t.
On Mon, 25 Mar 2002, Charmaine Tian wrote:
> Hi there,
>
> I have my own extension and
I have no such statements in my code. This is looking like a known
issue in PHP. I gather that is taken care of in later releases.
David McInnis
-Original Message-
From: Miguel Cruz [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 25, 2002 3:47 PM
To: David McInnis
Cc: [EMAIL PROTECTED
In that case, I don't think I understand what you're asking.
Are you saying that the file stored on the server's filesystem after a
multipart/form-data POSTing has the MIME type added to its content?
Because our servers handle thousands of such transactions daily and it's
certainly not happeni
Anyone run into this problem before? I've got a simple email parser
that I've set up for our clients to access from their websites. It just
uses the simple mail() function to send the parsed HTML to their
account. The mail() function is returning TRUE but the email no email
is being received.
Sure, it just passes it off to the MTA. If the MTA drops the ball later
on we don't know about it. Check your logs.
On Mon, 25 Mar 2002, Kevin Stone wrote:
> Anyone run into this problem before? I've got a simple email parser
> that I've set up for our clients to access from their websites.
Your message of Mon, 25 Mar 2002 09:42:11 -0800 (PST):
Ah, I see, thanks for the quick response. Reminds me, that I should
possibly switch off global registering, anyway ...
Ahm, comparing (count($HTTP_GET_VARS)) with my expression below
(!$HTTP_POST_VARS)
shouldn't then
(!$HTTP_GET_VARS)
do
Your message of Mon, 25 Mar 2002 09:39:06 -0700:
> The error message refers to the "KundeRemark" in $val["KundeRemark"], not
> "$KundeRemark" which you are trying to assign the result to. The former is
> (if it existed) an index, the latter is a variable.
>
Oh, yeah, I see. Stupid me. Thanks!
There is a pretty good tutorial on a simular topic on Site Point... it deals
with restricting SOME pages of a website, and would be reasonably easy to
adapt to work with a permissions table -- although I'd keep the user_id in a
session, and check if *THIS USER* has permission for *THIS PAGE*, rath
Just a follow up - I've been doing some debugging of my own code and here
are the three different errors to do with undefined varariables:
Undefined variable - variable not set/declared
Undefined offset- numeric index doesn't exist
Undefined index - alphanumeric index doesn't exist
(I m
I did started MySQL server first.
"Avdija A . Ahmedhodzic" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED]
> says...
> > Hi,
> > I installed PHPTriad under Windows XP and I keep gettting the
> > following error
You won't be able to do that with a regexp alone. Recursively matching
isn't possible. You'll need a little help from some additional code.
\n" . $matches[2] . "\n" );
while( list( $key, $val ) = each( $times ) ){
print( trim( ${val} ) . "\n" );
}
?>
That seems
Just gave it up for GoLive6 :)
The php model never worked well.
I even purchased impAKT and Nextensio.
The 1.1 version somewhat worked, the 1.2 was DOA.
Most of those features are in the GL6.
Samples illustrate edit in lists and list and edit areas on same page.
Sessions not as easy.
MacOSX N
Brilliant. (Sort of)
Thats the answer I needed thankyou.
I was not sure as to whether regexp could do recursive matching and now I
know.
Thankyou for your help.
> You won't be able to do that with a regexp alone. Recursively matching
> isn't possible. You'll need a little help from some addit
I would check the mail logs on the smtp server ?(if you have access)
or... try this and see if ANY mail is bveing sent to you (assumes a unix
server with sendmail (or compatible) binary installed)
$fp=fopen('./tmp', 'w');
fputs($fp, 'Subject: '.$reportsubject.chr(10));
fputs($fp, $
Hi, can anyone help me with this problem.
I'm trying to connect to a MySQL database on my computer, I don't have a
hostname for it, so I just insert the IP, something like this.
...
mysql_cos?
Thanks.
-Chris
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.ph
I have no idea what you meant to ask... but instead of an ip address I
would use the hostname 'localhost' which most servers are setup by
default to understand as 127.0.0.1 (loopback). And you can add an entry
to /etc/hosts or C:\windows\hosts or c:\winnt\(?system(?32?)\?)hosts
But that's just me
Hi,
Genenally you can use 'localhost' as the hostname username 'root' and the
password is blank.
I beleive this is a default user when mysql is installed.
The details about how to connect are in the database 'mysql' and the
table 'user'. You should probably add a new user specifically for your p
Hello,
I want to be able to edit part of a file. via a text box using php how do i read a
file and get the part i want to read and edit it and then write it back to that file
here is an example:
.
case "$1" in
start)
100.123.456.789
321.654.987.231
123.45.456.789
123.456.789.12
;;
You read the entire file into memory (an array using file() perhaps) and
then edit it in memory and write the entire new file back out.
-Rasmus
On Mon, 25 Mar 2002, Randy Johnson wrote:
> Hello,
>
>
> I want to be able to edit part of a file. via a text box using php how do i read a
>file an
How do I know what part of it to read in the array?
- Original Message -
From: "Rasmus Lerdorf" <[EMAIL PROTECTED]>
To: "Randy Johnson" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Monday, March 25, 2002 9:03 PM
Subject: Re: [PHP] File Edit
> You read the entire file into memory (an
I wanna buy a book from amazon . . .but don't know which one..
Do you know where I will find examples of shopping carts ? (which book ?)
thanks..
--
Sapilas@/dev/pinkeye
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.p
You read all of it
On Mon, 25 Mar 2002, Randy Johnson wrote:
> How do I know what part of it to read in the array?
> - Original Message -
> From: "Rasmus Lerdorf" <[EMAIL PROTECTED]>
> To: "Randy Johnson" <[EMAIL PROTECTED]>
> Cc: <[EMAIL PROTECTED]>
> Sent: Monday, March 25, 2002 9:03 P
Hi all,
I am trying to build a regex to check if an array of allowed html tags
were closed. For example:
Wrong:
text
Should give me something like: Tag was not closed.
Here's what I came up so far:
$tags_to_check = Array('a','b','i','p');
foreach ($tags_to_check as $tag_check) {
i
ok i read all the file into an array,
now do i search each line in the array .
based on my example i do not know how to proceed
after reading it into the array
case "$1" in
start)
100.123.456.789
321.654.987.231
123.45.456.789
123.456.789.12
;;
- Original Message -
From: "R
Hi Chris:
On Mon, Mar 25, 2002 at 02:05:30PM -0700, Chris wrote:
> Can anyone help me with the command I need for a RAW FTP file upload?
> I can create connections and they empty file, but I have no idea how to get
> the data into the file and I have tried everything.
Have you tried first creati
On Mon, 25 Mar 2002, Jack wrote:
> Can someone pls tell me is php will be able to grep text from MS Word and
> then save that word file into MYSQL database? Which means is MYSQL will be
> able to store files into it's table?
You can pipe the Word document through a program like catdoc
(http://ww
Hey Steven:
On Mon, Mar 25, 2002 at 09:40:01AM -0800, Steven Walker wrote:
> I have PHP automated emails sent from my website. Does anybody know a
> good way to filter returned mail? What I want to do is extract the bad
> email addresses from returned mail and delete them from my database.
Ar
Chris:
On Mon, Mar 25, 2002 at 08:38:16AM -0500, Chris Hilbert wrote:
> I was wondering if anyone would know how I could go about checking two XML
> files for differences, similar to the "diff" command in *nix. I'm having a
> heck of a time getting a function written to achieve this task.
Which
Tom,
I sort of do the same here,... think you'll find that index.html is the
'default index' for a directory when a page isn't specified on your web
server and that she's going to http://www.domain.com
Hope this helps.
Jim.
"Tom Hilton" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED
On Mon, 25 Mar 2002 18:18:33 -, [EMAIL PROTECTED] (Chad Gilmer)
wrote:
>Hi There,
>
>I am a beginner to PHP and I am tring to use session variables on my site.
>
>I am trying to use Session Variables in PHP on the iPLANIT.tv site
>
>When I use the following code:
>
> $ses_counter++;
>
> sessi
On Mon, 25 Mar 2002 08:54:27 -0700, [EMAIL PROTECTED] (Johny? ?rk)
wrote:
>Do you have register_globals turned on or off in php.ini? What values are $a
>and $b being set to?
>
>Kirk
>
>> -Original Message-
>> From: bob [mailto:[EMAIL PROTECTED]]
>> Sent: Sunday, March 24, 2002 4:21 PM
>>
You can do recursive matching using the (?R) syntax in preg functions (Perl
Compatible Regular Expression).
- Original Message -
From: "Christopher William Wesley" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: "Cameron Just" <[EMAIL PROTECTED]>
Sent: Tuesday, March 26, 2002 1:01 AM
Subj
On 25 Mar 2002 at 0:29, [EMAIL PROTECTED] wrote:
> yes, but i send them back to the previous page
> and it shows the form...
>
> What would be a way around this?
> - Original Message -
> From: "David Robley" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Sunday, March 24, 2002 11:
At 11:30 AM +1000 26/3/02, Cameron Just wrote:
>I was not sure as to whether regexp could do recursive matching and now I
>know.
This is crazy! There used to be clue on this list!
\n";
}
}
?>
Output:
$tok[0] = wed
$tok[1] = thurs
$tok[2] = 9:35
$tok[3] = 14:56
$tok[4] = 18:35
$tok[5]
How do I know if my web hosting server installed PEAR correctly?
I'm trying to create a Search Engine from the PHP Developer's Cookbook,
and so far, here's what I know:
PHP has the PEAR installed ('--with-pear' according phpinfo.php)
And having telnetted into my server, was able to find the PEA
I am putting certin code within comment tags, so it isn't seen...
- Original Message -
From: "David Robley" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Monday, March 25, 2002 11:00 PM
Subject: Re: [PHP] Re: Non-Cache in forms?
> On 25 Mar 2002 at 0:29, [EM
Your popup window should be an normal PHP page calling your images in the
database. You can then setup your form to call the popup windows via
javascript using the window.open() method.
/dkm
- Original Message -
From: "Scott" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday,
On Tuesday 26 March 2002 10:41, Randy Johnson wrote:
> ok i read all the file into an array,
>
> now do i search each line in the array .
Yes. Based on the fragment of file that you've given, here's some psuedo-code.
initialise 3 arrays, $top, $middle, $bottom;
$found_middle = 0; $found_bottom;
Very nice. I was going to suggest:
But uhhh, your way is much nicer :]
- Original Message -
From: "Richard Archer" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, March 26, 2002 4:04 AM
Subject: Re: [PHP] Regular Expression Challenge
> At 11:30 AM +1000 26/3/02, Cameron Ju
Can someone point me to a webset that example how to do cookies? I try to do
what the mannual said but, when I go to my temp dir, there no cookie file. I
know it working because my file would print a phrasing error.
Thanks,
| Chuck Payne |
| Magi Desi
This was a problem with the version of PHP that I had installed.
PHP-4.0.4pl1. Apparently there is a bug that causes this to be written
to the front of the file.
Solution? Upgrade.
David McInnis
-Original Message-
From: David McInnis [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 25,
101 - 162 of 162 matches
Mail list logo