Re: [PHP] What happened with zend engine version 2?

2002-12-25 Thread Erik Franzén
You don't need to answer my questions. Found almost all answers myself (Yes,
I was "triggerhappy" to post my questions here before I looked for the
answers...)

I have one question though, in which status are Zend Engine 2 in? I mean,
have you already taken the major decisions about (for an example) private
members?

"Erik FranzéN" <[EMAIL PROTECTED]> skrev i meddelandet
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> After I posted the first message, I read something about PHP 5 at
> www.zend.com and suspected that is was about the new Zend Engine.
> I must have missed it totally! I was planning to code on a new website
> during my christmas holiday and now that chance is gone because the
> functionality in the new Zend Enginge is exactly what I miss.
>
> I also read on Zend.com that there are some decisions to make about some
> major changes i.e private members variables or not.
>
> I guess I have to switch to Linux and get a CVS-copy for PHP 5, if it
> exists? Maybe a Win32-binary? Does it exist and if it exists, what status
> does it have? Can you write code that will work when the final version is
> finished with minor changes, or are major changes on the agenda?
>
> And secondly, I have to face the fact that I cannot get the Zend Engine
> version 2 in a runtime environment for at least 6 month.
> You can be sure that I'm longing for it... :)
>
> "Rasmus Lerdorf" <[EMAIL PROTECTED]> skrev i meddelandet
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > That was never the plan.  It is scheduled for PHP 5 sometime in the next
> > 6-12 months.
> >
> > -Rasmus
> >
> > On Tue, 24 Dec 2002, Erik Franzén wrote:
> >
> > > I believed that PHP V4.3 should include the Zend engine version 2
since
> > > there was two alpha releases for PHP-4.3.0 with  Zend engine version 2
> > >
> > > -PHP-4.3.0-dev-zend2-win32-alpha1
> > > -PHP-4.3.0-dev-zend2-win32-alpha2
> > >
> > > I'm waiting for Zend engine version 2. Where could I read information
> about
> > > future releases?
> > >
> > > I think the Zend engine version 2 provides much better coding
facilities
> so
> > > I would preciate if anybody could answer my questions.
> > >
> > > Thanks
> > >
> > > /Erik
> > >
> > >
> > >
> > > --
> > > PHP General Mailing List (http://www.php.net/)
> > > To unsubscribe, visit: http://www.php.net/unsub.php
> > >
> >
>
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




php-general Digest 25 Dec 2002 08:26:00 -0000 Issue 1783

2002-12-25 Thread php-general-digest-help

php-general Digest 25 Dec 2002 08:26:00 - Issue 1783

Topics (messages 129295 through 129316):

What happened with zend engine version 2?
129295 by: Erik Franzén
129299 by: Rasmus Lerdorf
129308 by: Erik Franzén
129316 by: Erik Franzén

Re: Problem with Include
129296 by: Rick Widmer
129297 by: Tom Woody
129300 by: Philip Olson

Re: forum?
129298 by: Philip Olson

Re: Creating my own External Module for PHP
129301 by: Rasmus Lerdorf
129309 by: Leon Mergen

extracting text
129302 by: Clivus2k1.aol.com
129305 by: John W. Holmes

objects within arrays
129303 by: Beth Gore
129304 by: Andrew Brampton
129307 by: Beth Gore

exif functions
129306 by: Dade Register
129312 by: Jason Sheets

upload_max_filesize hack
129310 by: electroteque
129311 by: electroteque

Greetings
129313 by: Joseph Ross Lee
129314 by: Andy Turegano

Problem with comma in mail form
129315 by: Ben Edwards

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 ---
I believed that PHP V4.3 should include the Zend engine version 2 since
there was two alpha releases for PHP-4.3.0 with  Zend engine version 2

-PHP-4.3.0-dev-zend2-win32-alpha1
-PHP-4.3.0-dev-zend2-win32-alpha2

I'm waiting for Zend engine version 2. Where could I read information about
future releases?

I think the Zend engine version 2 provides much better coding facilities so
I would preciate if anybody could answer my questions.

Thanks

/Erik



--- End Message ---
--- Begin Message ---
That was never the plan.  It is scheduled for PHP 5 sometime in the next
6-12 months.

-Rasmus

On Tue, 24 Dec 2002, Erik Franzén wrote:

> I believed that PHP V4.3 should include the Zend engine version 2 since
> there was two alpha releases for PHP-4.3.0 with  Zend engine version 2
>
> -PHP-4.3.0-dev-zend2-win32-alpha1
> -PHP-4.3.0-dev-zend2-win32-alpha2
>
> I'm waiting for Zend engine version 2. Where could I read information about
> future releases?
>
> I think the Zend engine version 2 provides much better coding facilities so
> I would preciate if anybody could answer my questions.
>
> Thanks
>
> /Erik
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>


--- End Message ---
--- Begin Message ---
After I posted the first message, I read something about PHP 5 at
www.zend.com and suspected that is was about the new Zend Engine.
I must have missed it totally! I was planning to code on a new website
during my christmas holiday and now that chance is gone because the
functionality in the new Zend Enginge is exactly what I miss.

I also read on Zend.com that there are some decisions to make about some
major changes i.e private members variables or not.

I guess I have to switch to Linux and get a CVS-copy for PHP 5, if it
exists? Maybe a Win32-binary? Does it exist and if it exists, what status
does it have? Can you write code that will work when the final version is
finished with minor changes, or are major changes on the agenda?

And secondly, I have to face the fact that I cannot get the Zend Engine
version 2 in a runtime environment for at least 6 month.
You can be sure that I'm longing for it... :)

"Rasmus Lerdorf" <[EMAIL PROTECTED]> skrev i meddelandet
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> That was never the plan.  It is scheduled for PHP 5 sometime in the next
> 6-12 months.
>
> -Rasmus
>
> On Tue, 24 Dec 2002, Erik Franzén wrote:
>
> > I believed that PHP V4.3 should include the Zend engine version 2 since
> > there was two alpha releases for PHP-4.3.0 with  Zend engine version 2
> >
> > -PHP-4.3.0-dev-zend2-win32-alpha1
> > -PHP-4.3.0-dev-zend2-win32-alpha2
> >
> > I'm waiting for Zend engine version 2. Where could I read information
about
> > future releases?
> >
> > I think the Zend engine version 2 provides much better coding facilities
so
> > I would preciate if anybody could answer my questions.
> >
> > Thanks
> >
> > /Erik
> >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
>



--- End Message ---
--- Begin Message ---
You don't need to answer my questions. Found almost all answers myself (Yes,
I was "triggerhappy" to post my questions here before I looked for the
answers...)

