[PHP] Scheduler, Staff Directory, Work tracker

2002-08-12 Thread Paul Dionne

Good morning everyone!

Our organization is in need of a Scheduling program for meeting rooms.  The 
program doesn't need to be very complicated...five or six rooms, outputs a 
list of rooms available for the time the user enters.  We would put it on 
our intranet.

We could also use a basic staff directory program: Outputs Name, Extension, 
email, position... maybe even a picture.  We would put it on our web site.

Lastly, we could use something to keep track of our workflow program 
otherwise referred to as a strategic plan.  

Does anyone have some code laying around or know where I could find some.  
I see no need to recreate something that I am confident many organizations 
have.

Thanks in advance,
Paul

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




[PHP] Installin PHP as a module

2002-08-12 Thread Carl Brandenburg

Hello everyone,

First off, I've tried every option to get this working I could find in the
past few days. I am trying to use the php4apache2.dll as a module in apache.
I've tried changing the quotations and the direction of the slashes on the
LoadModule line in the httpd.conf file. I've also tried copying the
php4apache2.dll into the \apache2\modules\ directory and changing the
httpd.conf file appropriately. Still no joy. What pisses me off is I have
the same setup at my workstation at work and everything is fine. The only
difference is that everything is loaded on the C drive. Is that what is
causing the problem by chance?
Any help would be greatly appreciated.

Versions:
Windows 2000 SP2
PHP 4.2.2
Apache 2.0.40

The error message I get is as follows:
D:\Program Files\Apache Group\Apache2\bin>apache -t
Syntax error on line 173 of D:/Program Files/Apache
Group/Apache2/conf/httpd.conf:
Cannot load D:/php/sapi/php4apache2.dll into server: The specified procedure
could not be found.

My install paths are:
PHP:d:\php\
Apache: d:\program files\apache group\apache2\

I've added the following lines in my httpd.conf file:
LoadModule php4module d:/php/sapi/php4apache2.dll
AddModule mod_php.c
AddType application/x-httpd-php .php

I've also put the php.ini and php4ts.dll files in c:\winnt.



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




RE: [PHP] Installin PHP as a module

2002-08-12 Thread RPS Internet

I have had the sam problem in the past and have found out that it was a
space in the path to the file. Try renameing the folder to apache_groups and
see if that helps. My problem wasen't exactly the same as yours it did deal
with another module that I was installing.

Josh Thomas
RPS Internet Services

-Original Message-
From: Carl Brandenburg [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 12, 2002 2:12 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Installin PHP as a module


Hello everyone,

First off, I've tried every option to get this working I could find in the
past few days. I am trying to use the php4apache2.dll as a module in apache.
I've tried changing the quotations and the direction of the slashes on the
LoadModule line in the httpd.conf file. I've also tried copying the
php4apache2.dll into the \apache2\modules\ directory and changing the
httpd.conf file appropriately. Still no joy. What pisses me off is I have
the same setup at my workstation at work and everything is fine. The only
difference is that everything is loaded on the C drive. Is that what is
causing the problem by chance?
Any help would be greatly appreciated.

Versions:
Windows 2000 SP2
PHP 4.2.2
Apache 2.0.40

The error message I get is as follows:
D:\Program Files\Apache Group\Apache2\bin>apache -t
Syntax error on line 173 of D:/Program Files/Apache
Group/Apache2/conf/httpd.conf:
Cannot load D:/php/sapi/php4apache2.dll into server: The specified procedure
could not be found.

My install paths are:
PHP:d:\php\
Apache: d:\program files\apache group\apache2\

I've added the following lines in my httpd.conf file:
LoadModule php4module d:/php/sapi/php4apache2.dll
AddModule mod_php.c
AddType application/x-httpd-php .php

I've also put the php.ini and php4ts.dll files in c:\winnt.



--
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] Form variables not passed: register_globals = On

2002-08-12 Thread Petre Agenbag

Hi
I have posted here about session problems etc, but I think I found the
problem:
My Form variables are not passed at all!

Look at this:

index.php


  



page2.php

";
echo " POST_VARS: ".$_POST["test"]."";
echo " normal test :".$test."";
?>

I have installed a "everything" RedHat 7.3 installation, and changed
NOTHING to the default php.ini...


