Hello,
A friend would like to know how to check on the server (dedicated) if the
function sendmail is enable or not, how ? if not activated how activate ?
Thanks,
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
php-general Digest 25 Jan 2003 08:31:12 - Issue 1843
Topics (messages 133033 through 133088):
Re: checkboxes php
133033 by: Edward Peloke
133034 by: Richard Whitney
133036 by: Richard Whitney
133038 by: 1LT John W. Holmes
133039 by: Greg
Hi all,
Please can you help me with the following:
If got a little sample code:
This one is working (!):
?php
$vname=$_POST['vname'];
echo hello $vname;
?
form action=? echo ($_SERVER['PHP_SELF']); ? method=post
table
trtdInput yourname/tdtdinput type=text name=vname/td/tr
trtd colspan=2input
It worked fine till I changed database (just the database-name). Here is
the script that is executed untill the line 61:
- - - GLOBAL.PHP- - -
?php
// Pre-load vars
$settings= array();
$database= array();
define('XE_VERSION', '0.03a');
define('XE_BUILD',
On Saturday 25 January 2003 18:27, Frank Keessen wrote:
But when i'm using IF Else.. Nothing is happening. I'm only seeing the form
but when i submit that form: The $vname doen't display..
Here is the code that doesn't work:
?php
$vname=$_POST['vname'];
if($submit) {
Try some basic
Hi,
The register_globals = Off. Dit the basic echo ($submit) but it displays
nothing..
Any thoughts somebody??
Thanks for helping me out on this cloudy saturday (in Amsterdam!)
Regards,
Frank
- Original Message -
From: Jason Wong [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent:
Hi,
On Saturday 25 January 2003 12:18, Frank Keessen wrote:
The register_globals = Off. Dit the basic echo ($submit) but it displays
nothing..
Any thoughts somebody??
Switch on register_globals or (better!) use $_GET['submit'], $_POST['submit']
or $_REQUEST['submit'].
Thanks for helping
Hi,
Thanks, but i'm a kind of a newbie in PHP and what i've read it's better to
have the register_globals = Off!!! If you look at my code you see that i'm
using the $_GET variable.. This works fine!! It's the IF.. ELSE what gives
me a lot of trouble!
Frank
- Original Message -
From:
You are using the post method not get so $_GET[] should be empty.
Does this version of your code work?
?php
if(isset($_POST['submit'])) {
$vname=$_POST['vname'];
echo hello $vname;
} else {
?
form action=? echo ($_SERVER['PHP_SELF']); ? method=post
table
trtdInput
Hi,
I have the following code :
$_fp = fopen(/home/dh2240/mgt/index.php, a+) or die();
$_contents = fread($_fp,filesize(/home/dh2240/mgt/index.php));
fclose ($_fp);
//Menu elements
$_sme = strpos($_contents,sub_menu_elements);
echo sme = $_smep;
...
It should display somthing like sme = 850,
Wow!! It worked... Sorry for the confusion about the get!!
Thanks guys, i can go further!!! Have a nice weekend!
Regards,
Frank
- Original Message -
From: Rich Gray [EMAIL PROTECTED]
To: Frank Keessen [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Saturday, January 25, 2003 12:42 PM
I my self is in the same situation I've started of with a great book
http://www.essential-series.com/essential_php.htm which should give you some
idea how to begin and the other one i bought which i am still waiting is
Building a Database-Driven Web Site Using PHP and MySql by Kevin Yank.
with
It could be somthing to do with my hoster running Linux in Safe Mode... I am
not sure what this could entail, so I'll keep looking. Again, if anyone has
any info, it would be appreciated!!!
Cheers,
Daniel
Daniel Page [EMAIL PROTECTED] a écrit dans le message news:
[EMAIL PROTECTED]
Hi,
I have
When will this show up at the news server?
Sterling Hughes [EMAIL PROTECTED] wrote in message
1043463814.795.97.camel@hasele">news:1043463814.795.97.camel@hasele...
A mailing list for discussing the future of PHP and XML development has
been created. You can subscribe by sending a message to
Christian Ista wrote:
Hello,
A friend would like to know how to check on the server (dedicated) if the
function sendmail is enable or not, how ? if not activated how activate ?
Thanks,
If I understand your question correctly (and I may not):
Assuming RedHat linux, then as root which
Thanks for your help Maxim.
I've got quite a bit to learn. PHP is far more challenging than Cold
Fusion.
--Noah
- Original Message -
From: Maxim Maletsky [EMAIL PROTECTED]
To: Noah [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Friday, January 24, 2003 11:02 AM
Subject: Re:
phpinfo() on PHP Version 4.2.2 with Apache/1.3.24 has a block which called
Apache Environment which does not appear in PHP 4.3.0/Apache2.
This block of info has (in part):
DOCUMENT_ROOT /usr/local/apache/htdocs_best-emts
HTTP_ACCEPT image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
Quick question for the skilled among you,
Why I ask this:
I am currently developing a object to relational mapping layer for PHP. It's
NOT a simple treat all databases like one kind of layer (although it does
involve it to preserve extensibility) but an XML based intermediate layer
that creates
If I can't use any of those, it's not possible? correct?
thank you for your help.
tommy
Jason Wong [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
On Saturday 25 January 2003 06:15, Tommy Jensehaugen wrote:
I have a page where I log in as an Apache user. How
- Original Message -
From: Dominik Wittenbeck [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, January 25, 2003 3:28 PM
Subject: [SOAP] Re: soap post and http 1.1 100 continue
Yep, know that one,
Why it does happen:
although the HTTP 1.1 spec states that a HTTP 100 SHOULD NOT
Hey all.
Don't know if this is possible, but here goes:
I've got a simple switch statement that carries out one of several
operations based on the switch statement variable value.
Each operation has @ 50 lines of html -- do I have to echo or print all this
html!?
I'm new to PHP so pardon my
I've got a simple switch statement that carries out one of several
operations based on the switch statement variable value.
Each operation has @ 50 lines of html -- do I have to echo or print
all
this
html!?
You could put your HTML into a separate file and just include() it
wherever you
On Saturday 25 January 2003 20:38, CF High wrote:
Each operation has @ 50 lines of html -- do I have to echo or print all
this html!?
Try something like
?php
switch ($foo) {
case 1:
?
h1Hello/h1
?php
break;
}
?
johannes
--
PHP General Mailing List (http://www.php.net/)
To
hi
question about interaction between own state information...
my problem is very simple:
i have an object with a class-member-function which writes a file of about
2MB. the duration of this function is quite long. thats why i'd like to have
display informations in a pop-up. for that reason i
On Saturday 25 January 2003 23:41, Tommy Jensehaugen wrote:
Jason Wong [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
On Saturday 25 January 2003 06:15, Tommy Jensehaugen wrote:
I have a page where I log in as an Apache user. How do I get the apache
No. You can either echo/print with a heredoc (which is still
echoing/printing, but is a lot easier) or you can exit PHP. For example:
?php
switch($somevar){
case 'case1':
print END
some html
some html
some html
END;
break;
case 'case2':
print END
some html
some html
some html
END;
break;
}
?
On Saturday 25 January 2003 19:18, Frank Keessen wrote:
Hi,
The register_globals = Off. Dit the basic echo ($submit) but it displays
nothing..
Any thoughts somebody??
If register_globals is not enabled then you need to use $_POST['submit']
(just
as you had to use $_POST['vname']).
That does the trick, although I'm not exactly sure why.
Shouldn't the html between the ?php case 1: ? and ?php break; }: ?
statements be executed regardless of whether or not case 1 matches the
switch variable?
In Cold Fusion anything outside of cfoutputcf code here/cfoutput is
ignored by the CF
Hey John.
While your suggestion certainly will work, I'd prefer not to have an
excessive number of include files to keep track of.
Johannes' suggestion does the trick:
Try something like
?php
switch ($foo) {
case 1:
?
h1Hello/h1
?php
break;
}
?
- Original Message -
From:
Thanks for the informative response, Leif.
Looks like you and Johannes are on the same page -- these solutions save a
great deal of time.
Thanks,
--Noah
Leif K-Brooks [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
No. You can either echo/print with a heredoc
no, much less instead
---
Maxim Maletsky
[EMAIL PROTECTED]
On Sat, 25 Jan 2003 09:18:47 -0800 Noah [EMAIL PROTECTED] wrote:
Thanks for your help Maxim.
I've got quite a bit to learn. PHP is far more challenging than Cold
Fusion.
--Noah
- Original Message -
From:
Hm..
Guess I'll find out as I go deeper into PHP
--Noah
- Original Message -
From: Maxim Maletsky [EMAIL PROTECTED]
To: Noah [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Saturday, January 25, 2003 9:47 AM
Subject: Re: [PHP] Evaluate PHP var in stored
I have a script that takes uploaded images (jpeg only) and makes
proportionate thumbnails etc, and saves them in jpeg (.jpg) format again
(default compression of %75 I think) anyway, the thumbnails are UGLY.
Beauty of content aside, they are discolored, and usually one
predominant color takes over
Use ImageMagick found @ http://www.imagemagick.org .
It is all you need to handle images.
Aside the binary external program take a look at this too :
http://magick.communityconnect.com/
best of luck,
--georgep
- Original Message -
From: Victor [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
That is not an option since I do not have control over the hosting
company.
-Original Message-
From: George E. Papadakis [mailto:[EMAIL PROTECTED]]
Sent: Saturday, January 25, 2003 3:20 PM
To: Victor; [EMAIL PROTECTED]
Subject: Re: [PHP] GD jpg thumbnail - ugly discollored
Use
php-general Digest 25 Jan 2003 20:33:38 - Issue 1844
Topics (messages 133089 through 133122):
If... Else.. I'm not getting it!
133089 by: Frank Keessen
133091 by: Jason Wong
133092 by: Frank Keessen
133093 by: Johannes Schlueter
133094 by: Frank
Take a look at the standard php mail function .
You can set most of the available mail headers inluding from/to ones.
That would do it.
--georgep
- Original Message -
From: Denis L. Menezes [EMAIL PROTECTED]
To: PHP general list [EMAIL PROTECTED]
Sent: Friday, January 24, 2003 1:48 AM
$wordsCount = str_word_count($string);
-- georgep
- Original Message -
From: Maxim Maletsky [EMAIL PROTECTED]
To: Craig [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Thursday, January 23, 2003 11:26 PM
Subject: Re: [PHP] Word Count
words, for a programming language, are nothing more
If I am not mistaken, this feature is coming in php5, but is not yet in php4
Chris McCluskey [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]..
.
Hi there, I've been using PHP for about 2 years now and absolutely love
it! Our company uses it as our main development
If I got this right :
preg_match_all (#\!.*?(.*?)#si,$string,$match);
You will have an array ($match[1]) with all your subs in there.
-- georgep
- Original Message -
From: Juan Pablo Aqueveque [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, January 20, 2003 9:11 PM
Subject: [PHP]
Why are you opening the file in append mode?
As the manual says: a+' - Open for reading and writing; place the file
pointer at the end of the file.
Try using 'r+' instead or rewind the file pointer before reading.
Danny.
- Original Message -
From: Daniel Page [EMAIL PROTECTED]
To:
make sure you use:
ImageCreateTrueColor()
to create the thumbnail image and
ImageCopyResampled()
when you copy the image.
Mark C.
-Original Message-
From: Victor [mailto:[EMAIL PROTECTED]]
I have a script that takes uploaded images (jpeg only) and makes
proportionate thumbnails
After reinstalling w2k on my laptop and installing Apache 2.0, php 4.3.0 I
cannot get cgi-scripts running.
In httpd.conf I have the following line:
ScriptAlias /cgi-bin/ C:/Apache/cgi-bin/ since I have my scripts there.
When calling a script I get
Internal Server Error
The server encountered an
I have a file upload field, and some filename checking code, but it
breaks the code whenever a + is inside the filename it verifies space
and other tags but breaks on + in the name. Anyone know a fix for this
please?
- Vic
__
Does anyone have a PHP script to enter cron jobs? I have a limited control
panel (ensim) that doesn't have anyway to do cron, and I don't know how to
do it at the command line yet. Anyone have a good tutorial or a PHP script
to do this?
Thanks!
--
PHP General Mailing List
The problem is, PHP would have to be running as root. This creates a
huge security risk... if I was you, I'd just learn to edit cron jobs at
the command line.
Nicole wrote:
Does anyone have a PHP script to enter cron jobs? I have a limited control
panel (ensim) that doesn't have anyway to do
Some sample code would help, but maybe try urldecode('$filename');
RW
Quoting Victor [EMAIL PROTECTED]:
### I have a file upload field, and some filename checking code, but it
### breaks the code whenever a + is inside the filename it verifies space
### and other tags but breaks on + in the
Well, if you really wanted to, you could create a php script, and then have
a meta refresh tag set to refresh the page whenever you want, and then just
leave the page open in your browser :p
Nicole [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Does anyone have a
Thanks it worked.
- Vic
-Original Message-
From: Mark Charette [mailto:[EMAIL PROTECTED]]
Sent: Saturday, January 25, 2003 4:42 PM
To: Victor; [EMAIL PROTECTED]
Subject: RE: [PHP] GD jpg thumbnail - ugly discollored
make sure you use:
ImageCreateTrueColor()
to create the thumbnail
Here is some sample code:
$file_name = explode(., $_FILES['picture']['name']);
$name = str_replace('', '_', $file_name[0]);
# check if file uploaded is good
if
(
Hello everybody, I make a function that lets you convert a recordset
obtained via mysql_query() into an XML string:
maybe could be helpfull to yours
this is the function
it have 3 parameters: $rs is the recordset you want to convert
$padre is the name for
Victor!
What are you trying to accomplish?
Do you want to preserve the original filename?
Why not give uploaded files uniformly unique names?
In other words, where are the +'s coming from?
So, a little more detail, please!
RW
Quoting Victor [EMAIL PROTECTED]:
### Here is some sample code:
I DO want preserve the filenames, and the pluses come from the user
(beta testers that deliberately try to hack the script) . all I want to
do is make sure the the script doeasnt breack when a user uploads a file
that has the + character in it's name.
- Vic
-Original Message-
From:
Thanks. But I would think if you can run cron jobs as certain users, you
could create cron jobs for those users only. I mean, if you can do it with
CPanel or these other Control Panels, then why not? It wouldn't have to run
as root? I have a good bit to learn about linux. I am new to getting
LOL. Thanks; that's ok. ;) That wouldn't cut it, I'm afraid. ;)
Alex [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Well, if you really wanted to, you could create a php script, and then
have
a meta refresh tag set to refresh the page whenever you want, and
Personally, I would do it differently, but thats just me... However one
modification I would suggest you make:
The Line:
$xml.=.$nombre_campo..$valor_campo./.$nombre_campo.\n;
would probably be better as this:
$xml.=.$nombre_campo..htmlspecialchars($valor_campo)./.$nombre_camp
o.\n;
just
I tried to use the below but it does not work. Please help!
-Original Message-
From: Michael Sweeney [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 22, 2003 10:29 AM
To: Ben C.
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] Select value for driopdown box
Assuming that you know which
Hi,
Using PostgreSql 7.2 + PHP I am trying to do a SELECT that will
choose all records except ones that have a certain id number. I can't seem to
get the syntax to work.
Here's the code:
SELECT * FROM rap WHERE NOT rsponsor = '{$_SESSION['sid']}' ORDER by
rsname,rfname,rcountry,rcity DESC
Hello,
On 01/25/2003 01:40 PM, Dominik Wittenbeck wrote:
I am currently developing a object to relational mapping layer for PHP. It's
NOT a simple treat all databases like one kind of layer (although it does
involve it to preserve extensibility) but an XML based intermediate layer
that creates
SELECT * FROM rap WHERE rsponsor != '{$_SESSION['sid']}' ORDER by
rsname,rfname,rcountry,rcity DESC LIMIT 20
SELECT * FROM rap WHERE rsponsor NOT IN ('{$_SESSION['sid']}') ORDER by
rsname,rfname,rcountry,rcity DESC LIMIT 20
-Original Message-
From: Andre Dubuc [mailto:[EMAIL
Hi Sean,
Before sending to the list, I had already tried your first suggestion and
ended up with only the records that I wanted excluded.
Your second suggestion with NOT IN works like a charm. (There wasn't much
about 'NOT' in the docs, and I must have missed the 'IN' part.)
Thanks for your
Hello everybody,
I was wondering if someone can tell me how do I XOR a given string with
some hash .. like MD5 hash or something. I know how to do this in C - it's
more than easy but with PHP I can't find a way at all.
Thank you all in advance.
Regards,
Peter
--
PHP General Mailing
This line:
$selected = $state == $sel_state ? selected=\selected\ : ;
should probably be:
$selected = (($state == $sel_state) ? selected=\selected\ : );
I haven't tested this correction, but have had to use the parentheses in my
code many times to fix problems with using ? :
Greg
--
I would like to write a function to check if the contents of a directory, its files,
have been changed.
The idea is to check the directory every 2 minutes and take some actions if some files
were updated
or new files added.
Does anyone has any ideas?
I was considering listing the files (name,
Hi Carlos,
Directories are just normal files thus they have Last Modified and Last
Changed time stamps. So the quickest and easiest way is to check these
times periodically and if any of them has changed then there was some
activity other than reading in the directory. You can get the
Hi,
Sunday, January 26, 2003, 7:58:18 AM, you wrote:
N Does anyone have a PHP script to enter cron jobs? I have a limited control
N panel (ensim) that doesn't have anyway to do cron, and I don't know how to
N do it at the command line yet. Anyone have a good tutorial or a PHP script
N to do this?
Hi,
Sunday, January 26, 2003, 10:02:40 AM, you wrote:
PL Hello everybody,
PL I was wondering if someone can tell me how do I XOR a given string with
PL some hash .. like MD5 hash or something. I know how to do this in C - it's
PL more than easy but with PHP I can't find a way at all.
PL
Hi there Guys!
I'll start to write an application which will be used to send large
amounts of mail to users in a DB. All these mails to be sent shoul be
personalized. Since i understand, and please correct me if im wrong, the
mail() function is not a good option for this purpose. (the amount of
Trying to get java working so I can make native calls.
I've got php.ini setup and it seems to work (i.e., I can use the online
(php.net) example and create a java.lang.System object, and access
properties from it).
However, created my own class in a directory I specified in my
java.class.path
Sounds most interesting (and far more ambicious, than what I had in mind).
I'll probably do you wrong by not grasping the full extend of the project,
but in short, did I get it right:
XML2UML2ProgrammingLanguage
I know this probably doesn't grasp the whole scope ;-) But it's a VERY
It is incredibly easy to write a short little php script that edits a
template and submits it directly to qmail-inject; if you're using qmail
already php mail()/sendmail is just a wrapper to qmail-inject. I use
qmail-inject directly because it allows me to write my own VERP and process
bounces
Hi Carlos,
I've written a similar script in the past, except mine was to backup
files and then automatically restore them if they were accidentally
deleted (I had 75 people that had to modify 1 excel document at least
once a day).
What I have done is write a script that gets a list of files
Download: http://php.weblogs.com/adodb_date_time_library
PHP native date functions use integer timestamps for computations.
Because of this, dates are restricted to the years 1901-2038 on Unix
and 1970-2038 on Windows due to integer overflow for dates
beyond those years.
This has been
On Sunday 26 January 2003 12:17, Maciek Ruckgaber Bielecki wrote:
Hi there Guys!
I'll start to write an application which will be used to send large
amounts of mail to users in a DB. All these mails to be sent shoul be
personalized. Since i understand, and please correct me if im wrong, the
74 matches
Mail list logo