[PHP] Copy database from MySQL to MSAccess

2003-09-02 Thread Kjell Hansen
Hi there,
I'd like to have a template DB stored with MySQL from which I later can
create clientDB's for use with MSAccess.
I've read that I can connect to MSAccess with PHP through ODBC and that's
fine but how do I transfer the tables and cusomized data?

TIA
/Kjell Hansen

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



[PHP] Re: Copy database from MySQL to MSAccess

2003-09-02 Thread Kjell Hansen
Hi Leonie
My approach is to have the empty AccessDB on the server. Make a copy of it
and insert all the tables into the copy and then have it downloaded from the
server. So I'm actually never gonna use Access, it's just the database I'm
using for storage of data.

One way of doing this could be to store the table definitions as
SQL-statements in another table, but I'm not very thrilled about that idea.

TIA
/Kjell Hansen

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



RE: [PHP] Broken links report

2003-06-03 Thread Kjell Hansen
Thanx Chris,
this is exactly what I do. And I get
"Warning: fopen(http://www.whatever.com/index.html) [function.fopen]: failed
to create stream: HTTP request failed! HTTP/1.1 404 Object Not Found"

I don't want to get the warning. I know I can switch it off but there are
other warnings I would like to see.

Somehow I just want to check for "HTTP/1.1 404 Object Not Found" and if
found show it as a broken link.

/Kjell

> -Original Message-
> From: Chris Kay [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, June 03, 2003 08:48
> To: Kjell Hansen
> Subject: RE: [PHP] Broken links report
>
>
>
> Try
>
> $p = pOpen (http://www.whatever.com/index.html,"r";)
>
> if ( $p ) {
>   print("Worked");
> } else {
>   print("Failed");
> }
>
> -
> Chris Kay
> Techex Communications
> Website: www.techex.com.au Email: [EMAIL PROTECTED]
> Telephone: 1300 88 111 2 - Fax: 1300 882 221
> -
>
> -Original Message-
> From: Kjell Hansen [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, 3 June 2003 3:42 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Broken links report
>
> Hi,
> On a link page I have I'd like to show if the links are valid (=exists)
> I tried to do a pOpen (http://www.whatever.com/index.html,"r";) and if it
> exists everything is fine but if it's not there I get a warning "failed
> to
> create stream: HTTP request failed! HTTP/1.1 404 Object Not Found"
> Opening the file is actually not necessary, I'm checking for existence.
> But
> it's the only way I've found.  Is there a better way to do this?
>
> I'm using PHP4 on a w2k workstation
>
> Thanx
> /Kjell
>
>
>
> --
> 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] Broken links report

2003-06-03 Thread Kjell Hansen
Hi,
On a link page I have I'd like to show if the links are valid (=exists)
I tried to do a pOpen (http://www.whatever.com/index.html,"r";) and if it
exists everything is fine but if it's not there I get a warning "failed to
create stream: HTTP request failed! HTTP/1.1 404 Object Not Found"
Opening the file is actually not necessary, I'm checking for existence. But
it's the only way I've found.  Is there a better way to do this?

I'm using PHP4 on a w2k workstation

Thanx
/Kjell



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



Re: [PHP] Apache problem:PHP will not execute

2003-06-03 Thread Kjell Hansen
Sorry, for the delay in responding and for not indicating my OS...
Linux SuSE8.1 is where I can't get i working, on my w2k it's functioning like it's 
supposed.

/Kjell
- Original Message - 
From: "Gurhan Ozen" <[EMAIL PROTECTED]>
To: "Kjell Hansen" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Sunday, May 25, 2003 6:38 PM
Subject: Re: [PHP] Apache problem:PHP will not execute


> On Sun, 2003-05-25 at 06:55, Kjell Hansen wrote:
> > Hi ye all,
> > I've just installed an Apache-server and it reports that PHP is enabled
> > but when I try to open a test page it will not execute but rather
> > download (like an unknown file type)
> > 
> > Where's the setting I've missed?!?!?
> > 
> > Thanx
> > /Kjell
> > 
>Hi Kjell, 
>  There is step-by-step instructions here:
> http://www.thesitewizard.com/archive/php4install.shtml
>  
>   Go through it, and make sure you have done all steps correctly
> Gurhan
> 
> 
> 
> > 
> > -- 
> > 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



Re: [PHP] Apache problem:PHP will not execute

2003-06-03 Thread Kjell Hansen
Sorry for the delay...
Yes, it is set (I even removed the  directives) but it's still no 
executing but acting more like downloads :(

Any suggestions?
/Kjell

- Original Message - 
From: "electroteque" <[EMAIL PROTECTED]>
To: "Kjell Hansen" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Sunday, May 25, 2003 3:42 PM
Subject: RE: [PHP] Apache problem:PHP will not execute


> set the application type for php 
> 
> AddType application/x-httpd-php .php
> 
> -Original Message-
> From: Kjell Hansen [mailto:[EMAIL PROTECTED]
> Sent: Sunday, May 25, 2003 8:56 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Apache problem:PHP will not execute
> 
> 
> Hi ye all,
> I've just installed an Apache-server and it reports that PHP is enabled
> but when I try to open a test page it will not execute but rather
> download (like an unknown file type)
> 
> Where's the setting I've missed?!?!?
> 
> Thanx
> /Kjell
> 
> 
> -- 
> 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] Create Thumbnails from image

2002-09-22 Thread Kjell Hansen

Hi,
I'm using a Win2k with php4.1 and I'd like to make some thumbnails from
pictures on my disk.
I've gotten the impression that it's possible, but I havent' found out
just how.

I've stumbled across the ImageCopyResized function but it requires a
imagehandle(?) to the file copied from. How do I get that? Is it the
right way to do this?
I guess I could use some picture manipulating program to do this, but
doing it the PHP way is nicer :)

TIA
Kjell


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




Re: [PHP] Require variable declaration?

2002-03-27 Thread Kjell Hansen

That's too bad, 
I used to do some ASP which is weakly typed too but I still could use "Option 
Explicit" to require variables to be declared. 
Then a small typo would produce very hard-to-find errors.

Well, I guess I have to live with it. Can I add it to a PHP5-wishlist?

Thanx
/Kjell 

- Original Message - 
From: "Rick Emery" <[EMAIL PROTECTED]>
To: "'Kjell Hansen'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Wednesday, March 27, 2002 10:45 PM
Subject: RE: [PHP] Require variable declaration?


> PHP is weakly typed.  Therefore, definitions are not needed.  A variable may
> assume any guise depending upon its context.
> 
> -Original Message-
> From: Kjell Hansen [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, March 27, 2002 2:47 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Require variable declaration?
> 
> 
> Hi,
> I've just started making my database/PHP-scripts and I'm used to, from
> my earlier development, have my variables declared at the top of each
> routine.
> But I can't find the command that would force me to declare my variables
> and I can't find the declare statement either.
> 
> Is there a way to do this?
> 
> Regards
> /Kjell
> 
> 
> -- 
> 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] Require variable declaration?

2002-03-27 Thread Kjell Hansen

Hi,
I've just started making my database/PHP-scripts and I'm used to, from
my earlier development, have my variables declared at the top of each
routine.
But I can't find the command that would force me to declare my variables
and I can't find the declare statement either.

Is there a way to do this?

Regards
/Kjell


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