php-windows Digest 9 Jan 2003 13:05:59 -0000 Issue 1526

Topics (messages 17721 through 17730):

Re: [newbie] What does this mean?
        17721 by: paradiddles

Newbie :: Class instance alive between pages??
        17722 by: Palli
        17723 by: Luis Ferro
        17726 by: Palli

New install problem / question
        17724 by: b

berkeley db3 on windows
        17725 by: Dave Viner

send a web page by email.
        17727 by: Camelia Moldovan
        17728 by: Manuel Lemos

Have you ever try the SSEditor, a IDE for PHP?
        17729 by: skyweb

get row (latest by date)
        17730 by: Aidal

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 ---
Jim,

thanks for the response. Well- I think your right! I created index.htm and saved it to 
my htdocs dir.

I get the "file not found" when I try and bring it up. To answer your question ... I 
have:

DocumentRoot "C:/Program Files/Apache Group/Apache/htdocs/"


typed into my httpd.conf file just under: # symbolic links and aliases may be used to 
point to other locations.
#

Patrick

 



----------------
"you can observe a lot by watching"

  ~ Yogi Berra



---------------------------------
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now
--- End Message ---
--- Begin Message ---
Hello

I´m wondering how I keep class instance alive between pages.  Is it possible
to store it in Session and what is the "right" way to store it globaly?

thanx Palli


--- End Message ---
--- Begin Message --- Yes, it is, but prior to accessing the stored value you will have to include the class file, otherwise, php will not know what object that thing in the session is...

LF

Palli wrote:

Hello

I´m wondering how I keep class instance alive between pages. Is it possible
to store it in Session and what is the "right" way to store it globaly?

thanx Palli





---
[This E-mail scanned for viruses by Declude Virus]

--- End Message ---
--- Begin Message ---
So what is wrong with this code :

This is page 1 :

$MyFrett = new cFrett;

$_SESSION['cFrett'] = $MyFrett;

this is another page that is trying to use the class instance :

<?php
if (empty($_SESSION['cFrett']))
{
  echo 'the session object is empty';
}
else
{
  include("clsFrett.php");
  $MyFrett = new cFrett ;
  $MyFrett = $_SESSION['cFrett'];
  $MyFrett->NewNews();
}
?>


thanx
Palli


"Luis Ferro" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Yes, it is, but prior to accessing the stored value you will have to
include the class file, otherwise, php will not know what object that
thing in the session is...

LF

Palli wrote:

>Hello
>
>I´m wondering how I keep class instance alive between pages.  Is it
possible
>to store it in Session and what is the "right" way to store it globaly?
>
>thanx Palli
>
>
>
>
>


---
[This E-mail scanned for viruses by Declude Virus]



--- End Message ---
--- Begin Message ---
Hi,
I have just installed PHP4 onto a Win2k server with IIS5 [my first time with
PHP] -

And after having created a test script I have the following problem;

The script generates the [expected] output when accessed from the server
browser;
HOWEVER, when trying to access from a public or machine on the network I
get;

"No input file specified. "

What did I not do or do wrong?

TIA
Beetle


--- End Message ---
--- Begin Message ---
hi,
  i just got my windows/php/db3 env compiled.  But
when I run a simple test script, I get this error:

C:\TEMP>php -f simple.php

Notice: dba_open()
[http://www.php.net/function.dba-open]: read:
0x12f8f4, 256:
Permission denied in C:\TEMP\simple.php on line 3

Notice: dba_open()
[http://www.php.net/function.dba-open]:
testdbcache.db: Permission denied in
C:\TEMP\simple.php on line 3

Warning: dba_open(testdbcache.db,c)
[http://www.php.net/function.dba-open]: Driver
initialization failed for handler: db3: Permission
denied in C:\TEMP\simple.php on line 3
opened testdbcache.db ->

C:\TEMP>


The script looks like this:
<?php
    $path = "testdbcache.db";
    $id = dba_open($path,"c","db3");
    echo "opened $path -> $id<br>\n";
    if($id)
    {
        dba_close($id);
        echo "closed $path<br>\n";
    }
    else
        echo "nothing opened<br>\n";
?>


It looks like a simple permissions problem, but the
weird thing is that the testdbcache.db file is
actually created in the directory, with 0 length.

has anyone seen this type of error or know how to fix
it?

thanks
dave


__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com
--- End Message ---
--- Begin Message ---
Hi! Does anyone know something about this?

I have a web page (generated using php)and I want to send it by email. I know how to 
send html emails using php but I don't know how to email the current page. Please help.

Thanks.



---------------------------------
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now
--- End Message ---
--- Begin Message ---
Hello,

On 01/08/2003 07:41 PM, Camelia Moldovan wrote:
Hi! Does anyone know something about this?

I have a web page (generated using php)and I want to send it by
email. I know how to send html emails using php but I don't know how
to email the current page. Please help.
Just use output buffering support to capture its output.

Alternatively you may try to pass its URL to fopen. You can also do that and pass the URL to this class function named AddFilePart.

http://www.phpclasses.org/mimemessage

Anyway, one thing for you to keep in mind is to avoid sending HTML only messages because that will make them be rejected by most SPAM filters. What you should do is to send an alternative text version along with the HTML version in the same message body. The class above comes with an example of how to do that.

--

Regards,
Manuel Lemos

--- End Message ---
--- Begin Message ---
visit our site: http://www.skyweb2k.com/sseditor


--- End Message ---
--- Begin Message ---
Hi NG.

I know this is probably very simple, but I've had no luck making it work :(

I want 1 single row out of a table, that row must be the latest by date and
time.

The table looks like this (example MySQL):
_______________________________________________
  id  | type_id |       date       |      time   |      title        |
source  |
---------------------------------------------------------------
 128 |     1      | 2003-01-09 | 15:00:52 | some title    | blabla    |
 129 |     1      | 2003-01-09 | 15:02:43 | some title 2 | blabla 2 |
---------------------------------------------------------------

What i need is the SQL that would give me the latest created row of these 2
(i dont mean latest as in last_id) by date and time in this case the result
should be the row with id = 129 because of the time.

Please help...

~ Aidal




--- End Message ---

Reply via email to