[PHP] RE: Build Url based on screen width

2004-06-19 Thread YC Nyon
I need to build a url based on screen width.
The code is below

if (screen.width  800) {
 document.write('a href=frameview.php?winwidth=880winheight=540');
   
}
else if (screen.width = 800) {

document.write('a href=frameview.php?winwidth=680winheight=440');

}


However, I need to add some parameters to the url dynamically. For example,
a href=frameview.php?winwidth=680winheight=440street=durbon
a href=frameview.php?winwidth=680winheight=440street=secker
...

Not getting success in try to combine Javascript and PHP scripting.


Nyon




---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.690 / Virus Database: 451 - Release Date: 22/05/2004

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



[PHP] RE: Reading MS Access date/time field in PHP

2004-02-15 Thread YC Nyon
I'm trying to extract the year for a query from a date/time field in MS
Access via PHP.
The data type is Date/Time and formated as Long Integer.
Viewing it in Access 31 December 2003
Viewing it in PHP without formating 2003-12-31 00:00:00

I want to create a query based on the year only. I could do it with some
string functions. However, fundamentally, it's not correct.
Anyone can help?

Regards
Nyon

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



[PHP] RE: Check to remove file that are older than 1 week

2004-02-05 Thread YC Nyon
Hi,

I want to delete files than are older than 1 week from a specific directory.
Anyone mind to share their code? Can't anything on phpbuilder on this.

Regards
Nyon

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



[PHP] RE: Security access control by ASP in a php application

2004-01-04 Thread YC Nyon
I am working on a project where the main module (including the security
access/login) is developed using ASP. My module which is in PHP has to read
the security permissions set by ASP (via cookies) to enable users to use it.

How do I go about that? or any other better solutions.

Nyon

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



[PHP] RE: Comparison between Postnuke and PHPnuke

2003-12-17 Thread YC Nyon
I am comparing between this two php-based CMS?
My focus is really 
1. the availability of modules/add-ons.
Not too sure, but seems PHPnuke has more add-ons than Postnuke.

2. ease of maintaining a group of contributors/writers

Nyon

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



[PHP] RE: PostNuke vs PHPNuke

2003-12-17 Thread YC Nyon
I am comparing between this two php-based CMS?
My focus is really 
1. the availability of modules/add-ons.
Not too sure, but seems PHPnuke has more add-ons than Postnuke.

2. ease of maintaining a group of contributors/writers

Nyon

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



[PHP] Solutions for 1970 epoch date restriction

2003-11-09 Thread YC Nyon
Hi,

I have a table that includes 3 columns for day, month and year. Example:
Day, Month, Year
11,Jan, 1974
4,Sep, 1921
...
...

I need to construct a query where users can specify a starting date.
Currently, I stuck in mktime function became of the 1970 epoch problem. It
gives an error for dates before 1970.
Anyone has  a solution?


Regards
Nyon

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



[PHP] RE: Limit keyword not supported in MS-SQL

2003-09-20 Thread YC Nyon
I can connect to MS-SQL via php. However, the LIMIT keyword is not
supported. Looking
at the archieves, SELECT TOP X was recommended. Works ok, however i need to
specify a start row, ie. Page 1, Page 2.

Any ideas?

Nyon



---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.509 / Virus Database: 306 - Release Date: 12/08/2003

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



[PHP] RE: CRM for website

2003-06-19 Thread YC Nyon
this is slightly off-topic. I run a nonprofit website where people are
invited to contribute articles, papers, etc.
i'm in search of a system where i can manage all this website maintainence
(backups, restarting servers) and on-going correspondence. in some cases,
they ask me to contact them 2 months later, etc. What i don't need is a
content management system.
I need a system to hold all this task together. It doesn't have to be
web-based.
thanks.

Rgds
nyon


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.463 / Virus Database: 262 - Release Date: 17/03/2003


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



[PHP] RE: Calculates time elapsed between two date

2003-03-12 Thread YC Nyon
Hi,

I need to get the time/date (ie. 1 day 12 hours 11 min 4sec) between 2 time
dates.
Can't seem to find any of these functions in the PHP manual.

Thanks
Nyon




---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.449 / Virus Database: 251 - Release Date: 27/01/2003


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



[PHP] RE: Calculate UTC Time from GPS device

2003-03-08 Thread YC Nyon
Hi,

I got time data from a GPS unit  like 054544 which is rollback to 1970s or
something.
Has anyone got script to convert it into current time?


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.449 / Virus Database: 251 - Release Date: 27/01/2003


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



[PHP] RE: Calling a COM object

2003-02-20 Thread YC Nyon
Hi,

Is there a tutorial on how to call COM objects in PHP? 
My PHP runs on Windows.

