Hi,
I've compiled an external program in my linux server.
That program creates a pdf file taking a html file as input.
when i run it thru the command line its working fine.
But when i tried to execute the same command from php
with exec() command its not working.
Note that from command i'm
I had FreeTDS and PHP 4.3.x working fine, then I upgraded my PHP
installation to PHP 5.0.3, now It isnt working.
On the page where I connect to the MSSQL server I get the following error:
Warning: mssql_connect() [function.mssql-connect]: Unable to connect to
server: 172.16.xx.xxx in
Justin French wrote:
Hi all,
Pretty sure this can't be done, but thought I'd ask any way...
I have a function where the 3rd argument is an array..
function foo($a,$b,$c) {
echo $a.$b;
print_r($c);
}
Obviously the function does more than that, but anyway, I want the calls
to this function
Hi all and sorry for my ignorance.
I have used the Bcompiler to compiler a script into .exe file to
distribuited on Windows System but i don't have any result.
Can you explain how to realize with a simple example ?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Hello Jochem,
Wednesday, January 12, 2005, 8:08:09 PM, you wrote:
JM read the manual entry first (see below) - and understand what the
JM function actually does - never just assume because its giving you
JM the result you want now that it will always work the way you
JM expect.
Don't be a
Richard Lynch wrote:
snip
But we DON'T CARE!
/snip
The Borg are everywhere!!! ;)
--
John C. Nichel
ÜberGeek
KegWorks.com
716.856.9675
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[snip]
I've compiled an external program in my linux server.
That program creates a pdf file taking a html file as input.
when i run it thru the command line its working fine.
But when i tried to execute the same command from php
with exec() command its not working.
Note that from command i'm
Kioto wrote:
Hi all and sorry for my ignorance.
I have used the Bcompiler to compiler a script into .exe file to
distribuited on Windows System but i don't have any result.
Can you explain how to realize with a simple example ?
not. PHP scripts don't need to be compiled. They're interpreted
Hello,
I found the problem about my last message (see below).
This relates to a bug in 4.3.10 release with MSSQL extension
Bug #31372
I downgraded to PHP 4.3.8 and the problem was solved.
Thank you for your attention and replies
Vincent
-Original Message-
From: Vincent DUPONT
Sent:
Hi all,
Pretty sure this can't be done, but thought I'd ask any way...
I have a function where the 3rd argument is an array..
function foo($a,$b,$c) {
echo $a.$b;
print_r($c);
}
Obviously the function does more than that, but anyway, I want the
calls to this function to look a
I think you've answered your own question.
Check the permissions on the file. Can it be executed by the other user?
Is it in the path? What error do you see in the log?
ls -l
chmod
might just be your friends ;-)
-Original Message-
From: Sagar C Nannapaneni [mailto:[EMAIL PROTECTED]
I've just started playing with the php5 improved mysqli extensions.
I have the following code:-
?php
$mysqlim = new mysqli(localhost, myUser, myPassword,myDB);
$updateQuery = UPDATE client SET status = 'INACTIVE' WHERE clientName =
'Tom';
if ($mysqli-query($updateQuery))
{
$updateCount =
M. Sokolewicz wrote:
Kioto wrote:
Hi all and sorry for my ignorance.
I have used the Bcompiler to compiler a script into .exe file to
distribuited on Windows System but i don't have any result.
Can you explain how to realize with a simple example ?
not. PHP scripts don't need to be compiled.
M. Sokolewicz wrote:
Justin French wrote:
Hi all,
Pretty sure this can't be done, but thought I'd ask any way...
I have a function where the 3rd argument is an array..
function foo($a,$b,$c) {
echo $a.$b;
print_r($c);
}
Obviously the function does more than that, but anyway, I want the
Hi
Probably a trivial question
While trying to use mysqli on my dev machine, PHP returns the following:
Fatal error: Trying to clone an uncloneable object of class mysqli
After STFW I have found a solution that involves swiching off
compatibility with Zend Engine 1 in php.ini.
However, after
Craig Donnelly wrote:
On the page where I connect to the MSSQL server I get the following
error:
Warning: mssql_connect() [function.mssql-connect]: Unable to connect
to server: 172.16.xx.xxx in
/var/ftpusers/tarot/tarot/admin/sqltest.php on line 4
A couple of things to try:
(1) Try
use the unset() function.
for ($i = 0; $i count($array); $i++) {
if (empty($array[$i]) {
unset($array[$i]);
}
}
On Wed, 2005-01-12 at 16:22, Sebastian wrote:
how do i delete keys from an array if it has no values?
eg, this:
[name] = Array
(
[0] =
Lars B. Jensen wrote:
Is there any way, I from one function can identify which other
function called it, without parameter passing the name manually ?
I still question whether its correct to design a function which
requires this. I thought the idea of encapsulating code inside a
function is
that only works for numerical indices.
However, if you're sure that neither null values, nor false values are
supposed to be present in the array, (that means, they MIGHT be, but
should be removed anyway; or just not be there at all,) then you could
try array_filter with no callback-argument :)
Greg Donald a écrit :
function encrypt( $string )
{
$key = '[EMAIL PROTECTED]';
$result = '';
for( $i = 1; $i = strlen( $string ); $i++ )
{
$char = substr( $string, $i - 1, 1 );
$keychar = substr( $key, ( $i % strlen( $key ) ) - 1, 1 );
I didn't need to search, turns out there wasn't a folder C:\WINODWS\TEMP so
I just made one and it's all fixed now.
Only thing I don't understand is why it didn't change the save path when I
asked it to. Oh well. Thanks for all the help people!
Thanks,
Stephen Craton
http://www.melchior.us
Hello,
I'm quite new with writing php code. I was considering of using some kind of
php editor program to help with the syntax. Know any goog ones?
Thanks
-Will
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hello kioto,
Thursday, January 13, 2005, 9:03:53 AM, you wrote:
k I have used the Bcompiler to compiler a script into .exe file to
k distribuited on Windows System but i don't have any result. Can you
k explain how to realize with a simple example ?
Never used bCompiler, but does the exe just
Jochem Maas wrote:
snip
(no disrespect to Zend, but ZCE _sounds_ a lot like MSCE and everyone
knows what thats worth ;-) - just a but of humour guys!)
snip
Oh yeah, I can hear all the Zend people laughing from here.
--
By-Tor.com
...it's all about the Rush
http://www.by-tor.com
--
PHP General
Hi,
I want to build a dba module with qdbm.
But after I cp the dba.so to another machine, it depends on libqdbm.so.
How can I build a no depends module? So I am not have to make qdbm to
other machine.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Justin French wrote:
Pretty sure this can't be done, but thought I'd ask any way...
[...]
foo(cat,dog,(a=1,b=2,c=3)); or
foo(cat,dog,{a=1,b=2,c=3}); would be nice (Ruby has
something like this), but I'm guessing it's not possible.
No, can't do that. I'm used to stuff like that from Perl as
Is there any way, I from one function can identify which other function
called it, without parameter passing the name manually ?
I still question whether its correct to design a function which requires
this. I thought the idea of encapsulating code inside a function is that
its
Lester Caine wrote:
Expensive. There are a few postcode management sites that provide
positional data against the post code, but they all cost quite a bit of
money. We are working on a cut down version for key areas, with a rough
entry for the first part for all post codes, with a few that
[snip]
Hi all and sorry for my ignorance.
I have used the Bcompiler to compiler a script into .exe file to
distribuited on Windows System but i don't have any result.
Can you explain how to realize with a simple example ?
not. PHP scripts don't need to be compiled. They're interpreted
I was able to successfully make a very simple http proxy - turns out the
php documentation has the code for this =] - but now I need a way to
display images. I figured the best way would be to download the images
to a temporary folder, then parse the html to point to the images on my
server
thanks Leif, not too many think like you :)
some people are on this list just because they think they are some genius in
php, then when someone with less experience asks for help they bitch and
basically tell you to find your own solution or read the manual, that is the
first place any REAL php
Dears,
My html templates are encoded using utf-8. When the
browser reads the files as .html it encodes it fine
and my characters looks fine. However, when php reads
the files and sends them to the browser the files
looks ugly and unreadable. How can I force the broswer
to encode the pages in
Rory McKinley wrote:
Hi
Probably a trivial question
While trying to use mysqli on my dev machine, PHP returns the following:
Fatal error: Trying to clone an uncloneable object of class mysqli
After STFW I have found a solution that involves swiching off
compatibility with Zend Engine 1 in
To view the terms under which this email is distributed, please go to
http://disclaimer.leedsmet.ac.uk/email.htm
On 13 January 2005 05:28, Matthew Fonda wrote:
use the unset() function.
for ($i = 0; $i count($array); $i++) {
if (empty($array[$i]) {
crap - hit 'reply' by mistake.
---
Leif Gregory wrote:
Hello Jochem,
Wednesday, January 12, 2005, 8:08:09 PM, you wrote:
JM read the manual entry first (see below) - and understand what the
JM function actually does - never just assume because its giving you
JM the result you want now that
i use phpedit www.phpedit.com i think it's preaty good and also have a
free personal licence
William Stokes wrote:
Hello,
I'm quite new with writing php code. I was considering of using some kind of
php editor program to help with the syntax. Know any goog ones?
Thanks
-Will
--
Paul Marinas,
Hello William,
Thursday, January 13, 2005, 9:02:12 AM, you wrote:
W I'm quite new with writing php code. I was considering of using
W some kind of php editor program to help with the syntax. Know any
W goog ones?
There are a few.
http://www.pspad.com is my favorite, and it'll syntax highlight a
Hello !
CVS becomes more and more necessary when we develop big projects and
developing in a team...
I were learning how to use CVS, but some problems (that maybe i think
it's critical) like cvs dont recognize deleted/added directories/files
let me think about to learn a better version of cvs
Know any goog ones?
funny you should mention goog.. if you google'd php editor youd have
your answer by now..
cheers
phpninja
-Original Message-
From: William Stokes [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 13, 2005 8:02 AM
To: php-general@lists.php.net
Subject: [PHP] php
William Stokes wrote:
Hello,
I'm quite new with writing php code. I was considering of using some kind of
php editor program to help with the syntax. Know any goog ones?
http://www.thelinuxconsultancy.co.uk/phpeditors/
--
John C. Nichel
ÜberGeek
KegWorks.com
716.856.9675
[EMAIL PROTECTED]
--
PHP
On Thu, 2005-01-13 at 10:02, William Stokes wrote:
Hello,
I'm quite new with writing php code. I was considering of using some kind of
php editor program to help with the syntax. Know any goog ones?
These sort of threads are good every now and then I think. Especially
since it has been so
doh, I hit reply again by mistake.
(I'm sure TBird keeps moving the reply-all button when I'm not looking :-)
William Stokes wrote:
Hello,
I'm quite new with writing php code. I was considering of using some
kind of
goog == good? me thinks yes! wonderful little freudian slip (i.e. maybe
On Thu, 2005-01-13 at 18:02 +0200, William Stokes wrote:
Hello,
I'm quite new with writing php code. I was considering of using some kind of
php editor program to help with the syntax. Know any goog ones?
Thanks
-Will
I like Komodo.
Dan.
--
PHP General Mailing List
On Wed, 12 Jan 2005 22:14:35 -0600, John Camp [EMAIL PROTECTED] wrote:
I was able to successfully make a very simple http proxy - turns out the
php documentation has the code for this =] - but now I need a way to
display images. I figured the best way would be to download the images
to a
On Thu, 13 Jan 2005 18:02:12 +0200, William Stokes [EMAIL PROTECTED] wrote:
I'm quite new with writing php code. I was considering of using some kind of
php editor program to help with the syntax. Know any goog ones?
vim.org
editplus.com
Both support PHP syntax highlighting.
--
Greg Donald
John Nichel wrote:
Jochem Maas wrote:
snip
(no disrespect to Zend, but ZCE _sounds_ a lot like MSCE and everyone
knows what thats worth ;-) - just a but of humour guys!)
snip
Oh yeah, I can hear all the Zend people laughing from here.
good cos that means they have a better sense of humour that
John Camp wrote:
I was able to successfully make a very simple http proxy - turns out the
php documentation has the code for this =] - but now I need a way to
display images. I figured the best way would be to download the images
to a temporary folder, then parse the html to point to the images
Hello,
I normally can take a bit of regex fun, but not this time.
Simple enough, in theory... I need to match (count) all of the bold tags
in a string, including ones with embedded styles (or whatever else can
go in there). b and b style=color:red. My attempts keep matching
br as well.
On Thu, 13 Jan 2005, OOzy Pal wrote:
My html templates are encoded using utf-8. When the
browser reads the files as .html it encodes it fine
and my characters looks fine. However, when php reads
the files and sends them to the browser the files
looks ugly and unreadable. How can I force the
Ford, Mike wrote:
snip
Without actually running it (I'm too lazy!), I'm pretty sure this won't work
correctly -- the count($array) is being recalculated each time round the
loop, so each time you do an unset() it will reduce by one, resulting in the
last few elements never being checked.
/snip
Not
OOzy Pal wrote:
Dears,
My html templates are encoded using utf-8. When the
browser reads the files as .html it encodes it fine
and my characters looks fine. However, when php reads
the files and sends them to the browser the files
looks ugly and unreadable. How can I force the broswer
to encode
On Thu, 13 Jan 2005 19:29:36 +0100, Zouari Fourat [EMAIL PROTECTED] wrote:
Hello !
CVS becomes more and more necessary when we develop big projects and
developing in a team...
I were learning how to use CVS, but some problems (that maybe i think
it's critical) like cvs dont recognize
Zouari Fourat wrote:
Hello !
CVS becomes more and more necessary when we develop big projects and
developing in a team...
I were learning how to use CVS, but some problems (that maybe i think
it's critical) like cvs dont recognize deleted/added directories/files
let me think about to learn a
Bret Hughes mailto:[EMAIL PROTECTED]
on Thursday, January 13, 2005 11:02 AM said:
I assume windows by your mailer. html-kit was good when I used
windows on a day to day basis several years ago.
I'll second HTML-Kit. It's an excellent program (once you customize the
way it handles the tab
Howdy all -
I have RTFM and STFW and I still can't get encryption to work. What I
finally ended up with from the PHP documentation is long, unwieldy,
confusing, and doesn't work. I give up. I threw my big mess away and
would like to start from scratch.
Could anyone point me to a web page or
Bret Hughes wrote:
I am interested to hear what other folks are using.
Bret
Since I do Java, Python etc. on OSX/windows/Linux, I'm using Eclipse
with the PHPEclipse (PHPEclipse.de), I'm just starting PHP, but I'm
pretty happy with it so far. One thing I am wondering about is the
situation which
Jason Morehouse wrote:
Hello,
I normally can take a bit of regex fun, but not this time.
Simple enough, in theory... I need to match (count) all of the bold tags
in a string, including ones with embedded styles (or whatever else can
go in there). b and b style=color:red. My attempts keep
i'm usually use Dreamweaver to edit php code
and debug in it
it's very help ones us
why don't u try
HTH
phpninja [EMAIL PROTECTED] wrote:
Know any goog ones?
funny you should mention goog.. if you google'd php editor youd have
your answer by now..
cheers
phpninja
-Original Message-
Greg Donald wrote:
On Thu, 13 Jan 2005 19:29:36 +0100, Zouari Fourat [EMAIL PROTECTED] wrote:
...
I'd go with Subversion. I switched from CVS about 6 months ago and
haven't had any issues.
Greg,
I hardly dare ask, but here goes anyway... do you use a visual client
for subversion? the reason I
Symbulos Partners wrote:
Lester Caine wrote:
Expensive. There are a few postcode management sites that provide
positional data against the post code, but they all cost quite a bit of
money. We are working on a cut down version for key areas, with a rough
entry for the first part for all post
On linux I use thee KDE IDE program...
On Thu, 13 Jan 2005 14:02:17 -0600, Greg Donald [EMAIL PROTECTED] wrote:
On Thu, 13 Jan 2005 18:02:12 +0200, William Stokes [EMAIL PROTECTED] wrote:
I'm quite new with writing php code. I was considering of using some kind of
php editor program to help
Kelly wrote:
Well I think you have the variable problem fixed. Worked like a charm.
But I think I spoke to soon about the mail feature. I cannot get it to
mail a form. Could I have not turned something else on?
There are many things you could have done wrong.
One of them is not correctly
Tom wrote:
I've just started playing with the php5 improved mysqli extensions.
I have the following code:-
?php
$mysqlim = new mysqli(localhost, myUser, myPassword,myDB);
$updateQuery = UPDATE client SET status = 'INACTIVE' WHERE clientName =
'Tom';
if ($mysqli-query($updateQuery))
{
OOzy Pal wrote:
My html templates are encoded using utf-8. When the
browser reads the files as .html it encodes it fine
and my characters looks fine. However, when php reads
the files and sends them to the browser the files
looks ugly and unreadable. How can I force the broswer
to encode the
Does anyone know how to write php libraries in a modular way so that you
can both test the libraries/functions on the command line with arguments
and/or use the php library as a part of your web code with 'require_once()'
syntax? Sort of like how Python or Ruby works?
Thanks,
Cere
--
PHP
From within the application, I use one page to include
classes/variables and so on. Is there a way (I may have been missing it
in the documentation for PHP, however I didnt see anything related) to
prevent a user from directly accessing/executing *.php by the file
making sure taht it was only
Hello Jochem,
Thursday, January 13, 2005, 10:55:35 AM, you wrote:
J heh but who says I'm not a bar steward ;-)
grin I'll take a beer then! I need one after today.
J sorry if it came accross a little harsh, but I stand by the point
J that the onus is on the person asking the question to give an
Hi...
I have an query for mysql that looks like:
SELECT group as type FROM mytable WHERE id =101010
UNION
SELECT individual as type FROM myothertable WHERE id=101010
The strange result if only one result displayed from myothertable, so
the type will become indiv instead of individual.
But when I
68 matches
Mail list logo