Can anyone help?





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




[PHP] Form variables not passing: globals IS on

2002-08-12 Thread Petre Agenbag

Sorry, posted with the wrong address, here it is again:

I have RH 7.3 with "everything" install, and I didn't make ANY changes
to the default php.ini, and have checked it and register_global = On

Now, when I make a simple form and action page combo, the variables are
not passed:
You can see from this example that I use to test that I use all methods
possible to check where the values are, but all return blank...




index.php

  


page2.php
";
echo " POST_VARS: ".$_POST["test"]."";
echo " normal test :".$test."";
?>

What could cause this?



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




Re: [PHP] Scheduler, Staff Directory, Work tracker

2002-08-12 Thread Justin French

on 12/08/02 5:59 PM, Paul Dionne ([EMAIL PROTECTED]) wrote:

> Good morning everyone!
> 
> Our organization is in need of a Scheduling program for meeting rooms.  The
> program doesn't need to be very complicated...five or six rooms, outputs a
> list of rooms available for the time the user enters.  We would put it on
> our intranet.

see below

> We could also use a basic staff directory program: Outputs Name, Extension,
> email, position... maybe even a picture.  We would put it on our web site.

This is just a modification of a contact database.  Nearly every PHP & MySQL
beginners tutorial starts with a simple contact database which you can
modify to suit.

I'd really advise actually learning a bit of this stuff, rather than
grabbing something pre-built.  End of the day, nothing will have *exactly*
the features you need (now, or the future), and learning a little about the
two languages will help you build the meeting room program, which no harder
to build than the contact database.

I think phpbuilder.net, sitepoint.com, phpbeginner.com and a few others are
bound to have something you should use as a starting point.


> Lastly, we could use something to keep track of our workflow program
> otherwise referred to as a strategic plan.

Workflow IS a more complex application.


Have a look around at places like sourceforge.net for simular applications.
Again, having a little bit of knowledge from your work with contact database
and meeting room schedules will help you to modify these apps to suit.



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




php-general Digest 12 Aug 2002 09:21:24 -0000 Issue 1520

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


php-general Digest 12 Aug 2002 09:21:24 - Issue 1520

Topics (messages 112050 through 112103):

Re: Pictures and sound in MySQL and access via PHP
112050 by: danny
112056 by: David Freeman
112058 by: RPS Internet
112061 by: danny

Re: Cookie array
112051 by: Maxim Maletsky

Re: Best way to read file
112052 by: Maxim Maletsky
112053 by: Pushkar Pradhan
112055 by: Maxim Maletsky

Re: why true?
112054 by: Maxim Maletsky

Hacker?
112057 by: RPS Internet
112059 by: Tyler Longren
112060 by: RPS Internet
112064 by: Tyler Longren
112088 by: Julio Nobrega

mkdate error?
112062 by: jc
112063 by: RPS Internet
112065 by: chyunj.uci.edu
112066 by: Bas Jobsen
112069 by: chyunj.uci.edu

Free 'search engine' code
112067 by: Edgard Berendsen
112070 by: Justin French
112071 by: Pushkar Pradhan
112072 by: Edgard Berendsen
112074 by: salamander

Re: creating files in OS X
112068 by: David Rice

Re: Random mirrors and download quota
112073 by: Julio Nobrega
112079 by: B.C. Lance

Case Sensitivity
112075 by: Rich Hutchins
112076 by: Andrew Brampton
112080 by: Rasmus Lerdorf
112084 by: Bogdan Stancescu

Re: Newbie question about UNIX command-line directives
112077 by: Al
112081 by: Rasmus Lerdorf

Stoopid Question - PHP.ini path?
112078 by: Wee Keat

Re: passing an array in a link
112082 by: Bogdan Stancescu

mysql_fetch_array problem
112083 by: Jonni
112086 by: Bogdan Stancescu

POST fields through CURL
112085 by: Mike Mannakee
112087 by: Bogdan Stancescu
112090 by: Jonathan Rosenberg
112092 by: Bogdan Stancescu

Please someone help me!
112089 by: Gandalf
112094 by: Rasmus Lerdorf
112096 by: Rasmus Lerdorf

