php-windows Digest 4 Jun 2003 06:40:16 -0000 Issue 1760
Topics (messages 20169 through 20180):
Problem on Date Function
20169 by: Jack
20170 by: George Nicolae
Re: Save As html problems
20171 by: Radovan Radic
querying an online excel file from htm
20172 by: Brian 'Bex' Huff
20173 by: Leon
PHP 5??
20174 by: Bryan Thoreson
No input file specified
20175 by: PHP User
Re: file path and folder selection .......
20176 by: sven
IMAP
20177 by: perry
20178 by: Frank M. Kromann
Unable to get php pages to load
20179 by: B Hodge
Deleting users from htpasswd
20180 by: Guru P Chaturvedi
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 ---
Dear all
Here is the situation :
Our automation system will generate a large number of pdf file to a specific
folder every day. The name format for all these pdf file is
"xxxx.20030602.pdf".
xxxx is the name of the file,
20030602 is last working date.
what i want to do is:
1. create a sub-folder inside this specific folder, and name it to current
month(Jun-2003)
2. move the pdf which is not containning last working's file name to this
new create sub-folder.
3. the files with last working date's name will stay on the specific folder.
question :
1. I had used a date function with "w" parameter to check if current date i
execute the script is monday (1), if so , i tell the script to take the
current date minus 3, so the date will become last friday (as our last
working day), then i can base on this date to tell the script which files
should not be move to sub-folder!
q: how i can do a date subtraction in php? (eg. "2003-06-02" - 3 =
"2003-05-30")
--- End Message ---
--- Begin Message ---
$date1="2003-06-02";
$date2=date("Y-m-d",strtotime($date1)-3*24*60*60);
echo $date2;
--
Best regards,
George Nicolae
IT Manager
___________________
PaginiWeb.com - Professional Web Design
www.PaginiWeb.com
"Jack" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Dear all
> Here is the situation :
>
> Our automation system will generate a large number of pdf file to a
specific
> folder every day. The name format for all these pdf file is
> "xxxx.20030602.pdf".
> xxxx is the name of the file,
> 20030602 is last working date.
>
>
> what i want to do is:
> 1. create a sub-folder inside this specific folder, and name it to current
> month(Jun-2003)
> 2. move the pdf which is not containning last working's file name to this
> new create sub-folder.
> 3. the files with last working date's name will stay on the specific
folder.
>
> question :
>
> 1. I had used a date function with "w" parameter to check if current date
i
> execute the script is monday (1), if so , i tell the script to take the
> current date minus 3, so the date will become last friday (as our last
> working day), then i can base on this date to tell the script which files
> should not be move to sub-folder!
>
> q: how i can do a date subtraction in php? (eg. "2003-06-02" - 3 =
> "2003-05-30")
>
>
--- End Message ---
--- Begin Message ---
Solution is adding
session_cache_limiter('private');
before session_start(); altough i dont know why :)
"Radovan Radic" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi guys,
>
> I have problems with Save As option from Internet Explorer. Pages are
> generated by PHP, basically using include some lib scripts, header, footer
> and generating contents from MySQL db.
> I am using sessions, manually url rewriting, no frames.
> When i click Save As from IE, and choose option "Web Page, complete
(*.htm,
> *.html)" i get page saved but it appears to be blank, only <html><!--
saved
> from url...--><body></body></html>
> Why is this happening?
> When i choose option "Web Page, HTML only" it is saved correctly, but if i
> would have pictures or css they couldnt be saved.
>
> Anyone has experiences with this?
>
> Radovan
>
>
--- End Message ---
--- Begin Message ---
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
hmmm... this can be done using Apache POI and the HSSF (horrible spreadsheet
format) projects:
http://jakarta.apache.org/poi/
http://www.xml.com/lpt/a/2003/01/22/cocoon-excel.html
but you need to know Java. You could make a command-line program that processes
the spreadsheets into HTML using Cocoon...
If you're more comfortable with C, you can try the Chicago project:
http://sourceforge.net/projects/chicago/
but its only in beta for now...
- --
Brian 'Bex' Huff <[EMAIL PROTECTED]>
PGP Key: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x5A06A150
| Hi everyone,
|
|
|
| I have the following IT-problem:
|
|
|
| I want to read some fields from an Excel file (located on FTP-Server) and to
| view the result in html.
|
|
|
| My .xls file has two colons: "Product's Name" and "Price"
|
| And I would like to be able after giving as input QM "Quantity of Money" to
| my html page to view out all products that are cheaper than QM. Knowing that
| all this products are saved in the excel file on the FTP.
|
|
|
| Does anyone has a solution (or idea) to solve my problem
|
|
|
| Thanks for your answers
|
|
|
| Nana from
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQE+3JpEmexGJFoGoVARAnIcAKDNMNttOKFDp5USesoXR5kvziO+YwCfSnDz
Tsv59fTUoxQvXSfsWYFzfcw=
=ixvU
-----END PGP SIGNATURE-----
--- End Message ---
--- Begin Message ---
Work around the problem....
Save the xls file as a csv rather (then it is easy)
Cheers
----- Original Message -----
From: "Brian 'Bex' Huff" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, June 03, 2003 2:53 PM
Subject: [PHP-WIN] querying an online excel file from htm
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
>
> hmmm... this can be done using Apache POI and the HSSF (horrible
spreadsheet
> format) projects:
>
> http://jakarta.apache.org/poi/
> http://www.xml.com/lpt/a/2003/01/22/cocoon-excel.html
>
> but you need to know Java. You could make a command-line program that
processes
> the spreadsheets into HTML using Cocoon...
>
> If you're more comfortable with C, you can try the Chicago project:
>
> http://sourceforge.net/projects/chicago/
>
> but its only in beta for now...
>
> - --
>
> Brian 'Bex' Huff <[EMAIL PROTECTED]>
> PGP Key: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x5A06A150
>
> | Hi everyone,
> |
> |
> |
> | I have the following IT-problem:
> |
> |
> |
> | I want to read some fields from an Excel file (located on FTP-Server)
and to
> | view the result in html.
> |
> |
> |
> | My .xls file has two colons: "Product's Name" and "Price"
> |
> | And I would like to be able after giving as input QM "Quantity of Money"
to
> | my html page to view out all products that are cheaper than QM. Knowing
that
> | all this products are saved in the excel file on the FTP.
> |
> |
> |
> | Does anyone has a solution (or idea) to solve my problem
> |
> |
> |
> | Thanks for your answers
> |
> |
> |
> | Nana from
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.2.1 (MingW32)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iD8DBQE+3JpEmexGJFoGoVARAnIcAKDNMNttOKFDp5USesoXR5kvziO+YwCfSnDz
> Tsv59fTUoxQvXSfsWYFzfcw=
> =ixvU
> -----END PGP SIGNATURE-----
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--- End Message ---
--- Begin Message ---
Does anyone know what the roadmap for PHP 5 is? I'm trying to patiently wait
for the ability to create a ssl network stream, and my understanding is that
will come when PHP 5 is released, or is there another way to do this in the
Windows platform.
Bryan
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Bryan Thoreson 6/3/2003
Infotech Professional
CLA OIT University of Minnesota
Phone: 612-626-8051
Cell Phone: 612-308-6229
Email: [EMAIL PROTECTED]
Calendar: http://calendar.yahoo.com/public/thor0215
HelpDesk: http://helpdesk.cla.umn.edu
--- End Message ---
--- Begin Message ---
I have installed php and configured it per the install manual.
I associated .php extensions to run php scripts via the php interpreter and
ran the test.php script successfully.
I then configured my Netscape 3.63 server mime-types to support php as
magnus-internal/shellcgi
Then I enabled php extensions to run on Netscape 3.63.
When I first ran test.php via webserver I got the security alert about
accessing php cgi's directly so I modified the php.ini file
cgi.force_redirect = 0 and now all I get is "No input file specified" when I
try to load the same test.php script.
Can someone help me with this please.
--- End Message ---
--- Begin Message ---
there is no good solution for this problem. but imagine, if a remote script
could scan your local drive!
but there ae some workarounds with your browser:
if you want your user to upload a file from his drive, you can use <input
type="file"> as start. there are some php-script that handle those uploads.
for the download try playing with the http header. the user can decide,
where to save your file. there are also scripts around.
hope this helps.
ciao SVEN
"Stephen" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
news:[EMAIL PROTECTED]
> PHP is server side only. This means it can only effect the machine that
the
> script is run on. To allow the client who is visiting your website to
> browser their OWN harddrive, you need to use a client side language such
as
> java/javascript/etc. However it is possible for the client to browser the
> server's hard drive using a php script, but I do not believe this is what
> you want.
>
> Stephen
>
> ----- Original Message -----
> From: "toby z" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, May 23, 2003 11:51 AM
> Subject: [PHP-WIN] file path and folder selection .......
>
>
> > hay guyz
> >
> > how can i let a user browse through directory stucture on his machine
> >
> > and select a folder
> > where he is to save a file ?????
> >
> > i know thats possible with vb
> > but is an activex control from vb the only way to go about it ?????
> >
> >
> >
> > thnx a mill :)
> >
> > toby
> >
> > __________________________________________________
> > It's Samaritans' Week. Help Samaritans help others.
> > Call 08709 000032 to give or donate online now at
> http://www.samaritans.org/support/donations.shtm
> >
> > --
> > PHP Windows Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
>
>
--- End Message ---
--- Begin Message ---
Is IMAP built into the latest windows binary of PHP? If not, how can I
include it?
thanks
--
Perry Leets
Inovec Optimization and Control Systems
Eugene, Oregon
--- End Message ---
--- Begin Message ---
You need the imap extension (php_imap.dll) it can be included from php.ini
extension=php_umap.dll
or from a script with the dl() command (if you are using CGI)
- Frank
> Is IMAP built into the latest windows binary of PHP? If not, how can I
> include it?
> thanks
>
> --
> Perry Leets
> Inovec Optimization and Control Systems
> Eugene, Oregon
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
--- End Message ---
--- Begin Message ---
I have installed php and configured it per the install manual.
I associated .php extensions to run php scripts via the php interpreter and
ran the test.php script successfully.
I then configured my Netscape 3.63 server mime-types to support php as
magnus-internal/shellcgi
Then I enabled php extensions to run on Netscape 3.63.
When I first ran test.php via webserver I got the security alert about
accessing php cgi's directly so I modified the php.ini file
cgi.force_redirect = 0 and now all I get is "No input file specified" when I
try to load the same test.php script.
Can someone help me with this please.
--- End Message ---
--- Begin Message ---
Hi,
i am storing all users for accessing apache resources in a file called
my.users i am able to add/modify users and passwords using the htpasswd
utility. But not able to remove a particular user... are there anyways of
doing it? can u please help...
with Warm Regards,
Guru.
---------------------------------------
Phone: (+91)9845290270
URL: www.gangarasa.com
Yahoo IM: guru4vedi
MSN: [EMAIL PROTECTED]
---------------------------------------
--- End Message ---