RE: [PHP] time() problem

2002-09-18 Thread Savaidis



Hello all!

I use time() to keep UNIX seconds from 1970 to a timestamp(14) MySQL field.
But when I read it (Dt_last) it is TO big compearing with today=time() in
a php script that is only some seconds later.
today : 1032350421 Dt_last: 20001101165838

What can I do?
Thanks!
Makis



Makis



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




[PHP] mailing list program?

2002-06-22 Thread savaidis


Is there any mailing list prorgam for Linux server? I want to have text
import possibility of addresses.


Thanks

Makis




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


RE: [PHP] shtml problem

2002-06-19 Thread savaidis

For a strange reason iframes DOESN'T work with shtml.
(doen't pass the   var ip = '!--#echo var=REMOTE_ADDR--';
as parameter with a FORM/POST  to a php script. It shows is but it doesn't
pass it!)

I had to change them to FRAMEs.

Makis


 -Original Message-
 From: Analysis  Solutions [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, June 18, 2002 11:22 PM
 To: PHP List
 Subject: Re: [PHP] shtml problem


 On Tue, Jun 18, 2002 at 12:40:40PM +0300, savaidis wrote:
 
  echo ('table border=0trtdiframe src=main_l.php
 width=200 height=600
  frameborder=0');

 Not that this is your problem, but rather a warning that you're heading in
 a bad direction...  iframes don't work in Netscape 4 (at least when
 Java'Scrap is turned off).

 --Dan

 --
PHP classes that make web design easier
 SQL Solution  |   Layout Solution   |  Form Solution
 sqlsolution.info  | layoutsolution.info |  formsolution.info
  T H E   A N A L Y S I S   A N D   S O L U T I O N S   C O M P A N Y
  4015 7 Av #4AJ, Brooklyn NY v: 718-854-0335 f: 718-854-0409

 --
 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] real IP?

2002-06-19 Thread savaidis


using the ip 

var ip = '!--#echo var=REMOTE_ADDR--';

in shtml script I get one IP address NOT the same with this one that gives
me the IP query program and it is allways the same (I have dynamic access
so my IP must vary)
I think it is the IP of my host.
Can't I get my real IP number?

Thanks

Makis




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


[PHP] shtml problem

2002-06-18 Thread savaidis


I use a  search.shtml  script to pass  with a form some vars (user's IP)  to
a PHP script to keep it in a MySQL record.

When I run the search.shtml directrly , I have no problem all vars  pass and
are  keept OK.

But when I run it from a frame then the IP var is undefuned (null).
--code for main.php ---
echo ('table border=0trtdiframe src=main_l.php width=200 height=600
frameborder=0');
echo ('/iframe/tdtdiframe src=search.shtml width=780
height=600/iframe/td/tr/table');
--end code -

What happens and what I can do? The dir is the same.

Thanks


Makis




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


[PHP] fishcart on win98

2002-06-14 Thread savaidis


I have a problem trying to install Fishcart on my win98 system.(Also a
ActivePerl problem)
Has anyone succeed this?

PS Sorry for non-topic. I had no answer from the fishchart list.


Makis



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




[PHP] small problem

2002-06-12 Thread savaidis


Where in config have I to change something  to make Apache understand
/root/index.php as /root/   ?

Thanks

Makis


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




[PHP] e-commerce example

2002-06-08 Thread savaidis



I'm looking for  e-commerce example (PHP+MySQL) so I don't start from zero
and save some time.

Does  somebody knows something about?

Thanks

Makis Savaidis


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




RE: [PHP] still running the old version after recompiling??

2002-06-03 Thread savaidis

I forgot to write I run on a win98, so no shell :)
So what?

Makis


 -Original Message-
 From: Evan Nemerson [mailto:[EMAIL PROTECTED]]
 Sent: Monday, June 03, 2002 1:52 AM
 To: savaidis; [EMAIL PROTECTED]
 Subject: Re: [PHP] still running the old version after recompiling??


 Do echo $PATH from a shell. This will output a list of several folders,
 seperated by a semi-colon. Check each of these folders for a file named
 Php. Rename to php. That should do the trick.



 On Sunday 02 June 2002 11:01 am, savaidis wrote:
  I have one similar problem.
 
  I had a directory Php under my root directory that was the root for
  Apache.
  Then I rename Php to php but after restart, reset ecc - some months
  now- still recognize only Php and NOT php.
 
  What's wrong?
 
  Makis
 
   -Original Message-
   From: Andy [mailto:[EMAIL PROTECTED]]
   Sent: Sunday, June 02, 2002 4:51 PM
   To: [EMAIL PROTECTED]
   Subject: Re: [PHP] still running the old version after recompiling??
  
  
   Hello Jason,
  
   you have been right, I did a new one on a fresh php untared dir.
   And the new
   php install is recognized.
  
   But I am still fighting with the installation. I need
 freetype2 and I did
   configure it ok, compiled freetype, gd2 but still I am getting a:
   function: imagettfbbox()  not found
  
   Php did not complain about not finding freetype. Maybe php
 compiled with
   freetype 1 but how come?
   This drives me cracy! I did install php on several machines at
   home running
   the same operating system like my provider is offering. It
 always worked
   fine.
  
   do u have a good advice?
  
   Thank you for your help,
  
   Andy
  
  
  
  
   Jason Wong [EMAIL PROTECTED] schrieb im Newsbeitrag
   [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
  
On Sunday 02 June 2002 17:32, Andy wrote:
 Hi there,

 I did recompile php with different flags. Phpinfo() tells
 me that I
 am still running the old insatllation! I did restart apache after
  
   compiling.
  
 So whats wrong. Did I forget something?

 I did
 configure with some flags
 make
 make install

 restart apache
   
1) To avoid any complications I always compile from a
 freshly unpacked
  
   tar.gz.
  
2) Stop apache before doing make install (not sure whether it
  
   makes any
  
difference but it doesn't hurt to do so).
   
--
Jason Wong - Gremlins Associates - www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design  Hosting * Internet  Intranet Applications
 Development *
   
/*
There are two ways of disliking poetry; one way is to
 dislike it, the
other is to read Pope.
-- Oscar Wilde
*/
  
   --
   PHP General Mailing List (http://www.php.net/)
   To unsubscribe, visit: http://www.php.net/unsub.php

 --
 I am prepared to meet anyone, but whether anyone is prepared for
 the great
 ordeal of meeting me is another matter.

 Samuel Clemens



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




RE: [PHP] still running the old version after recompiling??

2002-06-03 Thread savaidis

There is not in PATH the directory name (Php or php)
Neither something related to Apache.


Makis


 -Original Message-
 From: Jason Wong [mailto:[EMAIL PROTECTED]]
 Sent: Monday, June 03, 2002 10:31 AM
 To: [EMAIL PROTECTED]
 Subject: Re: [PHP] still running the old version after recompiling??
 
 
 On Monday 03 June 2002 12:31, savaidis wrote:
  I forgot to write I run on a win98, so no shell :)
  So what?
 
 The equivalent in Win98 is to open an MS-DOS prompt and type: pathENTER
 
 -- 
 Jason Wong - Gremlins Associates - www.gremlins.com.hk
 Open Source Software Systems Integrators
 * Web Design  Hosting * Internet  Intranet Applications Development *
 
 /*
 Whom the gods would destroy, they first teach BASIC.
 */
 
 
 -- 
 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] still running the old version after recompiling??

2002-06-02 Thread savaidis

I have one similar problem.

I had a directory Php under my root directory that was the root for
Apache.
Then I rename Php to php but after restart, reset ecc - some months now-
still recognize only Php and NOT php.

What's wrong?

Makis


 -Original Message-
 From: Andy [mailto:[EMAIL PROTECTED]]
 Sent: Sunday, June 02, 2002 4:51 PM
 To: [EMAIL PROTECTED]
 Subject: Re: [PHP] still running the old version after recompiling??


 Hello Jason,

 you have been right, I did a new one on a fresh php untared dir.
 And the new
 php install is recognized.

 But I am still fighting with the installation. I need freetype2 and I did
 configure it ok, compiled freetype, gd2 but still I am getting a:
 function: imagettfbbox()  not found

 Php did not complain about not finding freetype. Maybe php compiled with
 freetype 1 but how come?
 This drives me cracy! I did install php on several machines at
 home running
 the same operating system like my provider is offering. It always worked
 fine.

 do u have a good advice?

 Thank you for your help,

 Andy




 Jason Wong [EMAIL PROTECTED] schrieb im Newsbeitrag
 [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
  On Sunday 02 June 2002 17:32, Andy wrote:
   Hi there,
  
   I did recompile php with different flags. Phpinfo() tells me that I am
   still running the old insatllation! I did restart apache after
 compiling.
   So whats wrong. Did I forget something?
  
   I did
   configure with some flags
   make
   make install
  
   restart apache
 
  1) To avoid any complications I always compile from a freshly unpacked
 tar.gz.
  2) Stop apache before doing make install (not sure whether it
 makes any
  difference but it doesn't hurt to do so).
 
  --
  Jason Wong - Gremlins Associates - www.gremlins.com.hk
  Open Source Software Systems Integrators
  * Web Design  Hosting * Internet  Intranet Applications Development *
 
  /*
  There are two ways of disliking poetry; one way is to dislike it, the
  other is to read Pope.
  -- Oscar Wilde
  */
 



 --
 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] refresh (part of) a page?

2002-05-20 Thread savaidis

I look and I search everything, it looks I'm reaching to a wall :)
I used Netscape, I uploaded to my internet server, still the same.
Plus, I cannot find header already send at manual.

The error message is :
Warning: Cannot add header information - headers already sent by (output
started at /mpla-mpla/main.php:41) in /mpla-mpla /main.php on line 83

Note that I use header() without problem on another php script on the same
server.(to redirect from a parcked domain)

Someone could help?

Thanks

Makis

 -Original Message-
 From: Jason Wong [mailto:[EMAIL PROTECTED]]
 Sent: Sunday, May 19, 2002 3:35 PM
 To: [EMAIL PROTECTED]
 Subject: Re: [PHP] refresh (part of) a page?


 On Sunday 19 May 2002 18:03, savaidis wrote:
  I want to refrech a part of my page (or the whole page) using PHP.
  Periodically, using a time delay.
  Should I use frames?

 You cannot refresh part of a page without resending the whole
 page. You can
 use frames.

  Also I tried to use header (...) calling the same page with different
  name (and then back to the same page) but I got the warning:
  header already send.

 *Read* the manual and see what it says about header() and header already
 send.

 --
 Jason Wong - Gremlins Associates - www.gremlins.com.hk
 Open Source Software Systems Integrators
 * Web Design  Hosting * Internet  Intranet Applications Development *

 /*
 A great many people think they are thinking when they are merely
 rearranging their prejudices.
   -- William James
 */


 --
 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] refresh (part of) a page?