including a php file in an html doc
112091 by: Alexander Ross
112093 by: Bogdan Stancescu

Re: use data-ba_se
112095 by: David Robley

Re: Win PHP Editor...
112097 by: Lord Loh.

Scheduler, Staff Directory, Work tracker
112098 by: Paul Dionne
112103 by: Justin French

Installin PHP as a module
112099 by: Carl Brandenburg
112100 by: RPS Internet

Form variables not passed: register_globals = On
112101 by: Petre Agenbag

Form variables not passing: globals IS on
112102 by: Petre Agenbag

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

thank you for your answer

How do you make a link in MySQL?

I tried following code were the field "geluid" contains a link to a mp3
format of field geluid = varchar(250). The problem is that i just get plain
text instead of a link to the MP3. Even better would be to have a button to
clicjk if you want to hear the sound.


echo  "";
echo "NederlandsOostendsUitleg";

while ($row=mysql_fetch_array($result))
{
echo "";
echo $row[woord_nl]. ""
. $row[woord_ost]. ""
. $row[betekenis_nl]. ""
. $row[geluid];
echo "";
}

Danny
Rodolfo Gonzalez <[EMAIL PROTECTED]> schreef in berichtnieuws
[EMAIL PROTECTED]
> On Sat, 10 Aug 2002, lallous wrote:
> > > I'm making a on-line dictionary. I use PHP and a MySQL Database.
> > > Now I want to add audio-streaming (MP3) and pictures (JPG) to the
database
> > > and retrieve it true PHP. Can sombody help me out with a little
>
> If the files are not "secret" or "for members only", you should better
> store them somewhere under your http document tree, and store *only* their
> filenames in the database, then you could provide a link to the file. I
> think this would be the faster. Or if you want to "protect" the files, you
> could place them outside your document tree, and then use fileread or
> something similar to read them. But I'd suggest you to keep only the
> filenames on the database, and store the files in the filesystem, it'd
> better for the performance and integrity of the files.
>
> Good luck.
>
>
>



--- End Message ---
--- Begin Message ---


 > How do you make a link in MySQL?
 > 
 > I tried following code were the field "geluid" contains a 
 > link to a mp3

 > while ($row=mysql_fetch_array($result))
 > {
 > echo "";
 > echo $row[woord_nl]. ""
 > . $row[woord_ost]. ""
 > . $row[betekenis_nl]. ""
 > . $row[geluid];
 > echo "";
 > }

I'd do something like this:

  . "" . $row[geluid] . ""

To get you link - basically, just put your link into the appropriate
html tags.  If you prefer a button or something else then apply the html
you'd use and go with it.

CYA, Dave




--- End Message ---
--- Begin Message ---

The way I always store links in the database is in the format of varch

[PHP] add options to select in ather page

2002-08-12 Thread Wakan

Hi,
I've listbox with some categories in a page.
When I find that there isn't the category I want, clicking on a link,
I enter in the category managment page.
After adding new categories, whenI close that window,
I'd like to dinamically reload the select on the opener page, without 
reload all the page.
This because there are other field before the category list.
If the user has already filled other field and I reload, he have to refill 
that field again.
Thanks, Carlo



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




[PHP] Can PHP convert word to PDF

2002-08-12 Thread Jack

Dear all
Can PHP be able to convert a Word Document to PDF?


--
Thx a lot!
Jack
[EMAIL PROTECTED]



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




Re: [PHP] Can PHP convert word to PDF

2002-08-12 Thread Justin French

on 12/08/02 7:36 PM, Jack ([EMAIL PROTECTED]) wrote:

> Dear all
> Can PHP be able to convert a Word Document to PDF?

With enough work :)

Although I wouldn't want to have to dig into Word's document structure!

But since Adobe Acrobat can do it, and there are web-based tools available
on adobe.com do do just this, it IS possible.

MASSIVE amounts of work though... think about it -- tables, graphic objects,
pictures, clip art, formatting, text etc etc all need to be analysed and
converted to PDF.


Justin


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




[PHP] Loading Extension...

2002-08-12 Thread Brian McGarvie

OK Help

I always seem to have trouble installing extensions... what am I doing
wrong? (trying to get PDFLib working).