TIA
nyon


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.449 / Virus Database: 251 - Release Date: 27/01/2003

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




[PHP] RE: Login system using PHP/MySql

2003-02-13 Thread YC Nyon
Hi,

I have looked at many examples session-based of login/password system to
protect webpages but can't get it to work. Seems simple but... I have php
and mysql installed in my windows server.

If any kind soul can point me to a working (easy) setup of this task, i
would be most grateful.

Nyon


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.449 / Virus Database: 251 - Release Date: 27/01/2003


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




[PHP] RE: PHP-based SMS solution

2003-02-11 Thread YC Nyon
I am developing a web-based GPS vehicle tracking solution using php.
I'm looking on how php can communicate with a SMSC using Smpp to issue AT
commands.
Development platform is windows 2000.

Thanks
Nyon


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.449 / Virus Database: 251 - Release Date: 27/01/2003


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




[PHP] Convert comma-delimited file or form into arrays

2002-10-12 Thread YC Nyon

 I want to convert input data below (either from a webpage form or a uploadedtext 
file) to a set of 
arrays. The final step is to construct SQL statements to be inserted into Postgresql 
db (which i can do).
Anyone got sample scripts that does the 1st part.

ID, Name, Telephone
1, John, 34343534
2,Nancy, 6876767






TIA
Nyon






[PHP] dll file for postgres-php connection

2002-09-12 Thread YC Nyon

Looking for this file, php_pgsql.dll
running php 4.1.2 on w2k.
anyone where i can find it.

Regards
Nyon






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




[PHP] RE: A straightforward user login coding

2002-09-09 Thread YC Nyon

I been searching for a user authentication codes all night but got no where
with the results.
Therefore, if someone can tell me where to find
1. a user authentication using Mysql
2. don't use cookies.
3. also a logout script.

my os is windows.

TIA
Nyon


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




[PHP] RE: File upload security and virus considerations

2002-09-06 Thread YC Nyon

I am doing an application where users can upload a *.zip file into the
server. Virus and hackers threats are my main concern.
Anyone mind sharing their experiences on how to deal with it. If u suggest
any antivirus, please specifiy the name. the server is on windows platform.
Also, if it's virus, how do i tell php to return a webpage to the user
saying it was unsuccessful.

TIA
Nyon








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




[PHP] Reading URL in address bar

2002-08-26 Thread YC Nyon


I want to pass the current url (appearing on the browser address bar), say
http://www.mydomain.com?cat.php=234 to appear in a form field
in the a new page, say category.php.
I am sure it's something to do with HTTP_variables or CGI.referrer but can't
seem to get the one needed.

TIA
Nyon




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




[PHP] Protect PHP coding

2002-08-01 Thread YC Nyon

Is there any method to encrypt PHP files.

Nyon


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




[PHP] Formatting timestamp date in MySQL

2002-04-09 Thread nyon

Hi,

I need to recall a date data in a MySQL database.
The column is set as date timestamp(8).
A sample of date is 20020409

I use the PHP Date function to format it back to say 9th April 2002.
$date_formated = date($date, 'S M Y' );
However, it's still doesn't appear as formatted.

Anyone mind sharing their code to do this?

Nyon



[PHP] How to have custom error pages rather than CGI Error. The specifed ...

2002-01-31 Thread Nyon

Hi,

I am running PHP on W2k. How do I redirect an url if a php file is not found
and
the web browser returns CGI not found. The specified CGI misbehaved..
Tried looking in IIS Error pages but can't find the html file.

Regards
Nyon


-- 
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] an error Maximum execution time of 30 seconds exceeded in C:\...

2001-09-04 Thread nyon


   Hi,

I got an error Maximum execution time of 30 seconds exceeded in C:\... on line 224 
while
accessing a PHP page tie to a Mysql database.

1. Is 30 seconds the normal setting before it times out ?
2. Is this error is due to PHP or Mysql ?
3. How to I set it to 60 seconds ?

Thanks
Nyon



[PHP] Re: Reliability of Window-version of PHP

2001-05-10 Thread nyon

I'm planning to use PHP for Windows on Windows 2000 Advanced Server as CGI.
Wondering if Php on Windows is stable/robust enough for a 1 million hits per
month site ?

Nyon



[PHP] RE: articles to install Red Hat server, mysql, php

2001-03-16 Thread Nyon

Hi,

I found a lot of articles that teaches how to install Red Hat Linux, MySQL
and PHP.
However, most of them are not elaborate enough to go through the entire
process.
Anyone with some solid resources on these ?

Also, can one install the server version of Red Hat with a GUI interface
rather the plain
command line ?

Nyon

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