RE: [PHP] Correct URL's

2002-01-27 Thread Dave Brotherstone

> >
> > > Stefan Rusterholz wrote
> 
> > > Please do not send HTML messages.
> > Sorry, Outlook is crap and I'm just too lazy to buy (on Win you
> have to buy
> > almost everything) another e-mail client for my working machine.
>
> http://www.pegasus.org/
>
> It's free and a bit more virus resistant than a certain M$ product (well,
> any M$ product)
>
> --

www.pmail.com ?  pegasus.org is *definately* virus free, (it's a yachting
team!!!)


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] PHP 4.4.1 and Interbase

2002-01-08 Thread Dave Brotherstone

I've seen this with MS SQL connections.  What it boils down to is that the
data type that is returned isn't understood, the extension dies, and nothing
is returned.  Try a simpler select statement (I know its hard to go much
simpler but ;-) - go for "select 'hello world'".  And then try giving
the column a name - it could be that.  "select 'hello world' as HiWorld" -
(the "as" is optional, I can't remember whether interbase wants it or not).

If you can work out what sql statements don't work, then mail the list back
and I'll have a look at the extension.

Dave.

> -Original Message-
> From: Todd Cary [mailto:[EMAIL PROTECTED]]
> Sent: 07 January 2002 19:29
> To: [EMAIL PROTECTED]
> Subject: [PHP] PHP 4.4.1 and Interbase
>
>
> I am running PHP 4.1.1 on RH Linux 7.2 with Apache and I am getting an
> error as soon as I try to execute the query.  The browser error with
> Netscape is "Document contains no data.  Try again later..."
>
>   echo('Opening Interbase');
>   $dbh = db_open($host,$user,$password);
>   if ($dbh) {
>
> $stmnt = 'SELECT COUNT(*) FROM PHOTOS';
> $sthdl = ibase_query($stmnt,$dbh);
> if ($sthdl) {
>   echo('Query succeeded');
> } else {
>   echo('Cannot perform query');
> }
>
> echo('Closing Interbase');
> ibase_close($dbh);
>   } else {
> echo('Could not open Interbase!');
>   }
>
> If I comment out
>
> $stmnt = 'SELECT COUNT(*) FROM PHOTOS';
>
> All run fine.  Also, this piece of code use to work.  Any suggestions?
>
> Todd
> --
> Todd Cary
> Ariste Software
> [EMAIL PROTECTED]
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] Sending variables between PHP pages

2002-01-04 Thread Dave Brotherstone

Use the pconnect functions.  These do exactly that.

eg. mysql_pconnect() at the top of your page, and it will re-use the
database connection for you.
mysql_close() won't close a permanent connection.

Please don't post general questions to the php-dev list.  This is for
development OF PHP, not IN PHP.

Dave.

> -Original Message-
> From: Berlina [mailto:[EMAIL PROTECTED]]
> Sent: 04 January 2002 11:16
> To: php-general-list; php-dev-list; php-db-list
> Subject: [PHP] Sending variables between PHP pages
>
>
> Hi users,
>
> how can I send a connection database variable, from one PHP page to other
> PHP page, and maintance the database connection open during both pages?
>
> Thanks
>
> --


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] Modify someone else's session register

2001-12-28 Thread Dave Brotherstone

Not really, but you could...

You would somehow have to get the session id from user 2 to user 3 (this
would depend how your site worked).  Then you could access the session
variables - it depends how your sessions are stored.  If they were stored in
a database, then you could read them (by default they're in /tmp, in a
fairly easy to follow format).  I probably wouldn't recommend changing the
variables in there (/tmp) though - but you could if they were held in a
database.  I believe you can change the "session handler" in order to do
this, but I've never done it.

Dave.

> -Original Message-
> From: Alex Vargas [mailto:[EMAIL PROTECTED]]
> Sent: 28 December 2001 02:23
> To: [EMAIL PROTECTED]
> Subject: [PHP] Modify someone else's session register
>
>
> Hi.
>
> Let's suppose I have 3 users in my site, each of them generating their
> respective session variables. Assuming I have a session variable named
> $variable, I'll end up in the server with 3 values: $variable_1,
> $variable_2
> and $variable_3.
>
> My question is: is there a way I can change let's say the variable of the
> second user when the third user is running the php script? Can I
> access (and
> change) the session registers generated by the users?
>
> Thanks for your help,
>
> Alex.
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] Test message.