I copied the DLL to c:\php\extensions\php_pdf.dll

However when I try to run a simple example I get:

Fatal error: Call to undefined function: pdf_new() in
C:\Inetpub\wwweloanshop\dev\test\hello.php on line 4

Anyone...



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




[PHP] postgresql - image - php

2002-08-12 Thread Hafiz Malik

anyone know how to store an image to postgresql and load it back using php?



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




[PHP] progress bar

2002-08-12 Thread Serdar Sokmen

Hi,

I would like to add a progress bar to an installtion program I'm writing in
PHP. I basically have one function that I call, it takes about 30 seconds or
so to finish executing... I haven't done such a thing before. Can anyone
plese suggest me some ideas...

Many Thanks

Serdar



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




[PHP] Re: Loading Extension...

2002-08-12 Thread lallous

;extension=php_pdf.dll

you have to uncomment that line above inside php.ini

Elias

"Brian McGarvie" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> OK Help
>
> I always seem to have trouble installing extensions... what am I doing
> wrong? (trying to get PDFLib working).
>
> I copied the DLL to c:\php\extensions\php_pdf.dll
>
> However when I try to run a simple example I get:
>
> Fatal error: Call to undefined function: pdf_new() in
> C:\Inetpub\wwweloanshop\dev\test\hello.php on line 4
>
> Anyone...
>
>



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




[PHP] Re: add options to select in ather page

2002-08-12 Thread lallous

oh well,

it is done via javascript:


existingSelectBox[existingSelectBox.length] = new Option("display text",
"item value", false);


replace the "display text" , "item value" from the popup's selected field
value/text

good luck,

"Wakan" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi,
> I've listbox with some categories in a page.
> When I find that there isn't the category I want, clicking on a link,
> I enter in the category managment page.
> After adding new categories, whenI close that window,
> I'd like to dinamically reload the select on the opener page, without
> reload all the page.
> This because there are other field before the category list.
> If the user has already filled other field and I reload, he have to refill
> that field again.
> Thanks, Carlo
>
>



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




[PHP] CURL's different Options values and their format

2002-08-12 Thread lallous

As you can see that every Option (parameter) when calling curl_Setopt
requires a different mixed value format.

where can i find a full description of how to use each of curl's options ?


I mainly want to login to a page via curl
have curl maintain the cookies
post some fields while logged in
then log off.

but i still need to learn how to use each of the options used  in PHP.

can anyone recommend a good site?

Thank you.



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




Re: [PHP] progress bar

2002-08-12 Thread Justin French

Unless you can break the process up into a series of smaller process' (and
use meta refresh's or javascript redirects to step through each process),
you're out of luck... because the browser can't possibly know what's
happening in the background on the server.

For a cheap and nasty solution, how about an animated GIF that lasts about
40 or 50 seconds? It can start empty, and animate up to full... as long as
the process finishes before the GIF, all will be well.


Justin French



on 12/08/02 8:05 PM, Serdar Sokmen ([EMAIL PROTECTED]) wrote:

> Hi,
> 
> I would like to add a progress bar to an installtion program I'm writing in
> PHP. I basically have one function that I call, it takes about 30 seconds or
> so to finish executing... I haven't done such a thing before. Can anyone
> plese suggest me some ideas...
> 
> Many Thanks
> 
> Serdar
> 
> 


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




RE: [PHP] progress bar

2002-08-12 Thread Tom Kohnen

Hi!
Well i suppose flush() is useful in your case, flush out the output whenever
it is called, and not when the page is fully generated (the usual case)!
Sou you might to sth like this:

- Print 1/4 of the progress bar
- flush
- wait some time
- print 2/4 of the progress bar
- flush


i don't know if it works, but that's the way it'd do it ;)

- Tom

-Original Message-
From: Serdar Sokmen [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 12, 2002 12:06 PM
To: [EMAIL PROTECTED]
Subject: [PHP] progress bar


Hi,

I would like to add a progress bar to an installtion program I'm writing in
PHP. I basically have one function that I call, it takes about 30 seconds or
so to finish executing... I haven't done such a thing before. Can anyone
plese suggest me some ideas...

Many Thanks

Serdar



--
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] can i use --with-unixODBC instead of --with-ibm-db2?

