I am trying to ftp with php code. The code works, but the file is truncated for some
reason.
The only thing that I could think of would be directive in the php.ini file, but these
seem to be ok:
max_execution_time = 60 > the files / script process quickly, so this doesn't seem to
be the probl
Jack wrote:
Dear all
here is the path i want to open for reading files from it!
path = "c:/pdf_reports/bills/Oct-02"
Here you have no trailing /
--- Snip ---
when i change the path to : "c:/pdf_reports/bills/"
But here you do...
It should not make a difference as far as I know, but it may be w
Are you sure you are using the ASCII/Binary flag properly?
Also, in your script, are you opening the file with fopen() then reading
with fgets/fread to write to a file on the ftp? or are you using ftp_put()?
I know if there is binary data in a file you are attempting to send ascii,
it will truncat
When trying to imap_connect to my local imap server, I get this error:
Warning: Couldn't open stream {localhost:143} in /var/www/html/user/mail.php
on line 2
can't connect:
Any ideas? Thanks
"Greg" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Can I user ph
Hi there,
I am hosting a server running castle wolfenstein for a few friends of mine &
want to make a web page to run on the same server that they can log in to to
stop & start the game when they want.
I have tried putting the following code in a web page -
This creates a process on my server as
Hi all
I have kind of a very strange problem... But I hope someone can help.
Imageing a little web-based application for browsing images. Every page is
exactly the same (from a php point of view). A user can browse through all
the images which are displayed as thumbnails. Normally, everything work
Aloha All,
I've just installed RedHat Linux 8.0 and everything seems to work except I
get this error from any of my .htaccess files.
Invalid command 'php_flag'
If I remove the php_flag then the site loads, otherwise I get an internal
server error.
The default install for RH8.0 is PHP 4.2.2 and
PHP Journal is a new, quarterly technical publication focused on all
things PHP. The first issue of PHPJ is scheduled for publication in
January 2003, and features a great line-up of columns (that will appear
in every issue) and feature stories, all written by experienced PHP
developers and authors
On Tuesday 26 November 2002 04:42, Kyle Gibson wrote:
> > Thanks, but that doesn't allow nested tags (a [b] tag inside of an [i]
> > tag, for example).
>
> Nested tags? Do you mean [ib] ? Or [i[b]]?
I think he means:
"[i]A sentence in italics, with a word in [b]bold[/b][/i]"
--
Jason Wong -> G
I think he means:
"[i]A sentence in italics, with a word in [b]bold[/b][/i]"
Yeah he told me.
--
Kyle Gibson
admin(at)frozenonline.com
http://www.frozenonline.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Thanks, but that doesn't allow nested tags (a [b] tag inside of an [i]
tag, for example).
Try this:
\2',$text);
while($temp != $text)
{
$temp = $text;
$text = ereg_replace($pattern,'<\1>\2',$text);
}
return $text;
}
print format_text('[i] this is a [b]bold[/b]
Just released some more functionality. The major push right now is join
my efforts with those of Christian Stocker to get one single module into
PEAR. Christian and I have been working that. Please see the latest
changes below...they are significant.
- functions added:
Hi all,
I am looking for a php forum module for NUKE portal system. I am
specifically looking for the same functionality as yahoogroups has where the
user can post/receive messages on a specified email address- beside
accessing the forum via the web.
Thanks a lot,
GAbi.
_
true or false:
when declaring a function, a given argument can be declared to pass by
reference, or can be declared to have a default value, but never both.
i.e., you can only write one of:
function foo(&$param)
function foo($param = "bar")
but never the equivalent of:
function foo(&$param = "ba
there's sort of one in there already ... but also check out
http://www.nukescripts.net/ and that has links off that for other nuke
sites/add on's
> -Original Message-
> From: The Gabster [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, 26 November 2002 9:35 AM
> To: [EMAIL PROTECTED]
> Subject:
Mattia,
> Can anyone suggest an ELEGANT way to find out if an array is made of empty
> strings or not?
> example
> $a = Array( '' , '' , '' ); //ok
> $b = Array( '' , '' , 'error' ); // not ok
> $c = Array( 'error' , '' , 'error' ); // not ok
implode() then check for nullstring/count characters.
That'll do it... thanks a lot!
Eric
Martin Towell <[EMAIL PROTECTED]> wrote: try these: ImageCopy*()
-Original Message-
From: Eric Pierce [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 25, 2002 2:57 PM
To: [EMAIL PROTECTED]
Subject: [PHP] inserting preexisting image inside dynamic im
on 26/11/02 2:41 AM, Brian V Bonini ([EMAIL PROTECTED]) wrote:
> Also, try to use relative sizes, if you use fixed sized like 10pt. you
> will have size discrepancies on different platforms. If you use a
> relative scheme like 12px it will render more consistently
12px is NOT a relative size,
on 26/11/02 7:42 AM, Kyle Gibson ([EMAIL PROTECTED]) wrote:
>> Thanks, but that doesn't allow nested tags (a [b] tag inside of an [i]
>> tag, for example).
>
> Nested tags? Do you mean [ib] ? Or [i[b]]?
I would have thought nested tags would have meant:
[i]something something [b]bolder[/b] some
Hi!
Here is my scenario. I'm doing a dynamic html with php for my address book.
When I enter all the data that is necesary and hit Submit, for saving the
user( using POST), I get an error or success message, which is OK, but if I
press a Refresh button now, it will try to save the user again, bec
Thanks Peter...
I was there but I wasn't able to come up with anything. Can you please name
one?
Thanks a lot,
GAbi.
"Peter Houchin" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> there's sort of one in there already ... but also check out
> http://www.nukes
On Mon, 2002-11-25 at 18:26, Justin French wrote:
> on 26/11/02 2:41 AM, Brian V Bonini ([EMAIL PROTECTED]) wrote:
>
> > Also, try to use relative sizes, if you use fixed sized like 10pt. you
> > will have size discrepancies on different platforms. If you use a
> > relative scheme like 12px it wil
I'm using a verification code image to stop automated sign ups, but two
hackers seem to be OCRing it. I've looked through the registration
script, and there's definitley no security holes. Does anyone have any
ideas as to making the image harder to OCR?
// seed with microseconds
function mak
It appears to do some stuff which is undocumented.
Specifically it quotes input to popen thus causing any redirection and other
comand line stuff to be passed to the program that is being invoked
as command parameters. Most of the stategies to simulate
bidirectional pipes break because of this.
Jr
It appears to do some stuff which is undocumented.
Specifically it quotes input to popen thus causing any redirection and other
comand line stuff to be passed to the program that is being invoked
as command parameters. Most of the stategies to simulate
bidirectional pipes break because of this.
Jr
Hi,
I have a form where a user enters an email address. The contents of the form
are then sent to myself, which works fine. The problem is that the from
field says it is from nobody - how can I get it to say it is from the email
address the user inputted - or is this possible?
TIA
--
PHP Gene
you can use the (optional) headers argument to mail() and add the From
header:
mail ($to, $subject, $body, "From: $from");
"Beauford.2002" <[EMAIL PROTECTED]> wrote in message
000f01c294e0$6ce1fcd0$6401a8c0@p1">news:000f01c294e0$6ce1fcd0$6401a8c0@p1...
> Hi,
>
> I have a form where a user enters
Hi,
I am developing a demo of an application which uses barcodes, but I'm
running into the following problems:
1. The gd library's compiled with SuSE 7.3 Pro version of PHP 4.06 doesn't
support TTF so I have to install Postcript fonts (it does support Type 1),
and I really don't know where I sho
I just built a new server and loaded with RH8. I copied my php files over
to the new apache server and modified the links. I couldn't find any
mention of php in the httpd.conf so I figured it must me compiled into httpd
so I tested it. The PHP files load, however, the php_auth_user and
php_auth_
Just a quick guess that register_globals is probably turned off (check
with a phpinfo() to be sure) and therefore $PHP_AUTH_USER and $PHP_AUTH_PW
are not being set.
Or, try $_SERVER[PHP_AUTH_USER], etc...
On Mon, 25 Nov 2002, Larry Brown wrote:
> I just built a new server and loaded with RH8. I
Phil,
You da man! It just doesn't get any sweeter. Register_globals is off.
Thank you,
Larry S. Brown
Dimension Networks, Inc.
-Original Message-
From: Philip Hallstrom [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 25, 2002 7:40 PM
To: Larry Brown
Cc: PHP List
Subject: Re
Doesn't PHP-Nuke have support forums? It would be better to ask in there if
they do.
-Original Message-
From: The Gabster [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 25, 2002 3:43 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] forum module for NUKE?
Thanks Peter...
I was there but
I have a page with thumbnail pictures that can be clicked on to see a larger
picture. Each picture is hyperlinked as follows
I access the 'pic' & 'caption' attributes with $_GET['pic'], etc. Pretty
standard stuff.
I have PHP set up so that error messages get mailed to a specified mail
on 26/11/02 11:04 AM, Brian V Bonini ([EMAIL PROTECTED]) wrote:
> On Mon, 2002-11-25 at 18:26, Justin French wrote:
>> on 26/11/02 2:41 AM, Brian V Bonini ([EMAIL PROTECTED]) wrote:
>>
>>> Also, try to use relative sizes, if you use fixed sized like 10pt. you
>>> will have size discrepancies on d
Hello,
On 11/25/2002 10:34 PM, Axis Computers wrote:
I am developing a demo of an application which uses barcodes, but I'm
running into the following problems:
1. The gd library's compiled with SuSE 7.3 Pro version of PHP 4.06 doesn't
support TTF so I have to install Postcript fonts (it does su
is it that your response page and the page processing the data are the same
page? i have had issues with this previously and had to use a 3 step
process -
1. address book form
2. processing script page
3. response page
--
Christian Haines
Internet Developer
MITOUSA.
Branding Strategies for
Hi All,
I'm a PHP newbie and Im really having difficulty with client-server
certificate validation using Openssl and PHP. If somehow you know of a
tutorial, a website or sample PHP codes that checks (expired, revoked) and
validates client certificates, it would be of great help.
Hi,
Thanks to all who replied to my previous email. One more small problem. I am
trying to get the message portion of the email to have line breaks, but
whatever I do it displays on one line. This is what I have.
$message = "First Line\n";
$message = "First Line\n";
--
PHP General Mailing Lis
Hi Folks,
Just checking around to see if anyone is using a Purolator web service
to determine shipping costs online.
Wondering if there are classes available and if the service is hard to
use.
Thanks very much,
Matt Friedman
> -Original Message-
> From: John W. Holmes [mailto:[EMAIL
Hi Folks,
Just checking around to see if anyone is using a Purolator web service
to determine shipping costs online.
Wondering if there are classes available and if the service is hard to
use.
Thanks very much,
Matt Friedman
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, v
Hi,
Sorry, my last email got sent by mistake.
I am trying to get the message portion of the email to have line breaks,
but whatever I do it displays on one line. This is what I have.
$message = "1st Line\n";
$message .= "2nd Line\n";
$message .= "\n";
$message .= "3rd Line\n";
$message .= "\n
I am trying to get the message portion of the email to have line breaks,
but whatever I do it displays on one line. This is what I have.
$message = "1st Line\n";
$message .= "2nd Line\n";
$message .= "\n";
$message .= "3rd Line\n";
$message .= "\n";
$message .= "4th Line\n";
mail ("", $subject,
I have user Header("Location: test.php") in a php file. It is not working,
instead I have got a warning of the form
Warning: Cannot add header information - headers already sent by (output
started at /var/www/html/test.php:5) in /var/www/html/test.php on line 15
Here line 15 contains the Header (
your header command must go before any other out put to the page ..
eg
boo
etc
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, 26 November 2002 3:02 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Warning with Header("Location: test.php")
>
>
>
Hi guys,
Lets say I have a table called 'employees', and another table called
'training_history'.
Lets say I need to delete an employee, I would also have to delete his
record in the 'training_history' table.
Which is the best way to go about this? Controlling it at application
level? Or should
on 26/11/02 3:46 PM, Faisal Abdullah ([EMAIL PROTECTED]) wrote:
> Lets say I have a table called 'employees', and another table called
> 'training_history'.
>
> Lets say I need to delete an employee, I would also have to delete his
> record in the 'training_history' table.
The employee would (I
> I have user Header("Location: test.php") in a php file. It is not
working,
> instead I have got a warning of the form
>
> Warning: Cannot add header information - headers already sent by
(output
> started at /var/www/html/test.php:5) in /var/www/html/test.php on line
15
header() must come befor
--- Richard Rojas <[EMAIL PROTECTED]> wrote:
> I'm a PHP newbie and Im really having difficulty with
> client-server certificate validation using Openssl and
> PHP. If somehow you know of a tutorial, a website or
> sample PHP codes that checks (expired, revoked) and
> validates client certificates,
> So, yes, I'd do this at an application level... although I have no idea what
> triggers are :)
>
It does pretty much the same, only at the database level. The
application doesn't have to know. All the application needs to know is
to delete the id in the 'employee' table. Triggers will do the re
I need help once more. I have a variable that is a string with spaces. What I need to
do is put a "+" sign in the spaces so that the string will print like
"This+is+a+string." I have tried using implode, but I get this error:
Warning: Bad arguments to implode()
The code I am using is as follows
str_replace
On Mon, 25 Nov 2002, Jami wrote:
> I need help once more. I have a variable that is a string with spaces. What I need
>to do is put a "+" sign in the spaces so that the string will print like
>"This+is+a+string." I have tried using implode, but I get this error:
>
> Warning: Bad arg
Ok, figures I would be looking for something else and find the solution.
urlencode(). Thanks for the reply Rasmus. :-)
Jami
- Original Message -
From: "Jami" <[EMAIL PROTECTED]>
To: "PHP General" <[EMAIL PROTECTED]>
Sent: Monday, November 25, 2002 11:26 PM
Subject: [PHP] implode()?
I
is down?
or my computer .
Paul Marinas
Technical Support
RDS Craiova
Phone: +402-51-410-194
Mobile: +407-22-451-439
Fax:+402-51-416-579
www.rdsnet.ro
.
Privileged/Confidential Information may be contained in this message. If you
are n
Lets see where to start. Ive used both the px, pixels, and the small and
tested them both in Linux (Mandrake 9.0) using Mozilla. Galeon and Opera,
using default settings they come with, and they zoom the text with no
problems. On windows Ive tested the same stuff using IE and Netscape, using
defaul
Hi,
* [EMAIL PROTECTED] wrote:
> Warning: Cannot add header information - headers already sent by (output
> started at /var/www/html/test.php:5) in /var/www/html/test.php on line 15
You see that the output began on /var/www/html/test.php on
line 5. It may be a char or even a whitespace.
Normally
Hi,
* David H wrote:
> After I submited a query, if I use back then forward
> again the form will resubmit itself. Which I do not
> want. Does anyone have a solution for this problem?
Register a token in a session var after submitting the
form. When the user get's again on the resubmitted page
yo
Jonathan Rosenberg wrote:
I have a page with thumbnail pictures that can be clicked on to see a larger
picture. Each picture is hyperlinked as follows
I access the 'pic' & 'caption' attributes with $_GET['pic'], etc. Pretty
standard stuff.
I have PHP set up so that error messages get mailed
Leif K-Brooks wrote:
I'm using a verification code image to stop automated sign ups, but two
hackers seem to be OCRing it. I've looked through the registration
script, and there's definitley no security holes. Does anyone have any
ideas as to making the image harder to OCR?
Use two different
Nick Eby wrote:
true or false:
when declaring a function, a given argument can be declared to pass by
reference, or can be declared to have a default value, but never both.
i.e., you can only write one of:
function foo(&$param)
function foo($param = "bar")
but never the equivalent of:
function
On Tuesday 26 November 2002 14:51, Jef wrote:
> I am having difficulty with the implode function. What I am doing is
> building a string for an UPDATE SQL command. At the end of the building
> portion of the code, I want to insert a comma between the various fields
> that will be updated. However,
--- Paul Marinas <[EMAIL PROTECTED]> wrote:
> is down?
> or my computer .
It works fine for me. Perhaps you should try a mirror:
Australia:
http://au.php.net/ English
http://au2.php.net/ English
Austria:
http://at.php.net/ German
http://at2.php.net/ German
Belgium:
http://be.php.net/ Engli
I am having difficulty with the implode function. What I am doing is
building a string for an UPDATE SQL command. At the end of the building
portion of the code, I want to insert a comma between the various fields
that will be updated. However, it is not working. Here is a portion of my
code...than
implode accepts an *array* as input, not a string.
you would need to change your $sqlUpdate to be an array, and each statement
look something like;
if($textfield12 != '') { $sqlUpdate[] = "textfield12='$textfield12'"; }
of course it would probably be easier to just do something like this;
if($ima
101 - 163 of 163 matches
Mail list logo