2001-12-12 Thread Dave Brotherstone

return TRUE;


> -Original Message-
> From: Andrey Hristov [mailto:[EMAIL PROTECTED]]
> Sent: 10 December 2001 11:06
> To: [EMAIL PROTECTED]
> Subject: [PHP] Test message.
> 
> 
> Test
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
> 
> 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] Newbie-student Database PHP Question

2001-12-12 Thread Dave Brotherstone

MySQL is a DBMS, SQL is a language.  MySQL has an implementation of SQL, as
does Access.  All (most) SQL implementations are common for the simple
things (select * from tablename), but differ when things get more complex
(is about as broad an answer I could give!).

Web based access database is fine depending on how many users/transactions
you've got.  MySQL is easier to plug into PHP (it supports it directly),
Access you need to use the ODBC stuff (but it can be done).  Learning MySQL
is probably a good thing - learning SQL is definately a good thing ;-)

Hope this helps,
Dave.

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: 12 December 2001 10:44
> To: [EMAIL PROTECTED]
> Subject: [PHP] Newbie-student Database PHP Question
>
>
> I have downloaded Mysql to check out.
>
> 1) Mysql vs SQL: What is the difference?
>
> 2} Would a web-based Access database suffice with PHP?
> As I already know Access.
>
> Appreciate clarification for my newbie questions, thank you.
>
> Robin
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] Generating PDF...

2001-12-11 Thread Dave Brotherstone

PHP is a good language for creating PDFs.  There are two libraries you can
use, PDFlib and ClibPDF.  I have used PDFlib before and I can recommend it.
Look in the PHP manual at PDFlib functions.  Incidentally, if it's for a
commercial project, then PDFlib or ClibPDF will probably need licensing.

PDF is a great format, it's page independant, so you can load and view page
1 of the file, before you have downloaded page 2.  It contains image
handles, so you can insert an image on page 1 (say a logo), and then use a
link to it on the second page (so you the file size only goes up a few bytes
each time you add another copy of the picture).  You can also print it
directly.

Mail me off list if you need to create a large number of PDFs quickly.

Dave.

> -Original Message-
> From: Johan Holst Nielsen [mailto:[EMAIL PROTECTED]]
> Sent: 11 December 2001 08:09
> To: [EMAIL PROTECTED]
> Subject: [PHP] Generating PDF...
>
>
> Hi,
>
> I just have some few question. I hope you can help me, with some links
> or some information :o)
>
> I've to create some pdf files, but the problem is that it have to be
> printed later. So it have to be in i quality about 304 dpi.
>
> I dont know a lot about PDF. Can anyone help me please? Send me some
> links about how PDF works etc..
>
> I prefer to work in PHP... but if Perl/C/C++ etc. is a better language
> to this, please post the link anyway.
>
> Hope someone can help me :o)
>
> Looking forward to hear from ya! :o)
>
> Regards,
>
> Johan
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Returned error messages

2001-12-10 Thread Dave Brotherstone


Has anyone got error messages working from MSSQL or Sybase (connecting from
a unix box)?

Dave.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] mssql_query and error message

2001-12-09 Thread Dave Brotherstone

Hi,
   (Sorry for the cross post, I posted it in the wrong place the first time)

I've got MSSQL 2000 running on Win2000 Svr. Linux 2.2.16 running Apache
1.3.22, freetds 0.53, and PHP 4.0.6.

I can connect and run queries no problem, but when an error is raised (with
raiserror) on the SQL box, mssql_query (...) just returns false, and I don't
get anything in $php_errormsg or mssql_get_last_message().  Is there a way
to tell what the error was?  (The query can return one of two errors, I need
to know which it was.)

Many thanks for any help you can give,

Cheers,
Dave.



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]