I have one question though, in which status are Zend Engine 2 in? I mean,
have you already taken the major decisions about (for an example) private
members?

"Erik FranzéN" <[EMAIL PROTECTED]> skrev i meddelandet
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> After I posted the first message, I read something about PHP 5 at
> www.zend.com and su

Re: [PHP] Problem with Include

2002-12-25 Thread sport4ever
Thanks to all whom answered me

while there is no solution for my problem (including more than one PHP file
in a HTML page through SSI) :(
I want to return to my server old configuration, It was:
RedHat Linux 7.3
Apach 1.3
PHP 4.0.1
except PHP, because I have encountered some problems with PHP 4.0.1,
and please tell me what I (exactly) suppose to reinstall (Linux,Apache or
PHP)...

Is there any way to undo my upgrade ( what I call downgrade :-) )?
thanx anyway
__
http://www.sport4ever.net
Administrator of Sport4ever.Net
[EMAIL PROTECTED]

- Original Message -
From: "sport4ever" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: "Tom Ray" <[EMAIL PROTECTED]>
Sent: Tuesday, December 24, 2002 8:04 AM
Subject: Re: [PHP] Problem with Include


> It's PHP problem because I can include any number of files with other
> extensions. only PHP which I can not include more than one file at a
page...
>
> maybe there is something wrong with php.ini
> notice that I faced with this problem just after I upgraded to (PHP
4.2.1),
> (Apache2), everything was great before!
>
> >
> > sport4ever wrote:
> >
> >Hello,
> >my problem is that I can't use more than one SSI INCLUDE in a page
> >
> >Please access this test page to check the problem yourself:
> >http://www.sport4ever.com/test/hello.shtml
> >
> >The first INCLUDE will appear correctly and prints "HELLO World, include
#1" which is the output of "hello.php"
> >
> >Whereas the second INCLUDE won't appear, and instead, it will print the
content (code) of "hello2.php", which is the follwoing:
> >
> >
> >So, it always executes the first include statement perfectly, and doesn't
> execute the rest!
> >
> >note: the problem appears only if I include a PHP file, it will execute
> it correctly if it's a SHTML or HTML file.
> >
> >PLEASE is there any solution for this strange problem!
> >
> >
> >
> >
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Writing byte 0A to a file (LF / CR related)

