php-general Digest 22 Jun 2004 14:27:08 -0000 Issue 2836
Topics (messages 188785 through 188813):
Re: opening Adobe pdf's
188785 by: Curt Zirzow
Re: recompile your PHP installation with --with-mysql optio
188786 by: FrzzMan
Re: recompile your PHP installation with --with-mysql optio n
188787 by: Curt Zirzow
188809 by: Nguyen, Long P (Mission Systems)
Re: umm i am confused...
188788 by: Curt Zirzow
Sorting a large text string alphabetically
188789 by: Andre Dubuc
188791 by: Greg Donald
188794 by: Curt Zirzow
Re: cookie question
188790 by: Curt Zirzow
Re: Why is PHP Segmentation Faulting?!?!?!?
188792 by: Curt Zirzow
Re: Testing if cookies are enabled
188793 by: Curt Zirzow
188799 by: deseavers.mindspring.com
188804 by: Umesh Deshmukh
Re: MySql Close problem
188795 by: Curt Zirzow
Please Send MIME Script
188796 by: Ryan Schefke
188797 by: Manuel Lemos
188798 by: Justin Patrin
188803 by: pete M
Session problem
188800 by: Info.Best-IT
188801 by: Nadim Attari
Re: Server Push
188802 by: Nadim Attari
DSOFile issues
188805 by: Marcel Tschopp
Encryption Question
188806 by: Jay Blanchard
Help!
188807 by: Marifel Dizon
Firebird "reading data" error...
188808 by: Andr� Cupini
I don't want to use include
188810 by: QT
188811 by: Egil Berntsen
188812 by: Matt Matijevich
error with PHP MySQL extension
188813 by: Nguyen, Long P (Mission Systems)
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
[EMAIL PROTECTED]
----------------------------------------------------------------------
--- Begin Message ---
* Thus wrote Scott Taylor:
>
> It opened Adobe, then an
> Adobe Reader window opened that stated "There was an error opening this
> document. This file cannot be found."
>
> So that must mean that the streamfile($file) function (see below) did not
> return false, otherwise the message would have been "file was not found.
> please send [EMAIL PROTECTED]"
>
> Does someone know what's going on here? Since I am not experincing this
> problem first handed, I really have no clue. Also, shouldn't this person
> get prompted if he wants to save it or open it with Adobe Acrobat?
For the first part, basically, IE thinks it shouldn't cache the
file so by the time adobe gets it there isn't a file for it to use.
As for the second question, you have absolutly no control on what
application will open with what ever mime type is sent. I've seen
people that had their browser set to try and execute html documents :)
To fix your problem add this before you start your session:
session_cache_limiter('private'); /* more below... */
>
> session_name("miningstocks_subscribers");
> session_set_cookie_params(TIMEOUT_SUBSCRIBERS);
> session_start();
>
> ...
>
> header("Content-Type: " . $type);
> header("Accept-Ranges: bytes");
Becareful sending this header. The client can get confused and
send special headers requesting a partial file, while also
expecting different results than the whole file.
> header("Content-Length: ".filesize($file));
> header("Content-Disposition: attachment;
> filename=".basename($file).";");
> //readfile($file);
> $fp = fopen($file, 'rb');
> $buffer = fread($fp, filesize($file));
You'll be much better off if you use fpassthru here. This fread
could kill you're machine's memory.
Curt
--
First, let me assure you that this is not one of those shady pyramid schemes
you've been hearing about. No, sir. Our model is the trapezoid!
--- End Message ---
--- Begin Message ---
Why did you set the dir to /usr/local/sql???
Did you have mysql there??? It's not the normal installation dir of mysql...
Long P Nguyen wrote:
I recompiled PHP with --with-mysql=/usr/local/sql and still got the following errors:
Checking PHP configuration settings
PHP version... success [4.2.2]
DOMXML extension... success [2.4.23]
MySQL extension failure [required-extension not installed]
recompile your PHP installation with --with-mysql option
-----Original Message-----
From: John Nichel [mailto:[EMAIL PROTECTED]
Sent: Monday, June 21, 2004 1:58 PM
To: php-general Mailing List
Subject: Re: [PHP] recompile your PHP installation with --with-mysql
option
Nguyen, Long P (Mission Systems) wrote:
How do you recompile your PHP installation with --with-mysql option??
In the PHP source tree....
$ ./configure --with-mysql[=dir] --with-other-options
$ make
$ make install
I'm sure this will bring a few questions. ;)
--- End Message ---
--- Begin Message ---
* Thus wrote Nguyen, Long P (Mission Systems):
> I recompiled PHP with --with-mysql=/usr/local/sql and still got the following errors:
>
> Checking PHP configuration settings
>
> PHP version... success [4.2.2]
> DOMXML extension... success [2.4.23]
> MySQL extension failure [required-extension not installed]
>
Um.. how exactly are you doing this, this isn't php configure
output.
>
>
> -----Original Message-----
> From: John Nichel [mailto:[EMAIL PROTECTED]
>
> ...
>
> Nguyen, Long P (Mission Systems) wrote:
> > How do you recompile your PHP installation with --with-mysql option??
> >
>
> In the PHP source tree....
>
> $ ./configure --with-mysql[=dir] --with-other-options
> $ make
> $ make install
>
> I'm sure this will bring a few questions. ;)
You jinxed your own message ;)
Curt
--
First, let me assure you that this is not one of those shady pyramid schemes
you've been hearing about. No, sir. Our model is the trapezoid!
--- End Message ---
--- Begin Message ---
I'm trying to setup DRES, part of the configuration is to bring up "check.php" to
verify the installation. When check.php runs to verify - it errors out at "MySQL
extension failure [required-extension not installed]"
-----Original Message-----
From: Curt Zirzow [mailto:[EMAIL PROTECTED]
Sent: Monday, June 21, 2004 10:56 PM
To: php-general Mailing List
Subject: Re: [PHP] recompile your PHP installation with --with-mysql
optio n
* Thus wrote Nguyen, Long P (Mission Systems):
> I recompiled PHP with --with-mysql=/usr/local/sql and still got the following errors:
>
> Checking PHP configuration settings
>
> PHP version... success [4.2.2]
> DOMXML extension... success [2.4.23]
> MySQL extension failure [required-extension not installed]
>
Um.. how exactly are you doing this, this isn't php configure
output.
>
>
> -----Original Message-----
> From: John Nichel [mailto:[EMAIL PROTECTED]
>
> ...
>
> Nguyen, Long P (Mission Systems) wrote:
> > How do you recompile your PHP installation with --with-mysql option??
> >
>
> In the PHP source tree....
>
> $ ./configure --with-mysql[=dir] --with-other-options
> $ make
> $ make install
>
> I'm sure this will bring a few questions. ;)
You jinxed your own message ;)
Curt
--
First, let me assure you that this is not one of those shady pyramid schemes
you've been hearing about. No, sir. Our model is the trapezoid!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
* Thus wrote water_foul:
> i get the following error
> ----------------------------
> Parse error: parse error, unexpected T_STRING in
> C:\Inetpub\localroot\aichlmayr.net\sites\aaron\module\personal\links.php on
> line 21
I get parse error on line 4.. but then again I'm smarter than php's
parser.
> ----------------------------------
> for the following code and i cant figure out why (you may need to maxamise
> to read it right)
> --------------------------------------------
> <?php
> //the function for adding new addresses
> function loop_new_address($loopnum,$url,$name){
> //the ${'link' . $loopnum} says put $link and add $loopnum to the end
> if(isset(${'link' . $loopnum . '})){
extra quote, but I think you already found it.
For readability you might want to consider using a variable
variable:
$linkloop = 'link' . $loopnum;
if (isset($$linkloop)) {
...
> loop_new_adderss($loopnum+1,$url,$name);
> };
> else{
> setcookie("link" . $loopnum . "",$url,time()+3600*200);
If you're going to use double quotes might as put the variable
inside of them. but then again, with the readability fix above
you simpley have to do:
setcookie($linkloop, $url, time()+3600*200);
btw, it doesn't make much sense to have hard coded math, better off
just specifying the number and comment it:
time()+720000; // +200 hours
> print(<a href=$url>$name</a> was added);
This line, as well as others below, is absolutly illegal in php.
You must use quotes around strings! double quotes if variables
exist inside, single quotes if not.
> };
> if(isset($_GET[new])) {
> loop_new_address(1,$_GET[name],$_GET[url]);
Be sure to use $_GET['new']; // note the quotes
You're entering the another recursive loop, this is always
dangerous to have these thing dangling around everywhere :)
> ... <the reset clipped>
I see you are setting a lot of cookies, you might want to take a
look at (And be sure to read the part about limitations):
http://wp.netscape.com/newsref/std/cookie_spec.html
HTH your future programming :)
Curt
--
First, let me assure you that this is not one of those shady pyramid schemes
you've been hearing about. No, sir. Our model is the trapezoid!
--- End Message ---
--- Begin Message ---
I'm trying to sort alphabetically a large text string filled with first and
last names separated by ", " That would seem to be a simple task, but
sort($txt) does not seem to work even when $txt is an array.
The code :
<?php
$OK= "Joe Blow, Sam Hill, Henry Forget, etc, etc";
$_SESSION['txt'] = "$OK";
session_write_close();
$txt = $_SESSION['txt'];
$names = explode(", ", $txt);
foreach($names as $key => $names){
sort($names); //line 235
reset($names); // line 236
while (list($key, $val) = each($names)) { //line 237
}
}
$sorted = implode(", ", $names);
return($sorted);
?>
I assumed this would work, but I get error messages (for every value in the
txt array) stating that '$txt' is not an array -- even though it shows up as
Array(Joe Blow, Sam Hill, Henry Forget, etc, etc). I'm totally confused here.
As you may gather, arrays are not one of my 'strong' points :>
Warning: sort() expects parameter 1 to be array, string given in
/var/www/html/list.php on line 235
Warning: reset() [function.reset]: Passed variable is not an array or object
in /var/www/html/list.php on line 236
Warning: Variable passed to each() is not an array or object in
/var/www/html/list.php on line 237
What am I doing wrong?
Any help greatly appreciated,
Tia,
Andre
--- End Message ---
--- Begin Message ---
On Mon, 21 Jun 2004 23:19:58 -0400, Andre Dubuc <[EMAIL PROTECTED]> wrote:
>
> I'm trying to sort alphabetically a large text string filled with first and
> last names separated by ", " That would seem to be a simple task, but
> sort($txt) does not seem to work even when $txt is an array.
>
> The code :
>
> <?php
>
> $OK= "Joe Blow, Sam Hill, Henry Forget, etc, etc";
>
> $_SESSION['txt'] = "$OK";
> session_write_close();
> $txt = $_SESSION['txt'];
>
> $names = explode(", ", $txt);
> foreach($names as $key => $names){
>
> sort($names); //line 235
> reset($names); // line 236
> while (list($key, $val) = each($names)) { //line 237
> }
> }
>
> $sorted = implode(", ", $names);
> return($sorted);
>
> ?>
>
> I assumed this would work, but I get error messages (for every value in the
> txt array) stating that '$txt' is not an array -- even though it shows up as
> Array(Joe Blow, Sam Hill, Henry Forget, etc, etc). I'm totally confused here.
> As you may gather, arrays are not one of my 'strong' points :>
>
> Warning: sort() expects parameter 1 to be array, string given in
> /var/www/html/list.php on line 235
>
> Warning: reset() [function.reset]: Passed variable is not an array or object
> in /var/www/html/list.php on line 236
>
> Warning: Variable passed to each() is not an array or object in
> /var/www/html/list.php on line 237
>
> What am I doing wrong?
foreach($names as $key => $names){
You are reusing the same variable, $names is being overwritten.
--
Greg Donald
http://destiney.com/
--- End Message ---
--- Begin Message ---
* Thus wrote Andre Dubuc:
> I'm trying to sort alphabetically a large text string filled with first and
> last names separated by ", " That would seem to be a simple task, but
> sort($txt) does not seem to work even when $txt is an array.
>
> The code :
>
> <?php
>
> $OK= "Joe Blow, Sam Hill, Henry Forget, etc, etc";
>
> $_SESSION['txt'] = "$OK";
> session_write_close();
Are you really wanting to do this? this is a lot of overhead.
> $txt = $_SESSION['txt'];
>
>
> $names = explode(", ", $txt);
> foreach($names as $key => $names){
>
> sort($names); //line 235
> reset($names); // line 236
> while (list($key, $val) = each($names)) { //line 237
> }
> }
>
> $sorted = implode(", ", $names);
> return($sorted);
Now for the real issue... I'm not sure what all the foreach and
while loops are for but to simply sort your list you need two lines:
$sorted = explode(", ", $txt); // actually is $tosort
sort($sorted); // but its sorted now.
Curt
--
First, let me assure you that this is not one of those shady pyramid schemes
you've been hearing about. No, sir. Our model is the trapezoid!
--- End Message ---
--- Begin Message ---
* Thus wrote water_foul:
> i figured it out ty
What did you figure out? People searching the archives would like
to know :)
> ...
> > > > > > On Sat, 19 Jun 2004 15:51:00 -0600, water_foul
> > > > > > <[EMAIL PROTECTED]> wrote:
> > > > > > >
> > > > > > > whats wrong with this script
> > > > > > > setcookie('link' . $loopnum . '',$url,time()+3600*200);
> > > > > > > setcookie('name' . $loopnum . '',$name,time()+3600*200);
> > > > > > > it doesn't write the cookies
> > > > > > >
Curt
--
First, let me assure you that this is not one of those shady pyramid schemes
you've been hearing about. No, sir. Our model is the trapezoid!
--- End Message ---
--- Begin Message ---
* Thus wrote Jeff:
> Hey all....
>
> Total PHP newbie here. I posted a day ago about php working
> 'intermittently'. I was told to check my apache logs which was a good hint
> cause php is seg faulting. I've broken it down to my connection script to my
> database and I ran it in gdb to see if it would tell me anything. Since I am
> linux-tarded I don't have any clue what the problem is.
well, you're not that l-tarded if you know how to obtain a
backtrace :)
There are a lot of variables that are contributing to this
behaviour.
1. You're OS and Version
2. Mysql Version
3. PHP version.
> Here is the backtrace!!!!
>
> (gdb) bt
> #0 0x4207492e in _int_free () from /lib/tls/libc.so.6
> #1 0x42073908 in free () from /lib/tls/libc.so.6
> #2 0x0812b20d in _efree ()
> #3 0x40962a35 in _close_mysql_link (rsrc=0x0)
> at /usr/src/redhat/BUILD/php-4.2.2/ext/mysql/php_mysql.c:253
This answers 1 and 2.
and by the version of php your using, which happens to be almost 2
years old, You've probably have redhat 3.x installed.
So, at this point I can only tell you to upgrade you're php. But.. if
you installed mysql with an rpm you'll probably want to upgrade
mysql as well.
now how to do that.. is a whole nother ball park, iirc, that has
been answered recently on the list.
Curt
--
First, let me assure you that this is not one of those shady pyramid schemes
you've been hearing about. No, sir. Our model is the trapezoid!
--- End Message ---
--- Begin Message ---
* Thus wrote Martin Schneider:
>
> But I have seen pages on which it seems they set und check if the cookie
> has been set ON THE SAME PAGE. So I want to know how they do that
> (perhaps with a 302-header or something like that?).
I think you answered you're own question :)
if(! isset($_COOKIE['var']) ) {
setcookie(...);
header('Location: this_same_script.php');
} else {
...
}
while technically not the same page, it just appears that way to
the client.
Curt
--
First, let me assure you that this is not one of those shady pyramid schemes
you've been hearing about. No, sir. Our model is the trapezoid!
--- End Message ---
--- Begin Message ---
Reading Aidan's e-mails is like watching a Disney movie. You can't help but feel warm
and fuzzy inside and loving toward the whole world.
Basically, create a page with an HTML form that takes the user name and password (or
whatever login information you think is appropriate). The action of the form could be
the next page, which sets the cookie. However, if you just want to have personalized
data based on the login, you have some other options, such as sessions and, even
better in my opinion, accessing records in a database.
Aidan, in his loving way, pointed you to a good starting point for setting cookies: if
you haven't read the manual, it migh be helpful.
-----Original Message-----
From: Aidan Lister <[EMAIL PROTECTED]>
Sent: Jun 21, 2004 5:25 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Re: Testing if cookies are enabled
Think about it.
Step 1) Analyse the problem.
a) Set a cookie.
b) Test if the cookie has been set.
c) Display data from cookie
Step 2) Read the fucking manual
a) http://php.net/setcookie
b) http://php.net/setcookie
c) http://php.net/setcookie
If you can't work it out, and have actually done some reading, feel free to
ask for some more help.
"Martin Schneider" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hello!
>
> I saw this on some pages and want to do the same:
>
> - On one page the user can login. Before that no cookie is set!
>
> - On the next page they set the cookie and show either the user data or
> a warning that the user has disabled cookies and should enable them.
>
> I wasn't able to set and text a cookie on the same page! How is it done?
>
> Martin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
Hi,
You can check if browser cookies are enabled or not by using follow. given
JavaScript functions.
//****** jsfunc.js *******//
function f_ReadCookie(cookieName)
{
if (cookieName == "" )
{
return;
}
var theCookie=""+document.cookie+(("/") ? "; path=" + "/" : "") ;
var ind=theCookie.indexOf(cookieName);
if (ind==-1 || cookieName=="") return "";
var ind1=theCookie.indexOf(';',ind);
if (ind1==-1) ind1=theCookie.length;
return unescape(theCookie.substring(ind+cookieName.length+1,ind1));
/**** read cookie ****/
/***** Cookie Check function call ****/
f_WriteCookie("ckTmp","Y"); // write temp. cookie
sVal = f_ReadCookie("ckTmp"); // read this value again
if (sVal != "Y")
{
return false;
}
return true;
}
function f_WriteCookie(name, value)
{
if (name == "")
{
return false;
}
if (value != null)
{
var curCookie = name + "=" + escape(value) + (("/") ? "; path=" + "/" :
"") //+
document.cookie = curCookie;
}
}// write cookie
function f_CheckBrowserCookie()
{
// Cookie Check function call
f_WriteCookie("ckTmp","Y"); // write temp. cookie
sVal = f_ReadCookie("ckTmp"); // read this value again<br>
if (sVal != "Y")
{
return false;
}
return true;
}
//****************** Use follow. given function in Onload of Body of HTML file of
Login page ***************************//
<SCRIPT language="JavaScript">
function CheckBrowserCookie()
{
if(!f_CheckBrowserCookie())
alert('Browser cookies are disabled.Please enable them.');
}
</SCRIPT>
// *********** in onload call it as below **********//
<body bgcolor="#C7D1F1" leftmargin="0" marginheight="0" marginwidth="0" topmargin="0"
onLoad="CheckBrowserCookie();">
With these functions you will be able to check if the cookies are enabled or disabled.
Regards,
Umesh.
--- End Message ---
--- Begin Message ---
* Thus wrote Erik Gjertsen:
> I have problem with mysql_close
> I dont understand why.
> Are ther someone that have any proposal?
>
> ...
>
>
> $query = "SELECT usrid FROM users WHERE username";
> $result = @mysql_query ($query); //Run the query
>
> ...
>
> }
> mysql_close();
<stab dark="true">
perhaps because you didn't open a connection?
<trim>Endless questions</trim>
</stab>
Curt
--
First, let me assure you that this is not one of those shady pyramid schemes
you've been hearing about. No, sir. Our model is the trapezoid!
--- End Message ---
--- Begin Message ---
Could someone please send me a function for MIME mail. I've been searching
for the past 3 hours and haven't come across anything that is solid and
works for me. I need the following:
1 - send MULTIPLE attachments
2 - send message in html and text.
Thanks,
Ryan
--- End Message ---
--- Begin Message ---
Hello,
On 06/22/2004 03:14 AM, Ryan Schefke wrote:
Could someone please send me a function for MIME mail. I've been searching
for the past 3 hours and haven't come across anything that is solid and
works for me. I need the following:
1 - send MULTIPLE attachments
2 - send message in html and text.
You may achieve that using this class. It comes with examples for doing
exactly what you ask.
http://www.phpclasses.org/mimemessage
--
Regards,
Manuel Lemos
PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/
PHP Reviews - Reviews of PHP books and other products
http://www.phpclasses.org/reviews/
Metastorage - Data object relational mapping layer generator
http://www.meta-language.net/metastorage.html
--- End Message ---
--- Begin Message ---
Ryan Schefke wrote:
Could someone please send me a function for MIME mail. I've been searching
for the past 3 hours and haven't come across anything that is solid and
works for me. I need the following:
1 - send MULTIPLE attachments
2 - send message in html and text.
Thanks,
Ryan
http://pear.php.net/package/Mail_MIME
--
paperCrane <Justin Patrin>
--- End Message ---
--- Begin Message ---
http://phpmailer.sourceforge.net/
Ryan Schefke wrote:
Could someone please send me a function for MIME mail. I've been searching
for the past 3 hours and haven't come across anything that is solid and
works for me. I need the following:
1 - send MULTIPLE attachments
2 - send message in html and text.
Thanks,
Ryan
--- End Message ---
--- Begin Message ---
I have a problem with sessions. If someone closes their internet explorer
window without logging off the session remains open. When you try to go
back to the site IE hangs until I manually remove the sess_xxxx files from
the /tmp directory. Any insights on this one??
VR/Tim
--- End Message ---
--- Begin Message ---
> I have a problem with sessions. If someone closes their internet explorer
> window without logging off the session remains open. When you try to go
> back to the site IE hangs until I manually remove the sess_xxxx files from
> the /tmp directory. Any insights on this one??
>
> VR/Tim
http://www.php.net/setcookie
(find 'expire' in this manual)
--- End Message ---
--- Begin Message ---
> I am just looking for some different techniques on how server push is
> done on PHP:
http://www.craftysyntax.com/CSLH/
Download, have a look at the codes and enjoy...
~ nadim attari
--- End Message ---
--- Begin Message ---
Hi everybody,
I need to get the Office Document Properties from MSWord-files and i
found DSOFile for COM:
http://support.microsoft.com/support/kb/articles/Q224/3/51.asp
But now the problem is, that the COM Object don't releases the file
lock. Here is the code I use:
<?php
$propReader = new COM('DSOleFile.PropertyReader');
$info = pathinfo(__FILE__);
$docProps = $propReader->getDocumentProperties($info['dirname'] . '/Dok0.doc');
$custProps = $docProps->customProperties;
while($elem = $custProps->next()) {
echo $elem->Name . ': ' . $elem->Value . '<br>';
}
unset($custProps);
unset($docProps);
unset($propReader);
?>
I don't find anything online about that problem... Does anyone have
experience with DSOFile?
Thanks in advance,
Marcel Tschopp
--- End Message ---
--- Begin Message ---
Good morning gurus!
I am encrypting some data on one server and now I am attempting to decrypt on another
server using mcrypt_encrypt and mycrypt_decrypt (using same key and initialzation
vector). It is almost working but I seem to still have a little problem, that data is
missing the last character which still seems to be encrypted. I am putting the data in
the database with addslashes, and retrieving with stripslashes, but I get things like
this;
45221141��,]�9�
77777775��Z|z
while($arrEncInfo = mysql_fetch_array($dbGetSub)){
$stripDataA = stripslashes($arrEncInfo['dataA']);
$stripIV = stripslashes($arrEncInfo['iv']);
$dataA = mcrypt_decrypt($encAlg, $encKey, $stripDataA, $encMode, $stripIV);
echo $dataA . "\n";
}
Has anyone seen this? Could there be a difference between the PHP installs? Both are
version 4.3.7.
Thanks!
Jay
--- End Message ---
--- Begin Message ---
Hello there! I badly need help in my codes. My OS is Linux Suse 8.0, apache ver
1.3.31 and PHP 4.X. There was a notice that the printer functions may only be used in
Windows environment... How about in Linux environment? What's their difference? Is
there any other way i can use the printer functions in linux?
HELP!
---------------------------------
Yahoo! Messenger - Communicate instantly..."Ping" your friends today! Download
Messenger Now
--- End Message ---
--- Begin Message ---
Hi people,
...first, sorry my poor english ;)
I have a system that
access firebird database in a remote machine. In development, works fine
(with Firebird 1.0). But now, the database location is a real machine where the
system are put up (with Firebird 1.5) and when i realize a query, in the
functions ibase_fetch_*, i have a strange problem (maybe a bug?). When in
return, are more then 2 result of "double precision" type, i get the
following errors:
ibase_fetch_object(): Error
reading data from the connection. (In the ibase_fetch_object
line)
And in the bottom of page (in last line of
of code): Warning: Unknown():
Error reading data from the connection. in Unknown on line 0 (I n ever
see nothing like this... unknown??? line
0????)
When i switch the servers, the code works fine again.
Anybody can help-me?
Thanks
|
Andr� Cupini Programador
[EMAIL PROTECTED] UIN# 149947291 |
| |
Rua
Prof. Jos� Ranieri, 9-40 CEP 17012-260 Bauru/SP Fone/Fax:
(14)3234-6898 |
Rua
Ab�lio Soares, 233 Cj 32 CEP 04005-000 Para�so, S�o
Paulo/SP Fone/Fax: (11)
3057-1883 | |
| ... |
A recent study has found that
concentrating on difficult off-screen objects, such as the faces of
loved ones, causes eye strain in computer scientists. Researchers into
the phenomenon cite the added concentration needed to "make sense" of
such unnatural three dimensional objects
...
|
|
--- End Message ---
--- Begin Message ---
Dear Sirs,
When I use include, my script is waiting included script results. But I just
want to run another local script without wait result.
Which command I should to use?
Best Regards
--- End Message ---
--- Begin Message ---
I sometimes use JS to open a new window outside the screen and close it at
the bottom.
"Qt" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Dear Sirs,
>
> When I use include, my script is waiting included script results. But I
just
> want to run another local script without wait result.
>
> Which command I should to use?
>
>
> Best Regards
--- End Message ---
--- Begin Message ---
[snip]
When I use include, my script is waiting included script results. But I
just
want to run another local script without wait result.
[/snip]
you could try something like this
$cmd =/path/to/php.exe . ' ' . /path/to/your/script
exec($cmd);
check out http://www.php.net/manual/en/function.exec.php , there is
some useful user comments
--- End Message ---
--- Begin Message ---
This is where I am stuck at with this DRES installation, it's complaining about the
mysql extension. I tried ./configure --with-mysql=/usr/local/mysql; make; make
install and still the same error:
--------------------------------------------------------------------------------
Checking PHP configuration settings
PHP version... success [4.2.2]
DOMXML extension... success [2.4.23]
MySQL extension failure [required-extension not installed]
recompile your PHP installation with --with-mysql option
--------------------------------------------------------------------------------
--- End Message ---