2002-08-12 Thread Doug Smith

Dan,

thank you for asking, i can actually connect to db2 via command line no
problem, i can even connect to the database via TCP/IP using the IBM DB2
Run-Time Client on a Win32 machine. Just having a problem with PHP
seemingly.

it's possible that i can't connect because it doesn't seem that i have
the DB2 Connect software installed according to ./db2setup could
that be possible?


__ connecting via CLP
[auser@ndn auser]$ su db2inst1
Password:
[db2inst1@ndn auser]$ db2 connect to thedb
   Database Connection Information

 Database server= DB2/LINUX 7.2.0
 SQL authorization ID   = DB2INST1
 Local database alias   = THEDB

thanks again,

-Doug



"Dan Vande More" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Doug, can you log in via plain db2 in linux (sorry if you said you could, I
didnt read that far back).

Heres what I do:


*
[root@somelinuxbox /root]# su - db2inst1
[db2inst1@somelinuxbox db2inst1]$ /usr/IBMdb2/V7.1/bin/db2
(c) Copyright IBM Corporation 1993,2001
Command Line Processor for DB2 SDK 7.2.0

You can issue database manager commands and SQL statements from the command
prompt. For example:
db2 => connect to sample
db2 => bind sample.bnd

For general help, type: ?.
For command help, type: ? command, where command can be
the first few keywords of a database manager command. For example:
 ? CATALOG DATABASE for help on the CATALOG DATABASE command
 ? CATALOG  for help on all of the CATALOG commands.

To exit db2 interactive mode, type QUIT at the command prompt. Outside
interactive mode, all commands must be prefixed with 'db2'.
To list the current command option settings, type LIST COMMAND OPTIONS.

For more detailed help, refer to the Online Reference Manual.

db2 => CONNECT TO MYDB2DB user MICHAEL
Enter current password for MICHAEL:

   Database Connection Information

 Database server= OS/400 4.4.0
 SQL authorization ID   = MICHAEL
 Local database alias   = CMSFIL

db2 =>

**

Names changed to protect my network!:)

Can you do that?


Thanks

Dan
-Original Message-
From: Doug Smith [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 09, 2002 7:02 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] can i use --with-unixODBC instead of --with-ibm-db2?


Matt,

I wish you were my boss :) I love MySQL and would want to use it instead
of db2 (seeing i could probably have had it working with php last week ;) )
but Somehow my boss loves to waste money on IBM products... and then
hires on people who don't know how to use them well (i.e. me!). My
philosophy is: don't waste money on it, if you can use some open source --
for example he wanted to use IBM WAS (websphere application server) but, PHP
will do everything we need to do, and is a lot easier to deal with than the
bulky WAS.

Anyways.

I had seen the IBM document that you referenced about connecting DB2 to
PHP, in fact, it's the main document i used to start attempting to get PHP
to work with DB2. The second doc you referenced from phpbuilder.net was
definately a good find -- had a couple ideas that i hadn't tried (i.e.
catalogging the db, running apache as db2inst1 [still trying to get that to
work, db2inst1 doesn't have the priviledges that root has, and henceforth
can't access all the files needed by apache])

Matt, thanks again for all your help!

-Doug

"Matt" <[EMAIL PROTECTED]> wrote in message
047001c23f46$f7707c40$[EMAIL PROTECTED]">news:047001c23f46$f7707c40$[EMAIL PROTECTED]...
> It seems way too difficult to configure db2 on linux. Let alone trying to
do
> it on freebsd, which I hope to tackle that next week.
>
> I tell you though, I really love mysql, it's so easy to use, and
configure.
> mysql just works. mysql's performance on a table I have that has roughly
> 250,000 rows of address entries, beats our as/400 with db2 by orders of
> magnitude  and  mytest box is a  Celeron 300.
>
> Anyway, this is where I found the solution to the gibberish line that I
put
> in my doc (see step 3) :
>
http://www7b.boulder.ibm.com/dmdd/library/techarticle/scott/0614_scott.html
>
> You may find this of help:
> http://www.phpbuilder.com/mail/php-db/2001011/0076.php
>
> Oh, did you call your instance db2inst1?
>
>



--
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] progress bar

2002-08-12 Thread Dan Hardiker

