Hi,
I need help with installing Imagemagick on Windows. I tried googling but
there is no solution provided. I discovered that a lot of people are
having the same problem as me. After placing the dll in the extension
folder and adding in extension=php_imagick.dll into php.ini, Apache will
hit
I am willing to do it.
what is your distribution?
troby
Da St 2. Jn 2004 06:08 Ryan Schefke napsal:
Is any Linux techie out there willing to accept a small payment to upgrade
my Linux dedicated root server from PHP 4.2.2 to PHP 4.3.3 (or 4.3.6,
whichever is recommended)? I need to leverage
I have 2 servers fail-over/load-balanced behind an F5
bigIP. I want session data to be maintained in the event one server takes
a dive. In this scenario, if a user is in the middle of doing
something while logged in, they will not have to lose all work and log
back into the server to continue
On Wednesday 02 June 2004 07:47, Ryan Schefke wrote:
I have root access to my server. It's a dedicated server with 1and1.com.
OK.
I have zero experience with shell commands and will be working off of any
directions I can find online.
There're plenty of those to be found. The list archives
Hi,
I need to do a text search on some fileds in a database. I would like the users to be
able to use some syntax like 'AND' 'OR' 'NOT' parentheses () and quotes to make their
search queries more powefull.
I face 2 problems :
1. parse the query
2. execute the search (create the appropriate
Is there any way to use a Paradox database with PHP?
I have an aplication made in Delphi using Paradox and I need to attack the Paradox
database using PHP. Do you know if there is anyway?
Thanks in advance!!
;)
Markus Post a écrit :
DocumentRoot /srv/www
RewriteRule ^/(.*)/(.*)$/$1/$2
This redirects the request http://domain.de/dir1/dir2 to the local files
/srv/www/dir1/dir2/ and works fine.
No RewriteRule necessary to do this: '/dir1/dir2' becomes '/dir1/dir2'
btw RewriteRule
===
Please feel free to add more points and send
to the list.
===
1. If you have any queries/problems about PHP
try http://www.php.net/manual/en first. You
can download a copy and use it offline also.
Please also try
Vincent DUPONT wrote:
Hi,
I need to do a text search on some fileds in a database. I would like the users to be able to use some syntax like 'AND' 'OR' 'NOT' parentheses () and quotes to make their search queries more powefull.
I face 2 problems :
1. parse the query
2. execute the search (create
Caleb Walker wrote:
I have 2 servers fail-over/load-balanced behind an F5
bigIP. I want session data to be maintained in the event one server takes
a dive. In this scenario, if a user is in the middle of doing
something while logged in, they will not have to lose all work and log
back into the
Hi,
Is there any way to select all entries in the database except one entry or tho
entries?
Thanks
SELECT * FROM foo_table WHERE field_foo some_value
The above will select all from foo_table except where field_foo is equal to
some value.
HTH
Craig
Phpu [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hi,
Is there any way to select all entries in the database except one entry or
Vincent DUPONT wrote:
I need to do a text search on some fileds in a database.
It'd help if you said what database you're using and posted this on
[EMAIL PROTECTED]
--
---John Holmes...
Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/
php|architect: The Magazine for PHP Professionals
Phpu wrote:
Is there any way to select all entries in the database except one entry or tho entries?
Yes.
http://www.bigredspark.com/answers.html
--
---John Holmes...
Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/
php|architect: The Magazine for PHP Professionals www.phparch.com
--
PHP
I am trying to learn how to take the value of $name and $quote from a form
and put it in the database -whosaid
but obviuosly i have it all wrong. Can anyone point out what im doing wrong.
thx in advance
?php
include(connect.php);
$name = $_POST['name'];
$quote = $_POST['quote'];
$sql = INSERT
INSERT into whosaid (name, quote) values ('$name', '$quote');
-Original Message-
From: BigMark [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 03, 2004 5:13 AM
To: [EMAIL PROTECTED]
Subject: [PHP] how to insert form data
I am trying to learn how to take the value of $name and $quote from
?php
include(connect.php);
$name = $_POST['name'];
$quote = $_POST['quote'];
$sql = mysql_query(INSERT INTO whosaid (name,quote) VALUES (' . $name
. ',' . $quote . '));
?
HTH
Craig
Bigmark [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
I am trying to learn how to
OK no errors now but no data inserted, my form must be wrong as well.
form method=post action=input.php
NAME
input name=textfield type=text id=name
QUOTE
input name=textarea type=text id=quote
input type=submit name=Submit value=Submit
/form
--
PHP General Mailing List
Should be:
form name=form meth0d=post action=input/php
NAME: input type=text name=name id=name /
QUOTE: textarea name=quote id=quote/textarea
input type=submit name=submit value=Submit /
/form
HTH
Matt
On 3 Jun 2004, at 04:33, BigMark wrote:
OK no errors now but no data inserted,
Well getting closer now, its inserting into the tables but they are blank
(no text)
Any ideas
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[snip]
Well getting closer now, its inserting into the tables but they are
blank
(no text)
[/snip]
Have you echo'd out the values to the screen?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[snip]
Well getting closer now, its inserting into the tables but they are
blank
(no text)
[/snip]
let's go short...(and watch for/avoid keywords like 'name')
form.php
form action=input.php method=POST
input type=text name=username
input type=submit name=submit value=Submit
/form
input.php
?php
[snip]
thanks works fine
[/snip]
No problem...a couple of notes
a. Avoid using words that may be key words (such as 'name'). There are
lists available for you database and PHP at their websites.
2. Always respond to the list as a private response may get
inadvertently dumped to the spam
Hi all !
I would like PHP to generate on the fly EAP/TLS certificates. Firt I wanted to
use a shell script, but PHP can not answer yes (key y) through proc_open when
I wanted, so that now, I would like to now if PHP is able to do the same things
as when you call openssl with a shell script.
I'm
agreed!!!
-Original Message-
From: Justin Patrin [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 01, 2004 7:44 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Spammers
John Nichel wrote:
Steve Douville wrote:
So, as I hit the send button, I know I'll have 3 messages to delete in
a few
Hi folks,
We have two instances of apache/mod_php running on 80 and 443 ports
accordingly. For both mod_php we have the same dir (/tmp) to store session
information. Is it possible to mix sessions data up if user switches between
80 and 443 ports? I mean what if when user surfs over 80 port and
Hi,
I beleive that if both servers run the same hostname (www.foo.com) (cookie domain) and
both session files are stored in the same place (/tmp), then the session is unique for
80 and 443 ports.
you could simply test this be adding a $_SESSION['foo']='port80'; on the HTTP server
instance and
Hi there,
I am working on a spam filter for email forms. To improve it it would be great
to compare 2 text and to find out how equal they are.
Is there a function in php wich compares 2 text and returns a percentage of
equality?
The system allready checks for spam keywords, but there are some
Hi
I need to know if there is any code that can be used to get rid of the
refresh and retry when using the back button in internet explorer.
Every time i get info from the database and display the result, and i use
the back button it says
Warning: Page has Expired The page you requested was
Alex Hogan wrote:
Does anybody know of any peculiarities in the strtotime() function?
If I enter any date before 1 Jan 1970 I get a -1 returned.
Note: The valid range of a timestamp is typically from Fri, 13 Dec 1901
20:45:54 GMT to Tue, 19 Jan 2038 03:14:07 GMT. (These are the dates that
Pieter from SA wrote:
Hi
I need to know if there is any code that can be used to get rid of the
refresh and retry when using the back button in internet explorer.
Every time i get info from the database and display the result, and i use
the back button it says
Warning: Page has Expired The page
I have a website in English, it is translated in many languages already
(Spanish, french, German...), and i wanna translate it in Arabic, everytime i
have a word in English i use a function like this i18n(MyEnglishWord) and the
i18n function look up in an arabic.inc that contains a list of
Pieter from SA wrote:
I need to know if there is any code that can be used to get rid of the
refresh and retry when using the back button in internet explorer.
Every time i get info from the database and display the result, and i use
the back button it says
Warning: Page has Expired The
On Wed, 02 Jun 2004 10:29:31 +0100, Michael Nolan wrote:
Caleb Walker wrote:
I have 2 servers fail-over/load-balanced behind an F5
bigIP. I want session data to be maintained in the event one server takes
a dive. In this scenario, if a user is in the middle of doing
something while
Is it possible to have this code changed easily to make the output run
horizontally instead of vertically. example of current output to email
below code
//
//email selections to all
When you create $selections
Make sure you add a '\n' to the end of each line...
EG:
$selection .= $myrow[result1]\n;
BigMark [EMAIL PROTECTED]
03/06/2004 08:28
To
[EMAIL PROTECTED]
cc
Subject
[PHP] email formatting
Is it possible to have this code changed easily to make the output
I have looked at several of the functions and tried a few tutorials online
but am not having much luck for some reason resizing images. I have this
code which works fine but everytime I try to add some resizing code, I get
the error that the image is not a valid image resource. I have even
Mike wrote:
Ok, I'm a pretty fast learn but syntax and basic lack of serious
programming background hinder my efforts. I can make Javascript do what I
want it to and usually perl also but I'm in over my head with my PHP
project and I'm on a deadline.
Objective:
To create a set of forms that
--
Searchable archives for this list are available at
http://www.listsearch.com/phplist.lasso
--
Okay, I know someone is going to shoot me for asking such a dumb
question, but I just can't seem to find the answer anywhere. I have a
multidimensional array which I would like to sort on the value of one of
the keys...
Array
(
[0] = Array
(
[foo] = blah
Edward Peloke wrote:
I have looked at several of the functions and tried a few tutorials online
but am not having much luck for some reason resizing images. I have this
code which works fine but everytime I try to add some resizing code, I get
the error that the image is not a valid image
On Wed, 2004-06-02 at 12:59, John Nichel wrote:
Okay, I know someone is going to shoot me for asking such a dumb
question, but I just can't seem to find the answer anywhere. I have a
multidimensional array which I would like to sort on the value of one of
the keys...
Array
(
[0]
[snip]
What I would like to do is sort this on the value of 'sort' in each
sub-array. What am I missing TIA
[/snip]
http://us4.php.net/manual/en/function.array-multisort.php
HTH! :)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Robert Cummings wrote:
On Wed, 2004-06-02 at 12:59, John Nichel wrote:
What I would like to do is sort this on the value of 'sort' in each
sub-array. What am I missing TIA
usort( $theAboveArray, 'mySortHandler' );
function mySortHandler( $v1, $v2 )
{
if( $v1['sort'] $v2['sort'] )
Caleb Walker [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
On Wed, 02 Jun 2004 10:29:31 +0100, Michael Nolan wrote:
Caleb Walker wrote:
I have 2 servers fail-over/load-balanced behind an F5
bigIP. I want session data to be maintained in the event one server
takes
a dive.
BigMark wrote:
Is it possible to have this code changed easily to make the output run
horizontally instead of vertically. example of current output to email
below code
I'm not sure what you mean by horizontaly. Do you mean one long line?
Provide an example of what you want to get. And we don't
From: Caleb Walker [EMAIL PROTECTED]
This looks like modifications that need to be made to the application. I
dont really want to touch the application. Instead I just want PHP,
through the php.ini file or whatever to take the session data and put it
in a database instead of the file system.
p80 wrote:
I have a website in English, it is translated in many languages already
(Spanish, french, German...), and i wanna translate it in Arabic, everytime i
have a word in English i use a function like this i18n(MyEnglishWord) and the
i18n function look up in an arabic.inc that contains a
I just moved my site to a new install of SUSE 9.1 and get the error..
Call to undefined function: mail() when ever I try to send a message.
What is the easiest way to fix this since suse used postfix instead of
sendmail.
--
Chris W
Bring Back the HP 15C
http://hp15c.org
Not getting the gifts
Chris W wrote:
I just moved my site to a new install of SUSE 9.1 and get the error..
Call to undefined function: mail() when ever I try to send a message.
What is the easiest way to fix this since suse used postfix instead of
sendmail.
Hmm, weird. The function should always be available, it's
Hi,
I'm wondering if there's something similar to the C sizeof operator in
PHP? I would like to find out how much space in memory a variable is
actually using (and possibly adjust the max memory per script accordingly).
No, sizeof() http://us3.php.net/sizeof is not what I want :-(
Thanks!
Matt
Chris W wrote:
I just moved my site to a new install of SUSE 9.1 and get the error..
Call to undefined function: mail() when ever I try to send a message.
What is the easiest way to fix this since suse used postfix instead of
sendmail.
You'll have to set the path to postfix's sendmail
There is memory_get_usage() but it returns the amount of memory allocated
to PHP.
http://us3.php.net/manual/en/function.memory-get-usage.php
I'm wondering if there's something similar to the C sizeof operator in
PHP? I would like to find out how much space in memory a variable is
actually
Matthew A. Blasinski wrote:
Hi,
I'm wondering if there's something similar to the C sizeof operator in
PHP? I would like to find out how much space in memory a variable is
actually using (and possibly adjust the max memory per script accordingly).
No, sizeof() http://us3.php.net/sizeof is not
I am new to php and was tasked with installing php v.4.3.6. I installed it on redhat
with apache v2.0.48.
I read in the doc that you can create a test file called test.php with some php tags
such as ?phpinfo()?.
Could someone post a test.php file as an example?
Thanks for the help.
--
Open a file. Put this code in there:
?
phpinfo();
?
Save as test.php and point your browser to it.
- Original Message -
From: Nguyen, Long P (Mission Systems) [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, June 02, 2004 4:33 PM
Subject: [PHP] php installation verification
I
Save to your root directory as test.php (or something ending in php).
?php
phpinfo();
?
I am new to php and was tasked with installing php v.4.3.6. I installed
it on redhat with apache v2.0.48.
I read in the doc that you can create a test file called test.php with
some php tags such as
OK - I tried that and what came up on the browser was the content of the test.php file.
I checked in my httpd.conf file I do have the following:
AddType application/x-httpd-php .php
AddType application/x-http-php-source .phps
LoadModule php4_module libexec/libphp4.so
Any thoughts?
thank you.
Have you stopped and restarted the web server?
OK - I tried that and what came up on the browser was the content of the
test.php file.
I checked in my httpd.conf file I do have the following:
AddType application/x-httpd-php .php
AddType application/x-http-php-source .phps
LoadModule
On Wed, 2004-06-02 at 16:47, Nguyen, Long P (Mission Systems) wrote:
OK - I tried that and what came up on the browser was the content of the test.php
file.
Open a file. Put this code in there:
?
phpinfo();
?
Try:
?php
phpinfo();
?
--
Scot L. Harris
[EMAIL PROTECTED]
IF I HAD A
Yes.
-Original Message-
From: Daniel Clark [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 02, 2004 4:51 PM
To: Nguyen, Long P (Mission Systems)
Cc: Steve Douville; [EMAIL PROTECTED]
Subject: RE: [PHP] php installation verification
Have you stopped and restarted the web server?
OK -
I get the source display on the browser as:
?php
phpinfo();
?
-Original Message-
From: Scot L. Harris [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 02, 2004 4:53 PM
To: [EMAIL PROTECTED]
Subject: RE: [PHP] php installation verification
On Wed, 2004-06-02 at 16:47, Nguyen, Long P
And you test.php file has? (note starting with ?php
?php
?
Yes.
Have you stopped and restarted the web server?
OK - I tried that and what came up on the browser was the content of the
test.php file.
I checked in my httpd.conf file I do have the following:
AddType
Running Apache? Windows?
I get the source display on the browser as:
?php
phpinfo();
?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
The content of my test.php file has:
?php
phpinfo();
?
-Original Message-
From: Daniel Clark [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 02, 2004 4:59 PM
To: Nguyen, Long P (Mission Systems)
Cc: [EMAIL PROTECTED]; Steve Douville; [EMAIL PROTECTED]
Subject: RE: [PHP] php installation
Seems to me there was a problem with Apache 2 and PHP (some version).
The content of my test.php file has:
?php
phpinfo();
?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
redhat and apache
-Original Message-
From: Daniel Clark [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 02, 2004 5:02 PM
To: Nguyen, Long P (Mission Systems)
Cc: Scot L. Harris; [EMAIL PROTECTED]
Subject: RE: [PHP] php installation verification
Running Apache? Windows?
I get the
could it be something in my httpd.conf file?
below are the results of the installation:
[EMAIL PROTECTED] php-4.3.6]# make install
Installing PHP SAPI module: apache2handler
/usr/local/apache/build/instdso.sh SH_LIBTOOL='/usr/local/apache/build/libtool'
libphp4.la
Merlin wrote:
Hi there,
I am working on a spam filter for email forms. To improve it it would be
great to compare 2 text and to find out how equal they are.
Is there a function in php wich compares 2 text and returns a percentage
of equality?
The system allready checks for spam keywords, but
Quoting Nguyen, Long P (Mission Systems) [EMAIL PROTECTED]:
could it be something in my httpd.conf file?
Remove the line AddType application/x-httpd-php .php
and add
Files *.php
SetOutputFilter PHP
SetInputFilter PHP
/Files
HTH
R'twick
--
This is a signature
Can someone help me with preg_replace?
I want to convert all numbers either 8 or 9 digits in length, into a
link. Such that when it sees:
John Doe, 456890123, is a new employee.
It converts it to:
John Doe, a href='employee.html?id=456890123'456890123/a, is a new
employee.
function
Hi,
I'm having a problem with a set_ini command... I need to be able to set
the -f parameter (to set the originating address on my server). I am getting
a false response code when I run the following command:
$Result=ini_get(sendmail_path),
/usr/sbin/sendmail -t
John Kaspar wrote:
Can someone help me with preg_replace?
I want to convert all numbers either 8 or 9 digits in length, into a
link. Such that when it sees:
John Doe, 456890123, is a new employee.
It converts it to:
John Doe, a href='employee.html?id=456890123'456890123/a, is a new
employee.
John W. Holmes wrote:
From: Caleb Walker [EMAIL PROTECTED]
This looks like modifications that need to be made to the application. I
dont really want to touch the application. Instead I just want PHP,
through the php.ini file or whatever to take the session data and put it
in a database instead
[snip]
I'm having a problem with a set_ini command... I need to be able to
set
the -f parameter (to set the originating address on my server). I am
getting
a false response code when I run the following command:
[/snip]
looks like sendmail_path has to be set in http.conf or php.ini
Warren Gardner wrote:
Hi,
I'm having a problem with a set_ini command... I need to be able to set
the -f parameter (to set the originating address on my server). I am getting
a false response code when I run the following command:
$Result=ini_get(sendmail_path),
/usr/sbin/sendmail -t
* Thus wrote Chris W ([EMAIL PROTECTED]):
I just moved my site to a new install of SUSE 9.1 and get the error..
Call to undefined function: mail() when ever I try to send a message.
What is the easiest way to fix this since suse used postfix instead of
sendmail.
This happens when php is
Hi All,
Does anyone know a good format for sending email using the mail()
function that doesnt get stopped by antispam software?
I need to send and email from my sever when a new member creates an account,
this ive done but my email gets binned straight away? must be the headers?
Regards
Sounds like a problem for the maintainers of the spam blocking software?
You can't correct the problem with the headers if you don't know what the
spam software is objecting to. It may be objecting to the fact that the
source is 127.0.0.1?
-Original Message-
From: Rick [mailto:[EMAIL
This is how I would do it and would require no additional changes to the
code - just set your auto prepend in a .htaccess file if you're using
Apache.
This sounds interesting. Could you elaborate a little more? I mean what
is the auto prepend and what is the syntax for the .htaccess?
On 02/06/2004, at 3:00 AM, Justin Patrin wrote:
And I'm one of them. :-) I like the KR version because it saves
verticaly space and most editors can't really handle correct tabbing
when you put it after. IMHO it's just not necessary as ALL blocks
should have braces, even those that are
shouln't be
QUOTE: input type = textarea name=quote...
Respectfully,
Ligaya Turmelle
Matt Macleod [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Should be:
form name=form meth0d=post action=input/php
NAME: input type=text name=name id=name /
QUOTE: textarea name=quote
minor suggestion: make sure you have a from address.
Respectfully,
Ligaya Turmelle
Rick [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hi All,
Does anyone know a good format for sending email using the mail()
function that doesnt get stopped by antispam software?
I need to
Another suggestion is if its an HTML format mail, make sure you use
properie making sure all tags are closed that kind of stuffsome
software will block if the HTML is not well formed
Rick [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hi All,
Does anyone know a good
84 matches
Mail list logo