2002-12-25 Thread BBun
Hey,

I am trying to write some binary data (image) to a file, but using fputs,
every 0A byte will be written as 0D 0A. This is because of the windows
representation of a new line (\r\n), but I'm not writing a text file! I'm
writing binary data! Does anyone know how I can make this work correctly?

Thanks




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Writing byte 0A to a file (LF / CR related)

2002-12-25 Thread BBun
Hey,

I am trying to write some binary data (image) to a file, but using fputs,
every 0A byte will be written as 0D 0A. This is because of the windows
representation of a new line (\r\n), but I'm not writing a text file! I'm
writing binary data! Does anyone know how I can make this work correctly?

Thanks



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Re: Writing byte 0A to a file (LF / CR related)

2002-12-25 Thread Thomas Seifert
from the manual:

Note:  On systems which differentiate between binary and text files (i.e. Windows) the 
file must be opened with 'b' included in fopen() mode parameter.



Thomas

On Wed, 25 Dec 2002 11:43:13 +0100 [EMAIL PROTECTED] (Bbun) wrote:

> Hey,
> 
> I am trying to write some binary data (image) to a file, but using fputs,
> every 0A byte will be written as 0D 0A. This is because of the windows
> representation of a new line (\r\n), but I'm not writing a text file! I'm
> writing binary data! Does anyone know how I can make this work correctly?
> 
> Thanks
> 
> 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] CVS download

2002-12-25 Thread Bc. Radek Krejča
Hello,
I want to download PHP from CVS and a wrote this command (from
manual):

cvs -d :pserver:[EMAIL PROTECTED]:/repository co -r PHP_4_2_3 php4

But I got this message:

cvs [server aborted]: no such tag PHP_4_2_3

Where is problem?
Thanks Radek



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] How To Get Last Item Of An Array?

2002-12-25 Thread @ Nilaab
Hello Everyone,

I have an multi-dimensional array called $cat_data, which is info extracted
from a MySQL DB. I want to retrieve the very last item of that array. How
would I do that? I know the first item can be retrieved by simply asking for
$cat_data[0][0], which contains an id number. But I can't figure out how to
get the last item in that same array -- $cat_data[x][0] where x is the last
item in the array.

P.S. - I read the section on Arrays at php.net, but unfortunately I didn't
find my answer there. I also checked my PHP books, no mention of my problems
there either.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] How To Get Last Item Of An Array?

2002-12-25 Thread Chris Wesley
On Wed, 25 Dec 2002, @ Nilaab wrote:

> I have an multi-dimensional array called $cat_data, which is info extracted
> from a MySQL DB. I want to retrieve the very last item of that array. How
> would I do that? I know the first item can be retrieved by simply asking for
> $cat_data[0][0], which contains an id number. But I can't figure out how to
> get the last item in that same array -- $cat_data[x][0] where x is the last
> item in the array.

Naturally, the index of last item of an array is one less than the total
number of elements in the array.

$num_elements = count( $cat_data );
$last_element = $cat_data[$num_elements-1][0];
// 0 being what you were seeking

Cheers!
~Chris



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] MySQL