2002-05-19 Thread savaidis


I want to refrech a part of my page (or the whole page) using PHP.
Periodically, using a time delay.
Should I use frames?

Also I tried to use header (...) calling the same page with different name
(and then back to the same page) but I got the warning:
header already send.
I tried also Location and pagename.php,FALSE but also with no results.

I want to refresh some pictures (jpg) but I don't want to use multi picture
jpg as the page will be to large.


Makis Savaidis



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




RE: [PHP] PHP+MySQL - Excel ?

2002-05-18 Thread savaidis

I use the ODBC connection with no problem, I get about 1000 rows to Excel in
seconds.
First row contains the colums names.
But I wonder if there is a way to write back the data to MySQL database from
Excel.
(with ODBC connection, becouse with files I think is possible)


Makis


 -Original Message-
 From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]]
 Sent: Friday, May 17, 2002 7:54 PM
 To: Chris Boget
 Cc: [EMAIL PROTECTED]
 Subject: Re: [PHP] PHP+MySQL - Excel ?


 No, this has nothing to do with PHP.  You can run MySQL on Windows or
 UNIX, doesn't matter, and set up a connection directly from Excel to
 MySQL.

 PHP can of course run anywhere you want and manipulate the data in MySQL
 which will then be reflected in Excel.

 -Rasmus

 On Fri, 17 May 2002, Chris Boget wrote:

   It is also possible to connect directly to MySQL from Excel
 via MyODBC.
 
  True, but only if you are running PHP on a windows platform, yes?
 
  Chris
 
 
  --
  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 General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] some Javascript functions with PHP

