On Tue, 18 Mar 2003 13:44:25 -0500, Miro Kralovic wrote about [PHP] Call
to undefined function: mssql_pconnect() what the universal translator
turned into this:
Hi all.. I'm trying to connect MSSQL2000 Personal Edition from PHP and
all I'm getting is Call to undefined function: mssql_pconnect
Thanks for the tip Erik.
Looks like I'll need to test live on this one -- I've got a win2k/Apache/PHP
setup locally -- output buffering apparently does not work in this
configuration...
I'll look into it on our host company's Linux servers,
--Noah
Erik Price [EMAIL PROTECTED] wrote in
Robert Dyke wrote:
Hi ... PHP newbie here.
I'm migrating from ASP/vbScript.
I'd like to set up a subroutine that will change several variables at
once.
In VB, I can say:
Private Sub Change_Variables ($variable1, $variable2)
$variable1 = Something different from it's original value
Jome [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Robert Dyke wrote:
Hi ... PHP newbie here.
I'm migrating from ASP/vbScript.
I'd like to set up a subroutine that will change several variables at
once.
In VB, I can say:
Private Sub Change_Variables ($variable1,
do you have any idea about PHP DOM XML functions?
when will PHP DOM XML functions be stable?
Fatih stnda
Yre Elektronik Yaymclk A..
0 212 234 00 90
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hey all.
Is it possible to populate a var with an output string generated by a
function? So:
***
function write_string(count) {
for ($x = 0; $x $count; $x++) {
echo option value=$x Row $x/option;
}
}
$my_string = write_string(5);
echo
Try adding each output string to a variable, then returning it, like:
function return_string(count) {
$return = '';
for ($x = 0; $x $count; $x++) {
$return.= option value=$x Row $x/option;
}
return $return;
}
If you can't do that for some reason, try using output buffering.
***
function write_string(count) {
for ($x = 0; $x $count; $x++) {
echo option value=$x Row $x/option;
}
}
$my_string = write_string(5);
echo $my_string;
***
8-Untested
At 04:56 04.03.2003, CF High said:
[snip]
Hey all.
Is it possible to populate a var with an output string generated by a
function? So:
***
function write_string(count) {
for ($x = 0; $x $count; $x++) {
echo
: Monday, March 03, 2003 5:01 PM
Subject: Re: [PHP] Populate var with function output string?
Try adding each output string to a variable, then returning it, like:
function return_string(count) {
$return = '';
for ($x = 0; $x $count; $x++) {
$return.= option value=$x Row $x
Hey all.
I'm currently using the following db connection function, but I'm not sure
if it's as efficient as it could be.
function dbConnect($SQL) {
global $result;
// Connect to DB
if (!$link = mysql_connect($db_host, $db_user, $db_pass)) {
$result = 0;
Marco Alting [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
When I try to use a php script, to send an email, the From header is
replaced by a senders email address of my provider. Is there any way to
make
it so my email address shows up in the From header?
In
Marco Alting [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
When I try to use a php script, to send an email, the From header is
replaced by a senders email address of my provider. Is there any way to
make
it so my email address shows up in the From header?
is function imagecreatefromjpeg() undefined in PHP 4.3 when GD is
enabled and imagecreatefrompng() id defined?
Is it a bug? Or?
My ISP config:
System Linux titan 2.4.18-3 #1 Thu Apr 18 07:37:53 EDT 2002 i686
Build Date Jan 24 2003 19:35:29
Configure Command './configure' '--with-mysql
: php.general
To: [EMAIL PROTECTED]
Sent: Friday, February 07, 2003 3:14 PM
Subject: Re: Why is function imagecreatefromjpeg() undefined in PHP 4.3 when
GD is enabled and imagecreatefrompng() id defined? A bug?
You need to install jpeg-6bftp://ftp.uu.net/graphics/jpeg/ and
dd --with-jpeg-dir=DIR
So, why is this function not included in GD like imagecreatefrompng()?
Can this be just bad configuration at my Administrator behalf?
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: 7. febrúar 2003 14:15
To: [EMAIL PROTECTED]
Subject: [PHP] Re: Why is function
]
Subject: [PHP] Re: Why is function imagecreatefromjpeg() undefined in
PHP 4.3 when GD is enabled and imagecreatefrompng() id defined? A bug?
You need to install jpeg-6bftp://ftp.uu.net/graphics/jpeg/ and dd
--with-jpeg-dir=DIR.
--
Regards.
M.CHAILLAN Nicolas
[EMAIL PROTECTED]
www.WorldAKT.com
Dear Supportteam
Im Runing a Apache Webserver under Debian sid (testing). I've installed PHP Version
4.1.2. Now I would like to create a Webalbum,
but my Server doesn't know the funktion imagetypes. He gives me the Error-message:
Call to undefined function: imagetypes(). I
found the same Error
Hi there, I've been using PHP for about 2 years now and absolutely love
it! Our company uses it as our main development language, so far
though, there is one thing that has been annoying me for a while now..
the following line of code will not work:
$object-function1($parameter)-function2();
Hi, all!!!
I've such trouble:
( register_globals = off )
in function i call to $smarty variable
function showLoginForm(){
global $db, $smarty; // $smarty = new Smarty in main code
$smarty-assign(message, $message); //
and i receive this error message
Fatal error: Call to a
On Tuesday 14 January 2003 18:46, Michael Bevz wrote:
I've such trouble:
( register_globals = off )
The register_globals setting in php.ini has ...
in function i call to $smarty variable
function showLoginForm(){
global $db, $smarty; // $smarty = new Smarty in main code
...
in function i call to $smarty variable
function showLoginForm(){
global $db, $smarty; // $smarty = new Smarty in main code
Fatal error: Call to a member function on a non-object in
Are you sure
$smarty = new Smarty
is in the main code?
Can it be in another function?
Try setting
Chris Hayes [EMAIL PROTECTED] ïèøåò â
ñîîáùåíèè:[EMAIL PROTECTED]
in function i call to $smarty variable
function showLoginForm(){
global $db, $smarty; // $smarty = new Smarty in main code
Fatal error: Call to a member function on a non-object in
Are you sure
$smarty = new
hi everyone,
It's Possible We used Php Scripting to Back the client Browser
Like This Below :
(ussualy I make it with java script) :
javascript:history.back(1)
but right now, i need using the 'header's function', functionaly to back
the page to previouse page.
sorry before :)
--
PHP
PROTECTED]
Subject: [PHP] stupid question (Back Function)
hi everyone,
It's Possible We used Php Scripting to Back the client Browser
Like This Below :
(ussualy I make it with java script) :
javascript:history.back(1)
but right now, i need using the 'header's function', functionaly to back
the page
Remon, et al --
...and then Remon Redika said...
%
% hi everyone,
Hi!
%
% It's Possible We used Php Scripting to Back the client Browser
Well, yes and no. There was just a new 'crumb' class released (see
http://www.phpclasses.org/browse.html/package/934.html
for more) which will let
:)
Justin
on 10/01/03 9:15 AM, Brian T. Allen ([EMAIL PROTECTED]) wrote:
Hi,
This may exist, but I haven't been able to find it, and I think it would
be REALLY helpful and convenient.
The idea is this:
When you write a script and call a function:
?php
$whatever
Hi,
This may exist, but I haven't been able to find it, and I think it would
be REALLY helpful and convenient.
The idea is this:
When you write a script and call a function:
?php
$whatever = previously_uncalled_function(one,two);
?
PHP would automatically look for a file named
Exactly!!
checking for sendmail... no
I've browsed the configure's help and I can't find an option to specify
the path to sendmail (which is not at a regular place as we run qmail).
Is the a --with-sendmail-path option or something like that?
Thanks a lot!
Carl
Rick Widmer wrote:
At 10:11
On Thursday 02 January 2003 01:26, Carl Bélanger wrote:
Exactly!!
checking for sendmail... no
I've browsed the configure's help and I can't find an option to specify
the path to sendmail (which is not at a regular place as we run qmail).
Is the a --with-sendmail-path option or something
At 02:07 AM 1/2/03 +0800, Jason Wong wrote:
On Thursday 02 January 2003 01:26, Carl Bélanger wrote:
Exactly!!
checking for sendmail... no
I've browsed the configure's help and I can't find an option to specify
the path to sendmail (which is not at a regular place as we run qmail).
Is the
I just upgraded to php 4.3.0 and all by bulletin board are now returning
error about the mail function:
Fatal error: Call to undefined function: mail() in
/var/wwwx/htdocs/forum/private.php on line 687
I've checked in the pear list of installed packages and I have the
latest mail (1.0.2).
At 10:11 AM 12/31/02 -0500, Carl Bélanger wrote:
I just upgraded to php 4.3.0 and all by bulletin board are now returning
error about the mail function:
Fatal error: Call to undefined function: mail() in
/var/wwwx/htdocs/forum/private.php on line 687
What could be missing?
./configure
Im just about at wits end here Im trying to verify that a users ID and
Password exist in the MySQL Database and then if it does display certain
content and if it does not display login form content.
###At present here is the error I'm recieving:
Warning: Missing argument 3 for verifylogin() in
Hi,
Monday, December 9, 2002, 2:24:47 AM, you wrote:
SM Im just about at wits end here Im trying to verify that a users ID and
SM Password exist in the MySQL Database and then if it does display certain
SM content and if it does not display login form content.
SM ###At present here is the
I'm using the following function to generate a random string:
function randstring($minasc = 32,$maxasc = 255,$minlength = 0,$maxlength
= 0){
//If maximum length is lower than minimum length, return string
representation of false
if($maxlength != 0 and $minlength != 0 and $minlength
Hello list,
how can I check wheter GD-function is working and running?
Oliver Etzel
Hello,
[EMAIL PROTECTED] wrote:
Hello list,
how can I check wheter GD-function is working and running?
First check phpinfo() and see under gd then read more info here:
http://www.php.net/manual/en/ref.image.php
- E
PS: Pls. don't flood the list with same messages...
--
PHP General
hi all,
is it possible to somehow have a function which takes a variable number
of arguments (with some kind of key association) which can then be
converted to variables?
i am sick of continually having to go back and add empty parameters to
functions in use.
an example would be..
function
-Original Message-
From: christian haines [mailto:[EMAIL PROTECTED]]
Sent: 03 December 2002 13:32
hi all,
is it possible to somehow have a function which takes a
variable number
of arguments
Yes -- look at the manual pages for func_num_args
I'm having a strange problem. If I run any MySQL function, I get the
error message Call to undefined function: mysql_foo(). Why would I be
getting this? I've checked php.ini to see if it has the
extension=mysql.so line, and I've run a phpinfo() script which says PHP
was compiled with MySQL and
Is it possible that phpBB is using a different copy of PHP?
On Sun, 2002-12-01 at 14:21, Adam Atlas wrote:
I'm having a strange problem. If I run any MySQL function, I get the
error message Call to undefined function: mysql_foo(). Why would I be
getting this? I've checked php.ini to see if
Hello,
Can I call a php function using forms in the same way as I do for a javascript
function? (in the same page, not with php_self).
?php
function()
{...
}
?
form method=post action=function()
.
/form
Thanks, Adrian
No, you can't. PHP is run on the server side. JavaScript is client side.
Adrian Partenie wrote:
Hello,
Can I call a php function using forms in the same way as I do for a javascript function? (in the same page, not with php_self).
?php
function()
{...
}
?
form method=post
In article 004101c288f5$2fa6f0b0$0100a8c0@hub,
[EMAIL PROTECTED] says...
I have sendmail installed and the path to it in the php.ini is correct, when i try a
file just containing the mail() function (no errors in that!) it starts sendmail but
nothing gets sent!
root 22508 0.0 0.2
On Saturday, November 02, 2002 11:07 AM, I wrote
* I'm having a problem with the is_dir function, or maybe I don't
understand
how it supposed to work. I'm using the following code to check whether or
not a directory called $user_dir exists. If it exists, I am returned the
proper message.
]; Php-General
[EMAIL PROTECTED]
Sent: Wednesday, November 06, 2002 3:41 AM
Subject: RE: [PHP] Problem with is_dir function
On Saturday, November 02, 2002 11:07 AM, I wrote
* I'm having a problem with the is_dir function, or maybe I don't
understand
how it supposed to work. I'm using
I'm having a problem with the is_dir function, or maybe I don't understand
how it supposed to work. I'm using the following code to check whether or
not a directory called $user_dir exists. If it exists, I am returned the
proper message. But if it doesn't exist, I get the following error
/incoming
are invalid
Hope this helps
Andrew
- Original Message -
From: Roger Lewis [EMAIL PROTECTED]
To: Php-General [EMAIL PROTECTED]
Sent: Saturday, November 02, 2002 7:06 PM
Subject: [PHP] Problem with is_dir function
I'm having a problem with the is_dir function, or maybe I don't
-Original Message-
From: Andrew Brampton [mailto:andrew;bramp.freeserve.co.uk]
Sent: Saturday, November 02, 2002 11:24 AM
To: Roger Lewis; [EMAIL PROTECTED]
Subject: Re: [PHP] Problem with is_dir function
what values of $user_dir are you passing to is_dir?
echo them out before the test, you
My boss wants me to add a number of items to the cart based on a user
form input. At the moment my add to cart function checks if anything is
in it and then increments one item (using this code). I can supply the
full function if required but just this part would get me away I think.
Hi
?
$newamount = 5;
if($cart[$new])
$cart[$new] = $cart[$new] + $newamount;
?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Jason,
What is the difference?
Jason Wong [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
On Monday 14 October 2002 08:36, John Negretti wrote:
Marco,
I was reading that there were some security risks with
register-globals. Is this the same thing
http://localhost/test.php?var=5
results in (global scope)
$var = 5; // Register globals on
$HTTP_GET_VARS['var'] = 5; // Always (?)
$_GET['var'] = 5; // With newer versions of PHP
To access this from a function:
function x() {
global $var;
globsl $HTTP_GET_VARS;
echo $var.'BR';
Hello All,
I am calling a particular function. Within that function I need access
to the $HTTP_GET_VARS array. It seem I could only access that array if I
pass it as a parameter of the function. Is this how it's supposed to work.
Thanks for any direction. NOTE: I am using PHP 4.0.6.
Try using
global $HTTP_GET_VARS;
at the beginning of your function. $HTTP_GET_VARS has global scope, and
by default PHP isolates functions from the parent scope.
Marco
On Sun, 2002-10-13 at 16:39, John Negretti wrote:
Hello All,
I am calling a particular function. Within that
Marco,
I was reading that there were some security risks with
register-globals. Is this the same thing as global.
John Negretti
www.ideablue.com
Marco Tabini [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Try using
global $HTTP_GET_VARS;
at the
On Monday 14 October 2002 08:36, John Negretti wrote:
Marco,
I was reading that there were some security risks with
register-globals. Is this the same thing as global.
No, they're totally different things.
--
Jason Wong - Gremlins Associates - www.gremlins.com.hk
Open Source Software
First you should use :
$entry_date = date('l, d F Y H:i:s',$sql['date']);
And $sql['date'] must be a TIMESTAMP.
--
Nicos - CHAILLAN Nicolas
[EMAIL PROTECTED]
www.WorldAKT.com - Hébergement de sites Internet
Davy Obdam [EMAIL PROTECTED] a écrit dans le message de news:
a
solution?
Best regards,
Davy Obdam,
mailto:[EMAIL PROTECTED]
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Sunday, October 06, 2002 1:59 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: [PHP] Re: Using date() function
First you should use :
$entry_date
Hello,
Why not just do it in your sql query?
If you're using MySQL perhaps this page would be helpful:
http://www.mysql.com/doc/en/Date_and_time_functions.html
Just an idea...
- E
On Sunday, October 6, 2002 10:01 PM
Davy Obdam wrote:
Hi people
I have a guestbook, and i need to
Using $entry_date = date('l, d F Y H:i:s',$sql['date']); now gives me
back Tuesday, 19 January 2038 04:14:07 with ever entry. $sql['date']
is
a TIMESTAMP and looks like this 20021006141256 in the datebase. It
should give me Sunday, 06 October 2002 14:12:56..? Wierd eh? Do u know
a
solution?
: John W. Holmes [mailto:[EMAIL PROTECTED]]
Sent: Sunday, October 06, 2002 3:31 PM
To: 'Davy Obdam'; [EMAIL PROTECTED]; [EMAIL PROTECTED];
[EMAIL PROTECTED]
Subject: [PHP-WIN] RE: [PHP] Re: Using date() function
Using $entry_date = date('l, d F Y H:i:s',$sql['date']); now gives me
back Tuesday
Hi John,
How do u use UNIX_TIMESTAMP or DATE_FORMAT in your query. My query now
looks like this:
SELECT * FROM guestbook2002 ORDER BY entryID DESC LIMIT $entry,
$show;
Can u help me;-) Thanks for your time
Did you read the Date and Time Functions chapter of the MySQL manual??
SELECT
PROTECTED]]
Sent: Sunday, September 29, 2002 2:19 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Problems with dbase_create function
Hey All,
I'm trying to build a DBF for exporting selected data as a download to
the
end users... But I can't get further than this...
error_reporting
PROTECTED]
Subject: [PHP] Problems with dbase_create function
Hey All,
I'm trying to build a DBF for exporting selected data as a download to
the
end users... But I can't get further than this...
error_reporting(E_ALL);
$DBFName = Test.dbf;
$Fields = array( array
, September 29, 2002 11:55 AM
To: [EMAIL PROTECTED]
Subject: RE: [PHP] Problems with dbase_create function
I considered that...
Problem is I'm not 100% certain how to set that the correct way... (so
as
not to screw anything else up)
Recommendations?
Thanks
PS It's good to know I wasn't
Hey All,
I'm trying to build a DBF for exporting selected data as a download to the
end users... But I can't get further than this...
error_reporting(E_ALL);
$DBFName = Test.dbf;
$Fields = array( array (Test,C,32) );
if(dbase_create($DBFName, $Fields))
hi,
is it possible to have a function execute when a session expires using php4
sessions?
i know how to execute a function if i control the timeout (as mentioned
elsewhere in this group) but what about if the session times out itself
using the inbuilt garbage collection routine.
if so, any ideas
is it possible to have a function execute when a session expires using
php4
sessions?
i know how to execute a function if i control the timeout (as
mentioned
elsewhere in this group) but what about if the session times out
itself
using the inbuilt garbage collection routine.
if so, any
thanks john,
hmmm... i suspected as much...
i guess the way to do it would be to set a highly improbable garbage
collection and long timeout via ini_set. then use a timeout function
attached to the session which launches on expiration
cheers
christian
John Holmes [EMAIL PROTECTED] wrote in
PROTECTED]]
Sent: Monday, September 23, 2002 11:06 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] session and expiration function
thanks john,
hmmm... i suspected as much...
i guess the way to do it would be to set a highly improbable garbage
collection and long timeout via ini_set. then use
the PHP board at Devshed and someone posted a
sample function to handle the cleanup.
---John Holmes...
-Original Message-
From: christian haines [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 23, 2002 11:06 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] session and expiration
how about
http://www.php.net/manual/en/language.oop.php
To be honest I can't remember what made classes
first click for me but feel free to ask if there's
anything there that you don't get.
Classes and OOP seem self evident when you've been
using them for a while but I seem to remember that
is using classes an option?
Tim Ward
www.chessish.com
-Original Message-
From: David T-G [mailto:[EMAIL PROTECTED]]
Sent: 19 September 2002 04:54
To: PHP General list
Subject: redefining a function
Hi, all --
Is there any way to redefine or undefine (to
Array:
?php
function tbl2array ($table, $sortby = default, $keyword = all, $keyfield = 0) {
$fpointer = fopen ($table,r);
$row = 1;
$leaf = array();
$heading = array();
while ($data = fgetcsv ($fpointer,1000)) {
if ($row == 1) {
$heading = $data
Tim, et al --
...and then Tim Ward said...
%
% is using classes an option?
I don't know. I suppose I need to learn about classes :-) Where do I
start?
%
% Tim Ward
% www.chessish.com
TIA HAND
:-D
--
David T-G * It's easier to fight for one's
Hi,
Thursday, September 19, 2002, 5:29:06 AM, you wrote:
BY What does this do?
Here is the class again with all errors fixed and some unfinished bits
but it should be enough to get you started. It uses recursion as it
repeats after one thousand .. ie one, two, three one thousand,
two
Hi,
Friday, September 13, 2002, 12:37:41 AM, you wrote:
rhc Hi..
rhc anyone know any function to convert numeric values to word..
rhc something like this:
1252 -- one thousand two hundred and fifty two
rhc Thanks...
Here is a class that will get you started :)
class num_to_text {
var
Hi,
Friday, September 13, 2002, 12:37:41 AM, you wrote:
rhc Hi..
rhc anyone know any function to convert numeric values to word..
rhc something like this:
1252 -- one thousand two hundred and fifty two
rhc Thanks...
Here it is without the typo :)
class num_to_text {
var $mode;
Hi..
anyone know any function to convert numeric values to word..
something like this:
1252 -- one thousand two hundred and fifty two
Thanks...
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Help!
I am getting the following error message for :
?
$link=mysql_connect(localhost,$user,$pass); // line 34
?
Fatal error: Call to undefined function: mysql_connect() in
/home/www/test.somename.org/aux/db-mod.php on line 34
I have used this call successfully on php v4.0.6, and am now
Help!
I am getting the following error message for :
?
$link=mysql_connect("localhost","$user","$pass"); // line 34
?
Fatal error: Call to undefined function: mysql_connect() in
/home/www/test.somename.org/aux/db-mod.php on line 34
I have used this call successfully on php v4.0.6, and am
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Sunday, August 25, 2002 8:54 PM
Subject: Re: [PHP] Call to undefined function mysql_connect()
Help!
I am getting the following error message for :
?
$link=mysql_connect("localhost","$user","$pass"); // line
do a php_info() on a page and check the mysql propeties in there.. might
give you a clue..
-Original Message-
From: hugh danaher [mailto:[EMAIL PROTECTED]]
Sent: Monday, 26 August 2002 1:18 PM
To: php
Subject: [PHP] Call to undefined function mysql_connect()
Help!
I am getting
I am trying to write a function that builds a multiple-choice drop down
list. As such, I need to specify an array in the name attribute of the
select tag. I am trying to pass a parameter to the function which gets
used as this name attribute, but seem to be having problems with the square
-Original Message-
From: Bill Hudspeth [mailto:[EMAIL PROTECTED]]
Sent: 13 August 2002 17:10
[]
DESIRED FUNCTION VERSION
$elementname=cgroup_1[];
$elementsarray=$chon_group_a;
PrintOptionBox($elementname,$elementsarray);
Well, looks ok-ish so far -- what's in the
you can pass an unlimited number of variable through the array()
constructor.
as:
data_interface(array($table1, $table2, $table3))
you can use an Array manipulation functions for that order too.
good luck,
Mathieu Dumoulin [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL
Hi.
I'm running PHP 4.2.1 MySQL 3.23. I'm getting the error message Call to
undefined function: mysql_connect() when I try to use it in my code. If
anyone has any ideas as to why this might be happening, I'd be appreciative.
Thanks!
--
PHP General Mailing List
It seems then that your mysql support isn't installed correctly with
your php.
Richard Pijnenburg
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Sunday, July 28, 2002 12:25 AM
To: [EMAIL PROTECTED]
Subject: [PHP] call to undefined function: mysql_connect
Dear all
I had made a test.txt file which stored in the following window path :
c:\pdf_reports\dealing\test.txt,
In my page, i ask php to check the test.txt exist in foler
(c:\pdf_reports\dealing) using the following script:
if (file_exists(c:\\pdf_reports\\dealing\\test.txt))
{
print
On Wed, Jul 17, 2002 at 03:55:10PM +0800, Jack wrote:
if (file_exists(c:\\pdf_reports\\dealing\\test.txt))
It seems that php can't detect the file in such path!!!
While this isn't your problem, it's nicer coding. Single quotes and
forward slashes:
if (
Hi,
I have an array of elements which are separated with the operator
comma(,).
==
$array = implode(,, $checkb);
echo $array.'\n';
$result = mysql_query(DELETE FROM temp WHERE inv_tag IN
($array)) or die('Error in
WHERE inv_tag IN
($array)) or die('Error in query'.mysql_error());
PTX526_P_1,SIM_1
Error in query Unknown column 'PTX526_P_1' in 'where clause'.
Well I can't see what this has to do with PHP let alone the implode()
function.
The error
Hi Jason,
How to make $array look like 'PTX526_P_1','SIM_1' or
PTX526_P_1,SIM_1.
Thanks and Regards
Balaji
-Original Message-
From: Jason Wong [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 16, 2002 8:22 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Problem with implode() function
I have an array of elements which are separated with the operator
comma(,).
==
$array = implode(,, $checkb);
echo $array.'\n';
$result = mysql_query(DELETE FROM temp WHERE inv_tag IN
($array)) or die('Error in query'.mysql_error());
,strlen($subject));
$subject = [MediaSoft] . $subject;
//mail($to, $subject, $body, $headers) or die(tet);
mail($to, $subject, $fullbody, From: [EMAIL PROTECTED]);
?
I got the pop3.php from www.weberdev.com its a class to download emails from
a POP3 server. My problem is:
When i send an email from a PHP
You wouldn't happen to be on a windows system? Read the Warning: on the
manual page:
http://www.php.net/manual/en/function.mail.php
--Dan
--
PHP classes that make web design easier
SQL Solution | Layout Solution | Form Solution
sqlsolution.info |
No I only work on *nix platforms
Analysis Solutions [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
You wouldn't happen to be on a windows system? Read the Warning: on the
manual page:
http://www.php.net/manual/en/function.mail.php
--Dan
--
Does anyone know how to configure the session function in
the php.ini File under WinNT... The Session Function appears
to be generic to UNIX... What do I change the save_path
variable to...
session.save_path = ?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
501 - 600 of 859 matches
Mail list logo