2002-12-25 Thread Parry60
I'm having some problems with MySQL.  PHP just isn't working with it.
I'm running Apache 1.3.27 with PHP 4.2.3 and MySQL 3.23.49 on OpenBSD 3.2.  
Apache and PHP were compiled with source (PHP was configured with 
--with-mysql and --with-apxs), and MySQL was installed from a package.
I can connect to MySQL via the command-line interface, but not via PHP.  
phpBB always reports "cannot connect to database".  I've checked the 
permissions and everything, and it all should work.
I've also set the mysql socket in php.ini to /var/run/mysql/mysql.sock 
because that's where it is.

Thanks,
Parry60

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Problem with comma in mail form

2002-12-25 Thread Chris Wesley
On Wed, 25 Dec 2002, Ben Edwards wrote:

> I have a fairly simple mail form which gets email, subject and message and
> posts to itself.
> It then use mail() function to send a email.
> mail( $admin_email, $subject, $message, "From: $email" );
> Problem is the message gets truncated if there is a comma in the message
> after the comma.

I have forms that have identical functionality, but don't exhibit that
erroneous behavior.  I can't tell what you've done to the arguments to
mail() before using them, but the only thing I do is run them through
stripslashes() and trim().  i.e. -

$message = trim( stripslashes( $_POST['message'] ) );

If that's what you do too ... weird!  If not, give it a try and see what
happens.

g.luck & cheers!
~Chris


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Good class for managing settings stored in INI (or other format)file?

2002-12-25 Thread Leif K-Brooks
I'm looking for a class to manage settings stored in a .ini (or other 
format) file.  I could store them in a database, but they need to be 
there even when the DB's down.  Any ideas?

--
The above message is encrypted with double rot13 encoding.  Any unauthorized attempt to decrypt it will be prosecuted to the full extent of the law.



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Good class for managing settings stored in INI (or other format) file?

2002-12-25 Thread John W. Holmes
> I'm looking for a class to manage settings stored in a .ini (or other
> format) file.  I could store them in a database, but they need to be
> there even when the DB's down.  Any ideas?

Parse_ini_file() may be of use. Or search phpclasses.org, they are sure
to have something. 

www.php.net/parse_ini_file

---John W. Holmes...

PHP Architect - A monthly magazine for PHP Professionals. Get your copy
today. http://www.phparch.com/



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




php-general Digest 25 Dec 2002 20:26:44 -0000 Issue 1784

2002-12-25 Thread php-general-digest-help

php-general Digest 25 Dec 2002 20:26:44 - Issue 1784

Topics (messages 129317 through 129327):

Re: Problem with Include
129317 by: sport4ever

Writing byte 0A to a file (LF / CR related)
129318 by: BBun
129319 by: BBun
129320 by: Thomas Seifert

CVS download
129321 by: Bc. Radek Krejèa

How To Get Last Item Of An Array?
129322 by: . Nilaab
129323 by: Chris Wesley

MySQL
129324 by: Parry60.aol.com

Re: Problem with comma in mail form
129325 by: Chris Wesley

Good class for managing settings stored in INI (or other format) file?
129326 by: Leif K-Brooks
129327 by: John W. Holmes

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 ---
Thanks to all whom answered me

while there is no solution for my problem (including more than one PHP file
in a HTML page through SSI) :(
I want to return to my server old configuration, It was:
RedHat Linux 7.3
Apach 1.3
PHP 4.0.1
except PHP, because I have encountered some problems with PHP 4.0.1,
and please tell me what I (exactly) suppose to reinstall (Linux,Apache or
PHP)...

Is there any way to undo my upgrade ( what I call downgrade :-) )?
thanx anyway
__
http://www.sport4ever.net
Administrator of Sport4ever.Net
[EMAIL PROTECTED]

- Original Message -
From: "sport4ever" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: "Tom Ray" <[EMAIL PROTECTED]>
Sent: Tuesday, December 24, 2002 8:04 AM
Subject: Re: [PHP] Problem with Include