To make it look that little bit nicer, you could use flash to display the
bar... but I think that make take a little longer than you'd like for
development.

> Hi!
> Well i suppose flush() is useful in your case, flush out the output
> whenever it is called, and not when the page is fully generated (the
> usual case)! Sou you might to sth like this:
>
> - Print 1/4 of the progress bar
> - flush
> - wait some time
> - print 2/4 of the progress bar
> - flush
> 
>
> i don't know if it works, but that's the way it'd do it ;)
>
> - Tom
>
> -Original Message-
> From: Serdar Sokmen [mailto:[EMAIL PROTECTED]]
> Sent: Monday, August 12, 2002 12:06 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] progress bar
>
>
> Hi,
>
> I would like to add a progress bar to an installtion program I'm writing
> in PHP. I basically have one function that I call, it takes about 30
> seconds or so to finish executing... I haven't done such a thing before.
> Can anyone plese suggest me some ideas...
>
> Many Thanks
>
> Serdar
>
>
>
> --
> 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


-- 
Dan Hardiker [[EMAIL PROTECTED]]
ADAM Software & Systems Engineer
First Creative Ltd



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




Re: [PHP] progress bar

2002-08-12 Thread lallous

I agree with the flush() solution.

In addition, output a javascript code to update the display in the
browser...
for example:
documeny.theform.progressPercent.value++

Elias
"Tom Kohnen" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi!
> Well i suppose flush() is useful in your case, flush out the output
whenever
> it is called, and not when the page is fully generated (the usual case)!
> Sou you might to sth like this:
>
> - Print 1/4 of the progress bar
> - flush
> - wait some time
> - print 2/4 of the progress bar
> - flush
> 
>
> i don't know if it works, but that's the way it'd do it ;)
>
> - Tom
>
> -Original Message-
> From: Serdar Sokmen [mailto:[EMAIL PROTECTED]]
> Sent: Monday, August 12, 2002 12:06 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] progress bar
>
>
> Hi,
>
> I would like to add a progress bar to an installtion program I'm writing
in
> PHP. I basically have one function that I call, it takes about 30 seconds
or
> so to finish executing... I haven't done such a thing before. Can anyone
> plese suggest me some ideas...
>
> Many Thanks
>
> Serdar
>
>
>
> --
> 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] image function

2002-08-12 Thread NoWhErEMan

I want to use the image functions listed in www.php.net to manipulate
images. My server is Apache 2.0.x.x with PHP 4.2.2 , built on windows
platform. Is it uncomment the ;extension=php_gd.dll in php.ini enough to
enable such functions?

NoWhErEMaN



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




RE: [PHP] image function

2002-08-12 Thread Jay Blanchard

[snip]
I want to use the image functions listed in www.php.net to manipulate
images. My server is Apache 2.0.x.x with PHP 4.2.2 , built on windows
platform. Is it uncomment the ;extension=php_gd.dll in php.ini enough to
enable such functions?
[/snip]

Not on Apache. You will need to compile/install the GD library
(http://www.php.net/manual/en/ref.image.php) and maybe jpeg-6b. There may be
other extensions that you will need, for instance if you want to use True
Type fonts in your images. There is plenty of documentation on installation
and set up.

HTH!

Jay



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




RE: [PHP] image function

2002-08-12 Thread Tom Kohnen

Hi!
Well you have to uncomment it AND restart apache afterwards!
Plus, i assume that your extensions dir in the php.ini is correct, if not,
apache will give you an error message ;)

Have a nice day,
- Tom

-Original Message-
From: NoWhErEMan [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 12, 2002 2:30 PM
To: [EMAIL PROTECTED]
Subject: [PHP] image function


I want to use the image functions listed in www.php.net to manipulate
images. My server is Apache 2.0.x.x with PHP 4.2.2 , built on windows
platform. Is it uncomment the ;extension=php_gd.dll in php.ini enough to
enable such functions?

NoWhErEMaN



--
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] image function

2002-08-12 Thread NoWhErEMan

Thanks Jay,
I known i need to install a lot of staffs to get all the functions works(GD
Lib, FreeType Lib, libjpeg, libpng, zlibetc etc).
But i only need a few of them, so if i just load the php_gd.dll, what
functions included?? I canr found any information about that.
And one more, does php_gd2.dll also a GD lib?

