Ciao Tomas,
I'm not sure if I followed your question completely but do you mean to
test a variable or an array element and unset it if it matches a certain
type?
If so, then maybe:
http://it.php.net/is_int
is_bool(), is_float(), is_numeric(), is_string(), is_array(), and
is_object()
will be
Hello.
I'm having a problem with fsockopen and was wondering has anyone ever
noticed a case where it will work from machine1 (dev machine) to machine2.
But when the was placed onto machine2 it wouldn't work connecting to it's
own ip address;
when connecting via telnet it returns:
Escape
Yao, Minghua wrote:
Hi, all,
I am testing how to post form-data to a host using the following code
(test.php):
?php
function PostToHost($host, $path, $name, $value) { // Test of posting
form-data
$fp = fsockopen($host,80);
fputs($fp, POST
On Thu, 16 Dec 2004 01:57:42 -0200, Manuel Lemos [EMAIL PROTECTED] wrote:
The point is that old software versions that work on old environment
versions do not need you to upgrade the environment version even the
vendor deprecates the old version.
Wrong. Security issues force upgrades.
strlen is not accurate unless its a raw string, meaning just alpha chars, or
numbers..
otherwise you should run trim, strip_tags and the likes first.
- Original Message -
From: M. Sokolewicz [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, December 16, 2004 6:09 AM
Subject: [PHP]
I would say it depends on how much money your are looking to make.
You're not going to get rich selling it as shareware, but you may
build a user base. You could then try switching it to a commercial
product. Just remember, if it's a commercial product, people will
expect a certain level of
Hi there..
I´m trying to use the mail function but I have a problem. I´m
working in a LAN with more or less 30 pcs, that places inside
a huge network, and I just can´t use the enterprise smtp server.
How can i set a valid smtp server?
I thought about installing some good-free smtp server
Hi,
Is there a replace to Zend encoder that I can use for free? Zend encoder is
too expensive for a small fry developer like me.
Thanks for your help.
Jonathan Tang
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[snip]
Is there an on-going initiative as far as creating a PHP framework
somewhat the same as .Net's framework implementation? Like for
instance, the System.Data namespace where PHP developer can just create
something like a DataAdapter which can connect to a datastore and fill
a DataSet
On Thursday 16 December 2004 23:00, Mike wrote:
If you're on any of the *nix'es, it's hard to go wrong with sendmail.
I think you mean it's hard not to go wrong with sendmail ;-)
--
Jason Wong - Gremlins Associates - www.gremlins.biz
Open Source Software Systems Integrators
* Web Design
hi,
I am trying to write an image upload facility, which resizes the images,
which I am obviously using the GD library for. Does anyone know if there
are any functions I can use to read in images encoded in tiff image format?
Cheers,
Tom
--
Working on webhosting Tel:01388 11
MTA
that had been my intensions, just wanna make sure i'm not reinventing
the wheel :)
regards,
http://jonel.road14.com
--
I not know English well, but I know 7 computer languages.
anonymous
On Dec 16, 2004, at 7:29 AM, Jay
Hello people.
I am working on a file upload script, which has an upload limit of
2MB (set by directive in php.ini). when I try to upload a file that is
larger than that it loads the page it is meant to but something strange
happens to the $_POST data, it all seems to dissappear. can someone
Jason Wong wrote:
On Thursday 16 December 2004 23:00, Mike wrote:
If you're on any of the *nix'es, it's hard to go wrong with sendmail.
I think you mean it's hard not to go wrong with sendmail ;-)
no, that means it's easy to go wrong with sendmail... I think Mike did
mean that it's hard to go
[EMAIL PROTECTED] wrote:
Hello people.
I am working on a file upload script, which has an upload limit of
2MB (set by directive in php.ini). when I try to upload a file that is
larger than that it loads the page it is meant to but something strange
happens to the $_POST data, it all seems
Michael Leung wrote:
Hi All,
My problem is finally solved by totally off SELinux Security
Policies.
I told you so :-))
Thank you very verry much the helps from yours! I know this
is not very safe solution, but at the leasy my script can work
yours,
Michael
--
Raditha Dissanayake.
Doc wrote:
Hello.
I'm having a problem with fsockopen and was wondering has anyone ever
noticed a case where it will work from machine1 (dev machine) to machine2.
happens all the time :-)
But when the was placed onto machine2 it wouldn't work connecting to it's
own ip address;
when connecting
[EMAIL PROTECTED] wrote:
I am trying to write an image upload facility, which resizes the images,
which I am obviously using the GD library for. Does anyone know if there
are any functions I can use to read in images encoded in tiff image
format?
As far as I know, the GD image functions of
[EMAIL PROTECTED] wrote:
Hello people.
I am working on a file upload script, which has an upload limit of
2MB (set by directive in php.ini). when I try to upload a file that is
larger than that it loads the page it is meant to but something
strange happens to the $_POST data, it all seems to
You also need to URLEncode the $value, either before you pass it in, or
inside the function itself.
Where did you get this PostToHost function?...
Did you modify it?
Cuz, like, I don't think this one is very good...
Where did that content-disposition: come from?
And virtually every FORM on
Hi,
I'm using PHP 4.3.2 and using ODBC to connect to my Access database. I want to
get the value from this query statement:
select count(id) as quantity from danhmucdia. How can I get this value? How
can I equalize this value into variable ?
Thank you for reading my email.
Dennis
Jonel Rienton wrote:
Is there an on-going initiative as far as creating a PHP framework
somewhat the same as .Net's framework implementation? Like for
instance, the System.Data namespace where PHP developer can just create
something like a DataAdapter which can connect to a datastore and fill
Hi,
I'm adding text to images using the native gd in PHP 4.3.9
I have no problems with jpg images, but with gif ones, the colour of
the text added to the image always results a dark grey
The image itself and text are fine, but not the colour, which should be white..
Has anyone experienced this
To view the terms under which this email is distributed, please go to
http://disclaimer.leedsmet.ac.uk/email.htm
On 16 December 2004 17:39, GH wrote:
Hi All...
Got a problem... here is the error: Parse error: parse error,
expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' in
Tomas Tintera wrote:
Is there some construct, which evaluates any type of its parameter (like
t_echo, t_unset) and returns some value with normal type (like 0)? What?
I would like to unset a variable in an operation like ()?unset():() and
I can not use if because if does not return normal
Eric Lindsey wrote:
How do I configure my IIS server to parse a specific .html
file for php code? I know how to do this on apache, but windows scares
me :-)
So far, all the answers assume he wants to have *ALL* .html files parsed
as PHP.
He only wants *ONE* *SPECIFIC* .html file
I will try this when i get back to my other computer where development
takes place the script format was originally started by an IDE
that I am starting to add my code to ... so I will look at.
On Thu, 16 Dec 2004 18:19:43 -, Ford, Mike [EMAIL PROTECTED] wrote:
To view the terms under
line 42 is: TITLE $language['program_name'] /TITLE\n .
Try:
'TITLE'.$language['program_name'].'/TITLE'
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
GH wrote:
Got a problem... here is the error: Parse error: parse error,
expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' in
/var/www/html/ahrc_computerclub/ahrc_computerclub.php on line 42... I
am not sure on how to fix it...
line 42 is: TITLE $language['program_name'] /TITLE\n .
Dennis Yang wrote:
I'm using PHP 4.3.2 and using ODBC to connect to my Access database. I
want to get the value from this query statement:
select count(id) as quantity from danhmucdia. How can I get this value?
How can I equalize this value into variable ?
It's a query, just like any other
GH wrote:
Hi All...
Got a problem... here is the error: Parse error: parse error,
expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' in
/var/www/html/ahrc_computerclub/ahrc_computerclub.php on line 42... I
am not sure on how to fix it...
line 42 is: TITLE $language['program_name']
Hi All...
Got a problem... here is the error: Parse error: parse error,
expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' in
/var/www/html/ahrc_computerclub/ahrc_computerclub.php on line 42... I
am not sure on how to fix it...
line 42 is: TITLE $language['program_name'] /TITLE\n
You are inside a function and not either passing the variable to the function
or declaring it global within the function.
In other words, as far as your function is concerned, the
$language['program_name'] is empty.
From: GH [EMAIL PROTECTED]
Date: 2004/12/16 Thu PM 01:09:48 EST
To: Marek
GH wrote:
However, I can not get any results into the title tags all three
options are not displaying
$language is in global scope, you need:
function printHeader(){
global $language;
More:
http://sk2.php.net/manual/en/language.variables.scope.php
On Thu, 16 Dec 2004 13:03:57 -0500, GH
GH mailto:[EMAIL PROTECTED]
on Thursday, December 16, 2004 10:10 AM said:
However, I can not get any results into the title tags all three
options are not displaying
try:
?php
echo pre;
print_r($language['program_name']);
echo /pre;
?
If you don't see anything then
I believe that is the nature of GIF images, I seem to recall they were very
compact but limited to a maximum of 16 colors (or 32 or some number like
that[maybe 64]), fewer colors that JPEG. Anyone know exactly?
Warren Vail
-Original Message-
From: Juan Nin [mailto:[EMAIL PROTECTED]
Richard Lynch mailto:[EMAIL PROTECTED]
on Thursday, December 16, 2004 10:46 AM said:
TITLE $language['program_name'] /TITLE\n .
#1. Get rid of the ''s around program_name. Those won't work inside
of s.
echo title{$language['program_name']}/title\n;
On Friday 17 December 2004 02:41, Richard Lynch wrote:
There are better, easier to use and more secure alternatives to sendmail.
True.
Many of which require that you understand the basics of sendmail before
you use them.
Basics such as? You definitely need to know the basics of email (the
On Thu, 16 Dec 2004 12:27:27 -0700, Vail, Warren [EMAIL PROTECTED] wrote:
I believe that is the nature of GIF images, I seem to recall they were very
compact but limited to a maximum of 16 colors (or 32 or some number like
that[maybe 64]), fewer colors that JPEG. Anyone know exactly?
gifs are
Doc wrote:
I'm having a problem with fsockopen and was wondering has anyone ever
noticed a case where it will work from machine1 (dev machine) to machine2.
But when the was placed onto machine2 it wouldn't work connecting to it's
own ip address;
when connecting via telnet it returns:
reason it seems to always be true, ... something i'm doing wrong? btw, i
cannot add the in_array to the statement because if the $buddylist is empty
it will generate errors because of the empty implode.
you could add the is_array() check.
$buddylist = preg_split('/( )+/',
Le jeu 16/12/2004 à 14:43, Pablo D Marotta a écrit :
Hi there..
I´m trying to use the mail function but I have a problem. I´m working in a LAN
with more or less 30 pcs, that places inside a huge network, and I just can´t
use the enterprise smtp server.
How can i set a valid smtp server?
You
yeah, you're right though.. i had to use explode not implode
eg, if(in_array($uname['uid'], explode(' ', trim($userinfo['buddylist']
so i ditched the preg_split()
cheers.
- Original Message -
From: Jason Wong [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, December 16, 2004
Thanks for your answers (you probably don't understand me).
I am looking for some construct (or statement or function) which allows
to do this:
?php (True==False) or (construct_i_am_looking_for(unset($a))); ?
Note that the unset() has no return value (and so it can't be used as a
part of other
Yes. I did modify the original since I need to send data to a program which
takes only form-data.
content-disposition: came from RFC 2388. I don't think the program can take
application/x-www-form-urlencoded content. Further help needed. Thanks.
-Minghua
-Original Message-
From:
Hi all,
I am going to migrate my application to php 5. My application didnt use
object so much. so, which area I need to be carefull about when I
migrate to php 5. (if possible, could you give me the url that will
explain about that)
thx
--
===
Best Regards
Adwin Wijaya
Adwin Wijaya wrote:
Hi all,
I am going to migrate my application to php 5. My application didnt use
object so much. so, which area I need to be carefull about when I
migrate to php 5. (if possible, could you give me the url that will
explain about that)
thx
Search the PHP.net or zend.com
If you're looking for an easy-to-use IDE then Dreamweaver is a good
choice even though it's not web-based. Given what you've said about how
new you are to all of this it would probably be worth your money to
purchase it.
For something that is PHP-based there are PEAR packages you might use,
Please do not post the same question twice within a few minutes! This
is an active list; just wait for a day or two.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[snip]
I have uploaded some pictures and thumbnails using a PHP form into a
particular directory. I would like to be able to select the name of the
picture and then chose to delete that picture and its thumbnail from the
server using another form.
The name of the picture is in the MySQL database.
Hello,
on 12/16/2004 02:10 AM Matthew Weier O'Phinney said the following:
You *do* make valid points about making needless upgrade -- if no
security vulnerabilities exist, the application works fine, and you
don't need features from the new version, there really is no reason to
upgrade. But when a
I can't instantiate new instances of the pspell library.
I've got the latest w32 binaries installed and the latest english dictionary
installed to c:\aspell. I've got aspell and aspell\bin added to the system
environment path. I've got the aspell.dll in the system32 folder.
Permissions look
Thanks for your answers (you probably don't understand me).
I am looking for some construct (or statement or function) which allows
to do this:
?php (True==False) or (construct_i_am_looking_for(unset($a))); ?
Note that the unset() has no return value (and so it can't be used as a
part of other
Thanks Travis,
Actually, I did search thru google but only found free trial encoder that
will termiate say 30 days for Zend Encoder, 3 days for phppro, etc.
Will check out the rssoftlab enconder and feedback here.
Thanks for your help.
Cheers,
Jonathan
Travis Conway [EMAIL PROTECTED] wrote
Hi!
I have an html string stored in $message. I submit the form to a
subroutine and the value in $message is lost. All the other variables come
into feedback.php just fine. I would love any help. This is a new language
for me so any suggestions for streamlining my code would also be much
Im talking about file locking during deleting, and moving
files.
Is it possible to perform file locking for these file operations?
If so, can you provide psuedo code.
Thanks
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Fri, 17 Dec 2004 14:32, Monique Verrier wrote:
Hi!
I have an html string stored in $message. I submit the form to a
subroutine and the value in $message is lost. All the other variables
come
into feedback.php just fine. I would love any help. This is a new
language for me so any
Any computer groups or resources for learning PHP in the Miami area? I am
new here ... trying to learn PHP... would like to meet other people doing
the same.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Richard Lynch [EMAIL PROTECTED] wrote in message:
I need to store chunks of output into files.
Which output and why?
any output of the program that goes to php://stdout.. if from echo, print,
var_dump, code breaking, etc... why? cuz I want to get chunks of output into
variables to make a cache
I got a php waring when I upload my file:
Warning: MAX_FILE_SIZE of 20 bytes exceeded - file [imgpath=mz-n10.pdf]
not saved in Unknown on line 0
In the form I write like these:
input type='hidden' name='MAX_FILE_SIZE' value=20
input type='file' name='imgpath'
And my
Yangshiqi wrote:
I got a php waring when I upload my file:
Warning: MAX_FILE_SIZE of 20 bytes exceeded - file [imgpath=mz-n10.pdf]
not saved in Unknown on line 0
that seems like a very descriptive warning to me...
In the form I write like these:
input type='hidden'
On Dec 16, 2004, at 10:02 PM, Monique Verrier wrote:
Hi!
I have an html string stored in $message. I submit the form to a
subroutine and the value in $message is lost. All the other variables
come
into feedback.php just fine. I would love any help. This is a new
language
for me so any
Louie Miranda wrote:
?php
$string = function yes good;
$display = count_chars($string);
echo $display;
?
i know this is wrong, but how can i count chars used here?
strlen()
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi,
Richard Lynch [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Lorderon wrote:
What I want to do is catch the output buffer, but do not delay the
buffer
It occurs to me that maybe you should tell us WHY you want this, because
there could be existing alternatives outside the
On Thursday 16 December 2004 19:25, Lorderon wrote:
I need to store chunks of output into files. I can get the chunk output by
using ob_get_contents(), but after calling ob_start() the output is only
buffered and not sent till flushing. The delay from echoing to flushing is
exactly what I
Hi there..
I´m trying to use the mail function but I have a problem. I´m working in a LAN
with more or less 30 pcs, that places inside a huge network, and I just can´t
use the enterprise smtp server.
How can i set a valid smtp server?
I thought about installing some good-free smtp server on my own
Well a simple search on Google for PHP Encoder brougt back these:
http://www.ioncube.com/ $199
http://www.rssoftlab.com/downloads.php - Appears to be Free
I am sure there are more. Check http://freshmeat.net for a good Open Source
product. Also try http://www.sourceforge.net.
As always check
Thanks. I changed
fputs($fp, $value\n);
to
fputs($fp, $name=$value\n);
But I still got the same message.
-Minghua
-Original Message-
From: Erwin Kerk [mailto:[EMAIL PROTECTED]
Sent: Thu 12/16/2004 6:30 AM
To: Yao, Minghua
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] Question in posting
On Thursday 16 December 2004 22:43, Pablo D Marotta wrote:
Please note that this has nothing to do with PHP.
I´m trying to use the mail function but I have a problem. I´m working in a
LAN with more or less 30 pcs, that places inside a huge network, and I just
can´t use the enterprise smtp
Pablo D Marotta wrote:
Hi there..
I´m trying to use the mail function but I have a problem. I´m working in a
LAN
with more or less 30 pcs, that places inside a huge network, and I just
can´t
use the enterprise smtp server.
How can i set a valid smtp server?
If you have Microsoft licensing
Ok... thank you.
On Thu, 16 Dec 2004 19:02:37 +0100, Marek Kilimajer [EMAIL PROTECTED] wrote:
GH wrote:
Hi All...
Got a problem... here is the error: Parse error: parse error,
expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' in
However, I can not get any results into the title tags all three
options are not displaying
On Thu, 16 Dec 2004 13:03:57 -0500, GH [EMAIL PROTECTED] wrote:
Ok... thank you.
On Thu, 16 Dec 2004 19:02:37 +0100, Marek Kilimajer [EMAIL PROTECTED] wrote:
GH wrote:
Hi All...
Got
Hi All...
Got a problem... here is the error: Parse error: parse error,
expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' in
/var/www/html/ahrc_computerclub/ahrc_computerclub.php on line 42... I
am not sure on how to fix it...
line 42 is: TITLE $language['program_name'] /TITLE\n .
Jason Wong wrote:
On Thursday 16 December 2004 01:49, Richard Lynch wrote:
You now have the joy of diving into sendmail documentation. Have fun.
:-^
There are better, easier to use and more secure alternatives to sendmail.
True.
Many of which require that you understand the basics of
Hi,
I cannot solve this problem,. sorry if this looks confusing,.
i have a form and don't want to set the variable if the in_array is true..
the code works, up until i add the last !$buddy in the statement, for some
reason it seems to always be true, ... something i'm doing wrong? btw, i
cannot
On Friday 17 December 2004 02:33, Sebastian wrote:
I cannot solve this problem,. sorry if this looks confusing,.
It is ...
i have a form and don't want to set the variable if the in_array is true..
the code works, up until i add the last !$buddy in the statement, for some
reason it seems to
Greetings everyone,
I have uploaded some pictures and thumbnails using a PHP form into a
particular directory. I would like to be able to select the name of the
picture and then chose to delete that picture and its thumbnail from the
server using another form.
The name of the picture is in the
Hi list,
Sorry to repeat, but I thought I'd try give a clear idea of what I
wanted to do with my last question entitled 'php ide scripts' to see
if anyone else has done this and can direct me to or send me some
'beginners' files I can use.
What I want to do is create a program I can run on my
I can't instantiate new instances of the pspell library.
I've got the latest w32 binaries installed and the latest english
dictionary installed to c:\aspell. I've got aspell and aspell\bin added
to the system environment path. I've got the aspell.dll in the system32
folder. Permissions look
I have uploaded some pictures and thumbnails using a PHP form into a
particular directory. I would like to be able to select the name of the
picture and then chose to delete that picture and its thumbnail from the
server using another form.
try the manual my man
http://us2.php.net/unlink
--
80 matches
Mail list logo