> It's PHP problem because I can include any number of files with other
> extensions. only PHP which I can not include more than one file at a
page...
>
> maybe there is something wrong with php.ini
> notice that I faced with this problem just after I upgraded to (PHP
4.2.1),
> (Apache2), everything was great before!
>
> >
> > sport4ever wrote:
> >
> >Hello,
> >my problem is that I can't use more than one SSI INCLUDE in a page
> >
> >Please access this test page to check the problem yourself:
> >http://www.sport4ever.com/test/hello.shtml
> >
> >The first INCLUDE will appear correctly and prints "HELLO World, include
#1" which is the output of "hello.php"
> >
> >Whereas the second INCLUDE won't appear, and instead, it will print the
content (code) of "hello2.php", which is the follwoing:
> >
> >
> >So, it always executes the first include statement perfectly, and doesn't
> execute the rest!
> >
> >note: the problem appears only if I include a PHP file, it will execute
> it correctly if it's a SHTML or HTML file.
> >
> >PLEASE is there any solution for this strange problem!
> >
> >
> >
> >
>



--- End Message ---
--- Begin Message ---
Hey,

I am trying to write some binary data (image) to a file, but using fputs,
every 0A byte will be written as 0D 0A. This is because of the windows
representation of a new line (\r\n), but I'm not writing a text file! I'm
writing binary data! Does anyone know how I can make this work correctly?

Thanks




--- End Message ---
--- Begin Message ---
Hey,

I am trying to write some binary data (image) to a file, but using fputs,
every 0A byte will be written as 0D 0A. This is because of the windows
representation of a new line (\r\n), but I'm not writing a text file! I'm
writing binary data! Does anyone know how I can make this work correctly?

Thanks



--- End Message ---
--- Begin Message ---
from the manual:

Note:  On systems which differentiate between binary and text files (i.e. Windows) the 
file must be opened with 'b' included in fopen() mode parameter.



Thomas

On Wed, 25 Dec 2002 11:43:13 +0100 [EMAIL PROTECTED] (Bbun) wrote:

> Hey,
> 
> I am trying to write some binary data (image) to a file, but using fputs,
> every 0A byte will be written as 0D 0A. This is because of the windows
> representation of a new line (\r\n), but I'm not writing a text file! I'm
> writing binary data! Does anyone know how I can make this work correctly?
> 
> Thanks
> 
> 

--- End Message ---
--- Begin Message ---
Hello,
I want to download PHP from CVS and a wrote this command (from
manual):

cvs -d :pserver:[EMAIL PROTECTED]:/repository co -r PHP_4_2_3 php4

But I got this message:

cvs [server aborted]: no such tag PHP_4_2_3

Where is problem?
Thanks Radek



--- End Message ---
--- Begin Message ---
Hello Everyone,

I have an multi-dimensional array called $cat_data, which is info extracted
from a MySQL DB. I want to retrieve the very last item of that array. How
would I do that? I know the first item can be retrieved by simply asking for
$cat_data[0][0], which contains an id number. But I can't figure out how to
get the last item in that same array -- $cat_data[x][0] where x is the last
item in the array.

P.S. - I read the section on Arrays at php.net, but unfortunately I didn

RE: [PHP] How To Get Last Item Of An Array?

2002-12-25 Thread John W. Holmes
> I have an multi-dimensional array called $cat_data, which is info
> extracted
> from a MySQL DB. I want to retrieve the very last item of that array.
How
> would I do that? I know the first item can be retrieved by simply
asking
> for
> $cat_data[0][0], which contains an id number. But I can't figure out
how
> to
> get the last item in that same array -- $cat_data[x][0] where x is the
> last
> item in the array.

Kind of begs the question of why can't you just select what you need
with the proper query, instead of loading everything into an array...

---John W. Holmes...

PHP Architect - A monthly magazine for PHP Professionals. Get your copy
today. http://www.phparch.com/



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] How To Get Last Item Of An Array?