2002-05-17 Thread savaidis

And what about resolution of the screen?
How is possible to keep it in record too or to tailor the page?

(get_browser() is not supported from my server, I'm waiting my sypport team
answer about browscap.ini)

Thanks


Makis


 -Original Message-
 From: Kevin Stone [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, May 16, 2002 8:16 PM
 To: savaidis; [EMAIL PROTECTED]
 Subject: Re: [PHP] some Javascript functions with PHP


 The user's IP address is stored in the PHP global, $REMOTE_ADDR.  Browser
 information can be extracted from the get_browser()
  function.  http://www.php.net/manual/en/function.get-browser.php
 -Kevin

 - Original Message -
 From: savaidis [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Thursday, May 16, 2002 7:44 AM
 Subject: [PHP] some Javascript functions with PHP


 
  I use:
  print('SCRIPT LANGUAGE=JavaScript');
  print('document.write(Code Name: +navigator.appCodeName+BR);');
  print('/SCRIPT');
 
  How is possible to keep this info to a MySQL database with PHP?
  I think is not possible becouse PHP runs first.
  Also how is possible to get with PHP info like this (browser type ecc)
  and user's IP address  without Javascript?
  Or use Javascript and then run a php script to write it to the MySQL
  database?
 
 
  Thanks
 
  Prodromos Savaidis
 
 
 
  --
  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] a set of *real* random numbers?

2002-05-17 Thread savaidis


I want to show in random way 8 pictures (jpg) from a collection of 20 I have
,  so the users have more interest to visit the page.

I use the follow small code with the help from the manual:
But the random numbers are all accending order  for 1 - 20 and in cycle, as
the seed comes from computers timming.
So I get always the same sets of 8 numbers. (i.e. 1-8,  3-10,
15-16-17-18-19-20-1-2 ecc)

What can I use for seed for *real* rnd?


(I FOUND IT, I CHANGED  10 to 1000  AND IT WORKS!)


Thanks -    PLEASE DON'T  ANSWER!!! **


Makis Savaidis



=== the code ==
?php

// seed with microseconds
function make_seed() {
list($usec, $sec) = explode(' ', microtime());
return (float) $sec + ((float) $usec * 10);
}

// create 8 random numbers for 8 pictures - not doubles
$arr = array ();
$cnt2=0;
do  // 8 times
{
do  // produce rnd number
{
$cnt=1; $break=0;
srand(make_seed());
$randval1 = rand(1,20); // for a palette of 20 pictures
echo ( rnd = $randval1 BR );
  for ($cnt1=1; $cnt1=$cnt2; $cnt1++) // check for doubles
  {
  if ($arr[$cnt1]==$randval1)  $break=1;

  }
}  while ($break==1);

  $cnt2++; $arr[$cnt2] = $randval1;

echo( cnt2 $cnt2 arr1 $arr[$cnt2] BR );

} while ($cnt28);


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




[PHP] some Javascript functions with PHP

2002-05-16 Thread savaidis


I use:
print('SCRIPT LANGUAGE=JavaScript');
print('document.write(Code Name: +navigator.appCodeName+BR);');
print('/SCRIPT');

How is possible to keep this info to a MySQL database with PHP?
I think is not possible becouse PHP runs first.
Also how is possible to get with PHP info like this (browser type ecc)
and user's IP address  without Javascript?
Or use Javascript and then run a php script to write it to the MySQL
database?


Thanks

Prodromos Savaidis



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




[PHP] checkbox doesn't pass?

2002-04-04 Thread savaidis


I have a html form with some text (T1) and checkbox (C1) fields to pass
it to a php script.

Accessing text fields has no problem.

There is a problem when I use
$C1=$HTTP_POST_VARS['C1']
to take the value of C1 (ON)
If it is not checked, then it is not set at all. (??why??)
So I use :
if (!isset($C1)) { $C1=0 }
but still I get an warning that C1 is not set, on my screen.
That happens before the use  of isset function.
How can I susspent this warning message?

What's wrong?

Makis Savaidis
Thessaloniki
Greece



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




RE: [PHP] checkbox doesn't pass?

2002-04-04 Thread savaidis

Thank you both for help and info! You were both very fast :)
I didn't know I could  not to use $HTTP_POST_VARS . Now it works all right.
But IF I still want  to use $HTTP_POST_VARS, what then? What about the
warning when checkbox is not checked?

Thanks

Makis


 -Original Message-
 From: Jason Wong [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, April 04, 2002 5:51 PM
 To: [EMAIL PROTECTED]
 Subject: Re: [PHP] checkbox doesn't pass?


 On Thursday 04 April 2002 20:46, [EMAIL PROTECTED] wrote:

  why do you use $HTTP_POST_VARS? Do I miss something?

 For security reasons.

 Manual  Security



 --
 Jason Wong - Gremlins Associates - www.gremlins.com.hk

 /*
 Above all things, reverence yourself.
 */

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

2002-03-22 Thread savaidis

Hi all!

I'm quite new to PHP so I have two questions:

How is possible to click on an image and run a php function?

Also how is possible to pass some php vars to javascript vars?


Makis
Thessaloniki
Greece

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