Thanks in advance
Nowhereman
"Jay Blanchard" <[EMAIL PROTECTED]> ¼¶¼g©ó¶l¥ó·s»D
:002001c241fc$9f644d70$[EMAIL PROTECTED]
> [snip]
> I want to use the image functions listed in www.php.net to manipulate
> images. My server is Apache 2.0.x.x with PHP 4.2.2 , built on windows
> platform. Is it uncomment the ;extension=php_gd.dll in php.ini enough to
> enable such functions?
> [/snip]
>
> Not on Apache. You will need to compile/install the GD library
> (http://www.php.net/manual/en/ref.image.php) and maybe jpeg-6b. There may
be
> other extensions that you will need, for instance if you want to use True
> Type fonts in your images. There is plenty of documentation on
installation
> and set up.
>
> HTH!
>
> Jay
>
>



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




RE: [PHP] image function

2002-08-12 Thread Jay Blanchard

[snip]
I known i need to install a lot of staffs to get all the functions works(GD
Lib, FreeType Lib, libjpeg, libpng, zlibetc etc).
But i only need a few of them, so if i just load the php_gd.dll, what
functions included?? I canr found any information about that.
And one more, does php_gd2.dll also a GD lib?
[/snip]

The DLL is a Windows library AFAIR, and contains the GD functions when
included on a Windows server. You do not have to enable this extension on an
Apache server (unless it is Apache on Windows). You just have to make sure
that PHP is compiled with all of the proper libraries for your use of GD.

As for the second DLL, I am not sure. I haven't done a lot of Windows GD
installations, it does not look familiar.

HTH!

Jay



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




Re: [PHP] image function

2002-08-12 Thread NoWhErEMan

Thank you Jay, Yup my apache is on Windows : )
Let's me try first.
"Jay Blanchard" <[EMAIL PROTECTED]> ¼¶¼g©ó¶l¥ó·s»D
:002301c24201$b28caf00$[EMAIL PROTECTED]
> [snip]
> I known i need to install a lot of staffs to get all the functions
works(GD
> Lib, FreeType Lib, libjpeg, libpng, zlibetc etc).
> But i only need a few of them, so if i just load the php_gd.dll, what
> functions included?? I canr found any information about that.
> And one more, does php_gd2.dll also a GD lib?
> [/snip]
>
> The DLL is a Windows library AFAIR, and contains the GD functions when
> included on a Windows server. You do not have to enable this extension on
an
> Apache server (unless it is Apache on Windows). You just have to make sure
> that PHP is compiled with all of the proper libraries for your use of GD.
>
> As for the second DLL, I am not sure. I haven't done a lot of Windows GD
> installations, it does not look familiar.
>
> HTH!
>
> Jay
>
>



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




[PHP] Re: including a php file in an html doc

2002-08-12 Thread Alexander Ross

I still seem to be missing something.  I guess the easiest thing for me to
do is just show you my code.  All I want is to be able to reference the
$hotspots array from any .html page oon my site.  I thought I could include
hotspot.php and then reference the array using  syntax.  What should I
do?  The one requirement is that I cannot make all my pages PHP. They must
be html.

HTML PAGE (test.html):


Untitled Document









PHP PAGE (hotspot.php):



"Bogdan Stancescu" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi Alexander!
>
> You're missing the distinction between a server-side script (PHP) and a
> client-side script (JavaScript, VB etc). When you use the syntax you
> used, the browser attempts to download the src and execute it - and it
> can't do that, because in the best case the php code runs on the server
> and returns "test" (your echo()) and then it "tries" to run that as php
> code, which again it doesn't know how. It does work for JavaScript
> however, because it downloads the JavaScript file (which is plain text)
> and then executes the code (because it knows how to execute JavaScript).
>
> What you should do would be write
> 
> instead of "
> Bogdan
>
> Alexander Ross wrote:
> > I have a .php file whose purpose, ultimately, is to set one variable;
> > $hotspot.  Now I want to include that var in a bunch of places in my
html
> > page (it must remain html).  So this was my thought.  In the 
include
> > the following:
> >
> >