2002-12-25 Thread Jason Wong
On Thursday 26 December 2002 03:34, Chris Wesley wrote:
> On Wed, 25 Dec 2002, @ Nilaab wrote:
> > I have an multi-dimensional array called $cat_data, which is info
> > extracted from a MySQL DB. I want to retrieve the very last item of that
> > array. How would I do that? I know the first item can be retrieved by
> > simply asking for $cat_data[0][0], which contains an id number. But I
> > can't figure out how to get the last item in that same array --
> > $cat_data[x][0] where x is the last item in the array.
>
> Naturally, the index of last item of an array is one less than the total
> number of elements in the array.
>
> $num_elements = count( $cat_data );
> $last_element = $cat_data[$num_elements-1][0];
> // 0 being what you were seeking

Or, if you don't need to keep $cat_data intact, you can use array_pop().

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *

/*
When it is not necessary to make a decision, it is necessary not to
make a decision.
*/


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] How To Get Last Item Of An Array?

2002-12-25 Thread Leon Mergen

"John W. Holmes" <[EMAIL PROTECTED]> schreef in bericht
000401c2ac54$142032c0$7c02a8c0@coconut">news:000401c2ac54$142032c0$7c02a8c0@coconut...
> Kind of begs the question of why can't you just select what you need
> with the proper query, instead of loading everything into an array...

Yeah, just add limit 0,1 desc to the query



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] How to display field after MySQL join.

2002-12-25 Thread Stephen of Blank Canvas
Hi Everyone,
 
I'm trying to display the content of two mysql tables on a single page,
I have successfully joined them with the following statement.
 
$query = "SELECT serv.*, cat.* FROM site_services AS serv,
site_servicescat AS cat WHERE serv.servicescat_id = cat.servicescat_id
AND serv.theme_id = $DomainTheme AND serv.status = 1 ORDER BY RAND()
LIMIT 3";

This works great but my problem is I have a field in each table called
"title", if I use the normal function of $row[title] I get field from
the "site_services" table but I cannot work out how to get the
"site_servicescat" title field.  I have tried $row[cat.title] but all I
get is errors. 
 
Any help would be really appreciated as I think it's just me missing
something basic.
 
Thanks
 
Stephen



[PHP] Problem with compilation from CVS

2002-12-25 Thread Bc. Radek Krejča
Hello,
I try compile PHP from CVS. I download source, configure it, compile
it and install it. All ok, but after installation I got this:

Fatal error: main() [function.main]: Failed opening required 
'./libraries/grab_globals.lib.php' (include_path='.:/usr/local/lib/php') in 
/home/starnet.cz/dbadmin3/index.php on line 8

Where is problem, what I made bad?

Thanks
Radek



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Problem with compilation from CVS

2002-12-25 Thread Johannes Schlueter
On Thursday 26 December 2002 00:57, Bc. Radek Krejča wrote:
> Fatal error: main() [function.main]: Failed opening required
> './libraries/grab_globals.lib.php' (include_path='.:/usr/local/lib/php') in
> /home/starnet.cz/dbadmin3/index.php on line 8
>
> Where is problem, what I made bad?

Hi,

are you sure you have all PHP-Files your PHP-Project needs? The error message 
tells you that your script trys to load ./libraries/grab_globals.lib.php at 
index.php, line 8, check wether the grab_globals.lib.php is reachable...

johannes

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Problem with compilation from CVS

2002-12-25 Thread Bc. Radek Krejča
Hello,

  yes, I am. Because if I compile PHP from source.tar.gz (version
  4.2.3), it works. But I am not sure with version of PHP from CVS. I
  try

  cvs -d :pserver:[EMAIL PROTECTED]:/repository co -r PHP_4_2_3 php4

  but answer is only cvs [server aborted]: no such tag PHP_4_2_3.

  Command
  cvs -d :pserver:[EMAIL PROTECTED]:/repository co -r PHP_4_2_2 php4
  works perfectly. I don't know, what I make bad.

  Thanks Radek

JS> On Thursday 26 December 2002 00:57, Bc. Radek Krejča wrote:
>> Fatal error: main() [function.main]: Failed opening required
>> './libraries/grab_globals.lib.php' (include_path='.:/usr/local/lib/php') in
>> /home/starnet.cz/dbadmin3/index.php on line 8
>>
>> Where is problem, what I made bad?

JS> Hi,

JS> are you sure you have all PHP-Files your PHP-Project needs? The error message 
JS> tells you that your script trys to load ./libraries/grab_globals.lib.php at 
JS> index.php, line 8, check wether the grab_globals.lib.php is reachable...

JS> johannes



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Formatting text output

2002-12-25 Thread menezesd
Hello friends.

I work for a school where we need to put the class results on to our web, one for 
every class. We enter the marks in the database and this should be displayed in a 
particular varying format as follows(an example) :

Grade A Pass :
4554 7687 9834 2354 7671

Grade B Pass :
0045 7612 2297

Failed :
3104 6509 0286 8765 2229 0978

How can I put this in Mysql and get the same test formatting out? If the grade types 
where standard and limited, it was okay. But the grades types can increase or 
decrease. How can I maintain the same formatting as what I input?

Thanks very much
Denis

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] Formatting text output

2002-12-25 Thread John W. Holmes
> I work for a school where we need to put the class results on to our
web,
> one for every class. We enter the marks in the database and this
should be
> displayed in a particular varying format as follows(an example) :
> 
> Grade A Pass :
> 4554 7687 9834 2354 7671
> 
> Grade B Pass :
> 0045 7612 2297
> 
> Failed :
> 3104 6509 0286 8765 2229 0978
> 
> How can I put this in Mysql and get the same test formatting out? If
the
> grade types where standard and limited, it was okay. But the grades
types
> can increase or decrease. How can I maintain the same formatting as
what I
> input?

How are you getting it into the database? MySQL isn't going to change
the formatting of that text at all. Now, if you were to display it in an
HTML page, it won't look the same. HTML does not recognize newlines,
only  tags. Here is where the nl2br() function comes in handy, or
 tags. 

---John W. Holmes...

PHP Architect - A monthly magazine for PHP Professionals. Get your copy
today. http://www.phparch.com/



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Insert Record (php.ini)

2002-12-25 Thread Edson Waite
Hi all,

Hope everyone had a Merry Christmas.

 I am trying to create a form to insert records into a MySQL db what setting
should I be looking at in the php.ini? My page seems to work and goes to the
next page correctly without errors, but does not enter any information in
the database.

Thanks in Advance,
Edson Waite III




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Formatting text output

2002-12-25 Thread Justin French
What does the database table(s) look like?

I don't understand what '0045' and '2354' are -- are they student no's?

Better questions get better answers :)

Justin





on 26/12/02 12:03 PM, menezesd ([EMAIL PROTECTED]) wrote:

> Hello friends.
> 
> I work for a school where we need to put the class results on to our web, one
> for every class. We enter the marks in the database and this should be
> displayed in a particular varying format as follows(an example) :
> 
> Grade A Pass :
> 4554 7687 9834 2354 7671
> 
> Grade B Pass :
> 0045 7612 2297
> 
> Failed :
> 3104 6509 0286 8765 2229 0978
> 
> How can I put this in Mysql and get the same test formatting out? If the grade
> types where standard and limited, it was okay. But the grades types can
> increase or decrease. How can I maintain the same formatting as what I input?
> 
> Thanks very much
> Denis


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] Insert Record (php.ini)

2002-12-25 Thread John W. Holmes
>  I am trying to create a form to insert records into a MySQL db what
> setting
> should I be looking at in the php.ini? My page seems to work and goes
to
> the
> next page correctly without errors, but does not enter any information
in
> the database.

Probably register_globals, if I had to guess. Otherwise, show your code
so we can see what's going on. 

---John W. Holmes...

PHP Architect - A monthly magazine for PHP Professionals. Get your copy
today. http://www.phparch.com/



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Re: MySQL

2002-12-25 Thread Mike Mannakee
Perhaps setting the ini file socket info is bypassing php using the tcp port
directly.  It should be going 'through' tcp/ip to get at the port mysql is
listening to and they talk through there.  I'm on a windows box and have
limited experience with unix implementations, but on the one linux box I did
get up and running I don't think I had set the php.ini to any sockets.  Try
commenting out the line.

If you can get the sql error number and message it will also help you
determine what's up.

Mike


<[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I'm having some problems with MySQL.  PHP just isn't working with it.
> I'm running Apache 1.3.27 with PHP 4.2.3 and MySQL 3.23.49 on OpenBSD 3.2.
> Apache and PHP were compiled with source (PHP was configured with
> --with-mysql and --with-apxs), and MySQL was installed from a package.
> I can connect to MySQL via the command-line interface, but not via PHP.
> phpBB always reports "cannot connect to database".  I've checked the
> permissions and everything, and it all should work.
> I've also set the mysql socket in php.ini to /var/run/mysql/mysql.sock
> because that's where it is.
>
> Thanks,
> Parry60



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Insert Record (php.ini)

2002-12-25 Thread Edson Waite
I checked and register_globals is ON, I am new to php and I am building on a
tutorial from a book. below is the code any help would be appeciated.

Thank you,
Ed Waite




"John W. Holmes" <[EMAIL PROTECTED]> wrote in message
000401c2ac90$8a2f77f0$7c02a8c0@coconut">news:000401c2ac90$8a2f77f0$7c02a8c0@coconut...
> >  I am trying to create a form to insert records into a MySQL db what
> > setting
> > should I be looking at in the php.ini? My page seems to work and goes
> to
> > the
> > next page correctly without errors, but does not enter any information
> in
> > the database.
>
> Probably register_globals, if I had to guess. Otherwise, show your code
> so we can see what's going on.
>
> ---John W. Holmes...
>
> PHP Architect - A monthly magazine for PHP Professionals. Get your copy
> today. http://www.phparch.com/
>
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Insert Record (php.ini)

2002-12-25 Thread Javier
There are single quotes missing before %s -> '%s'

>   $insertSQL = sprintf("INSERT INTO stories (firstName, lastName,
>   address1, 
> address2, city, `state`, country, postCode, telephone, email, title,
> story) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)",
>GetSQLValueString($HTTP_POST_VARS['firstName'],


-- 
*** s2r - public key: (http://leeloo.mine.nu/s2r-gmx.sig)

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] UltraTemplate's documentation

2002-12-25 Thread Javier
Hi!
Has anybody got documentation for UltraTemplate? I read the examples on 
their website but I didn't understand it very well.

Any doc. would be apreciated. :)


-- 
*** s2r - public key: (http://leeloo.mine.nu/s2r-gmx.sig)

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Apache

2002-12-25 Thread Mantas Kriauciunas
Hey!
I'm using FreeBSD 4.5 as my server and I have loaded Apache 1.3.2 and
PHP 4.x . hare goes the question, sorry it isn't about php but still
maybe you can help me. When I type Http://www.example.com/~user the page
says that it doesn't exist.. But when I type in
Http://www.example.com/~user/ then it works. Well when I had PHPTriad
loaded on my windows I didn't have any problems. Why now it isn't
working without / ??
Thanks!



Re: [PHP] How to display field after MySQL join.

2002-12-25 Thread Jason Wong
On Thursday 26 December 2002 07:25, Stephen of Blank Canvas wrote:
> Hi Everyone,
>
> I'm trying to display the content of two mysql tables on a single page,
> I have successfully joined them with the following statement.
>
> $query = "SELECT serv.*, cat.* FROM site_services AS serv,
> site_servicescat AS cat WHERE serv.servicescat_id = cat.servicescat_id
> AND serv.theme_id = $DomainTheme AND serv.status = 1 ORDER BY RAND()
> LIMIT 3";
>
> This works great but my problem is I have a field in each table called
> "title", if I use the normal function of $row[title] I get field from
> the "site_services" table but I cannot work out how to get the
> "site_servicescat" title field.  I have tried $row[cat.title] but all I
> get is errors.
>
> Any help would be really appreciated as I think it's just me missing
> something basic.

print_r($row) to see what you have.

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *

/*
disbar, n:
As distinguished from some other bar.
*/


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php