[PHP] while question

2008-11-17 Thread Alain Roger
Hi, i'm on PHP training and our lector is telling us that to avoid counting an array item amout thanks count($my_array), he tells we can do: while($my_array) { ... do something } but from experience this is an infinity loop... it should be always something like $count = count($my_array); while($

[PHP] $_POST in header

2008-11-18 Thread Alain Roger
Hi, i have a PHP page with a form. when user click on submit button, it sends form data to itself (so it sends data $_POST to itself). i would like to access to header itself to reset those $_POST data to avoid (in case of F5 under windows system) to resend the same data serveral time. therefore h

[PHP] mysql_fetch_object and modulo %

2008-11-19 Thread Alain Roger
Hi, how can i do to test if the row number (record number) sent by mysql_fetch_object is odd or even ? i mean that: while ($row = mysql_fetch_object($result)) { if($row%2 == 1) { ... } } the $row doesn't return a value... like 1, 2 or 6 for example... thx. F

[PHP] store class zithin session

2008-11-20 Thread Alain Roger
Hi, i have a class and i would like to store it zithin session. i was thinking to use serialize/unserialize but it does not work. any idea how to do it ? thx. F.

Re: [PHP] store class zithin session

2008-11-21 Thread Alain Roger
Hi Stut, On Thu, Nov 20, 2008 at 12:25 PM, Stut <[EMAIL PROTECTED]> wrote: > On 20 Nov 2008, at 11:01, Alain Roger wrote: > >> i have a class and i would like to store it zithin session. >> i was thinking to use serialize/unserialize but it does not work. >

[PHP] issue with php.ini

2008-11-23 Thread Alain Roger
Hi, i've reinstalled PHP 5.2.6 on my windows XP x64 and as usual i uncomment the following lines: extension=php_mysql.dll extension=php_pdo.dll extension=php_pdo_mysql.dll extension=php_pdo_pgsql.dll extension=php_pdo_sqlite.dll extension=php_pgsql.dll extension=php_sqlite.dll extension=php_dbg.dl

Re: [PHP] issue with php.ini

2008-11-23 Thread Alain Roger
Yes, i do it in that way but nothing changed On Sun, Nov 23, 2008 at 6:34 PM, Ashley Sheridan <[EMAIL PROTECTED]>wrote: > On Sun, 2008-11-23 at 17:33 +0100, Alain Roger wrote: > > Hi, > > > > i've reinstalled PHP 5.2.6 on my windows XP x64 and as usual i unc

Re: [PHP] issue with php.ini

2008-11-23 Thread Alain Roger
On Sun, Nov 23, 2008 at 6:41 PM, Ashley Sheridan <[EMAIL PROTECTED]>wrote: > On Sun, 2008-11-23 at 18:32 +0100, Alain Roger wrote: > > Yes, i do it in that way but nothing changed > > > > On Sun, Nov 23, 2008 at 6:34 PM, Ashley Sheridan > > <[EMAIL PROTECTED]

Re: [PHP] issue with php.ini

2008-11-23 Thread Alain Roger
Well if you check my 2nd email you will see my signature :-) but it does not matter... i did several little changes but i'm scared that only modules link to php.exe at the "make" command status have been loaded. :-( my changes where about modules loading, extension folder, and so on... -- Alain

Re: [PHP] issue with php.ini

2008-11-23 Thread Alain Roger
On Sun, Nov 23, 2008 at 6:57 PM, Nathan Rixham <[EMAIL PROTECTED]> wrote: > i've reinstalled PHP 5.2.6 on my windows XP x64 and as usual i >>> extension=php_mysql.dll >>> extension=php_pdo.dll >>> extension=php_pdo_mysql.dll >>> extension=php_pdo_pgsql.dll >>> extension=php_pdo

Re: [PHP] issue with php.ini

2008-11-23 Thread Alain Roger
On Sun, Nov 23, 2008 at 7:27 PM, Alain Roger <[EMAIL PROTECTED]> wrote: > > > On Sun, Nov 23, 2008 at 6:57 PM, Nathan Rixham <[EMAIL PROTECTED]> wrote: > >> i've reinstalled PHP 5.2.6 on my windows XP x64 and as usual i >>>>>>>

Fwd: [PHP] issue with php.ini

2008-11-23 Thread Alain Roger
> > > On Sun, Nov 23, 2008 at 6:57 PM, Nathan Rixham <[EMAIL PROTECTED]> wrote: > >> i've reinstalled PHP 5.2.6 on my windows XP x64 and as usual i extension=php_mysql.dll extension=php_pdo.dll extension=php_pdo_mysql.dll extension=php_pdo_pgsql.dll ex

Re: [PHP] issue with php.ini

2008-11-23 Thread Alain Roger
Alain Roger wrote: > >> it seems that it's a known problem. can someone comment it ? >> http://www.wampserver.com/phorum/read.php?2,40270,40311 >> >> > "you have to install PostgreSQL since enable extension only is not enough" > > makes sence! &g

[PHP] PHP attaching css and JS files to current page

2008-11-30 Thread Alain Roger
Hi, is there a way how a PHP class can attach JS (javascript) and CSS documents to current web page in which the class is instanced ? till now i used an "echo" which "write" a code into current document. in this javascript, i used to have a createElement function to attache C\other CSS or JS file

Re: [PHP] PHP attaching css and JS files to current page

2008-11-30 Thread Alain Roger
TED]>wrote: > On Sun, 2008-11-30 at 14:23 +0100, Alain Roger wrote: > > Hi, > > > > is there a way how a PHP class can attach JS (javascript) and CSS > documents > > to current web page in which the class is instanced ? > > till now i used an "echo&q

Re: [PHP] PHP attaching css and JS files to current page

2008-11-30 Thread Alain Roger
> > > > > Can you not just write all of the CSS/Javascript that you need > > right > > from the get-go in the same place you're writing out your > > Javascript > > now? > > > > > I'm not sure I follow you then. You say you want your class to be able > to incl

Re: [PHP] PHP attaching css and JS files to current page

2008-11-30 Thread Alain Roger
you're right if you want to write them directly in the index.php. but in my case i want the class to do it by itself. On Sun, Nov 30, 2008 at 3:49 PM, Ashley Sheridan <[EMAIL PROTECTED]>wrote: > On Sun, 2008-11-30 at 15:08 +0100, Alain Roger wrote: > > > > > > &g

[PHP] filter function vs regular expression

2008-12-20 Thread Alain Roger
Hi, i'm reading a book about PHP and i was wondering why regular expressions are so often used to check format of variables or emails while the function filter exists since version 5.2. What are the plus of regular expression while checking variable format ? thx. -- Alain ---

[PHP] table mixing PHP, javascript, ajax and CSS

2008-12-28 Thread Alain Roger
Hi, i'm currently working on some project which needs in several pages, a table to display query results...till now nothing special. however, in order to not create several time the table and features i've decided to create my own templates including PHP classes, CSS and javascript. this "table"

[PHP] retrieve result of a query

2008-12-28 Thread Alain Roger
Hi, basically i have a php file with several parameter received in GET or POST. this PHP page execute a db query and should return a specific amount of records and columns. however i do not want to display those records like that... i have a web page with javascript and the javascript should read

[PHP] best solution to ecommerce web pages

2009-06-07 Thread Alain Roger
Hi, i'm currently investigating what would be the best solution to develop an e-commerce web site. should i use some PHP template engine like smarty or CMS like Joomla, Drupal ? thanks a lot, -- Alain --- Windows XP x64 SP2 / Fedora 10 KDE

[PHP] CSV file

2009-06-24 Thread Alain Roger
Hi, i would like to import the content of a CSV file into my database. but in order to show a progress bar to user (to let him know that process is still working on) i would like to determine before to start, how many records / lines are in the CSV file. is there a way to do that ? thanks a lot.

[PHP] Store and retrieve photo from PostgreSQL

2007-02-25 Thread Alain Roger
Hi, I would like to store and retrieve photo from my DB (PostgreSQL). However, i do not know how to do it. Where can i find some example ? thanks a lot, -- Alain Windows XP SP2 PostgreSQL 8.1.4 Apache 2.0.58 PHP 5

[PHP] how to display images stored in DB

2007-02-25 Thread Alain Roger
Hi, i stored all my pictures in my PostgreSQL DB as bytea type. Now i would like to know how can i display them in my PHP pages ? where can i find some example ? thanks a lot, -- Alain Windows XP SP2 PostgreSQL 8.1.4 Apache 2.0.58 PHP 5

[PHP] how to retrieve pictures from postgreSQL DB

2007-02-25 Thread Alain Roger
Hi, I previously sent email about process how to retrieve and save pictures in postgreSQL DB. Now i know how to save them in DB, however i would like to know how can i retrieve the pictures and display them without knowing the picture extension ? i mean that in my DB i have GIFs, JPGs pictures.

[PHP] pictures stored in PostgreSQL DB

2007-03-03 Thread Alain Roger
Hi, It's amazing that my previous post has raised so much consideration about the fact to store or not pictures into DB. However, none of those posts answered to my question... How can i retrieve and display those pictures to my PHP pages ? Basically, on my PHP page I have some texts and I would

Re: [PHP] pictures stored in PostgreSQL DB

2007-03-03 Thread Alain Roger
you, I would make a page that does nothing but returns an image. Something like getimage.php?image= and call it with . Hope that helps. - Original Message From: Alain Roger <[EMAIL PROTECTED]> To: PHP General List Sent: Saturday, March 3, 2007 3:18:25 AM Subject: [PHP] pictur

Re: [PHP] pictures stored in PostgreSQL DB

2007-03-03 Thread Alain Roger
Hi Rob, thanks for information. As you told me i use 2 files to do what i need. 1 for displaying th thumbnail and the other just to display the picture. That's works great. However, how can i resize the picture (in my thumbnail) if my pictures are stored to DB ? i mean that my picture is stored

[PHP] Pager_Wrapper_MDB2 and PHP

2007-03-03 Thread Alain Roger
Hi, How to get the number of items stored in the Pager_Wrapper_MDB2 object ? thx. -- Alain Windows XP SP2 PostgreSQL 8.1.4 Apache 2.0.58 PHP 5

[PHP] file open dialog box

2007-03-04 Thread Alain Roger
Hi, I would like to have an Open file dialog box in my PHP page like it exist on Microsoft Windows. This dialog box should allow user to select a file from his computer. Is there something like that in PHP ? thx. -- Alain Windows XP SP2 PostgreSQL 8.1.4 Apa

[PHP] upload file

2007-03-04 Thread Alain Roger
Hi, I would like in fact to make more precise my previous post. I would like in fact to restrict the file extension (and therefore the user possibility). My user should be able only to upload files with extension JPEG, BMP, GIF. How can i set those parameter ? thx. -- Alain --

[PHP] TabPage like in Java or Windows

2007-03-04 Thread Alain Roger
Hi, I would like to know if it exist a class with allow to have a windowed form tabbed like under Firefox (each web page is included into a tabbed page control) I attached a screenshot to this post in order to illustrate what i'm looking for. thanks a lot for your comment. -- Alain ---

[PHP] module and access rights

2007-03-04 Thread Alain Roger
Hi, I would like to implement a module access rights in my web application. Basically after authentication and authorization. Logged user has a particular profile which allow him to have access to some part of the web application. after reading the security guide from *php*sec.org webpage, i'm c

Re: [PHP] module and access rights

2007-03-04 Thread Alain Roger
Hi, do not worry, i will not store a password in a cookie. it is stored encrypted into database. Al. On 3/4/07, Stut <[EMAIL PROTECTED]> wrote: Alain Roger wrote: > I would like to implement a module access rights in my web application. > Basically after authentication and a

Re: [PHP] module and access rights

2007-03-04 Thread Alain Roger
data should be stored ? because i can store in DB the sessionID, and check it to every DB request user does...but a sessionID can be easily fake. So what should I do ? Al. On 3/4/07, Tijnema ! <[EMAIL PROTECTED]> wrote: On 3/4/07, Stut <[EMAIL PROTECTED]> wrote: > > Alain Roger

Re: [PHP] file open dialog box

2007-03-05 Thread Alain Roger
Thanks for your answer Chris, but i already used this example yesterday as base for my request. Alain On 3/5/07, Chris <[EMAIL PROTECTED]> wrote: Alain Roger wrote: > Hi, > > I would like to have an Open file dialog box in my PHP page like it > exist on > Microsoft Windo

Re: [PHP] module and access rights

2007-03-05 Thread Alain Roger
d check that each time the user does an action. Tijnema - Now to the PHP list.... On 3/4/07, Alain Roger <[EMAIL PROTECTED]> wrote: > > Ok, but i would be very glad to know how can i REALLY authenticate the > user. > for example, user is logged, so i have in the cookie his

Re: [PHP] module and access rights

2007-03-05 Thread Alain Roger
other request. In short, this issue has been discussed to death, not only by the PHP community but also by the web community at large. If you're really paranoid, use SSL to secure all data transferred, but just accept that it's possible that a session may be hijacked. However, unless yo

[PHP] session question

2007-03-05 Thread Alain Roger
Hi, I have an "index.php" page which does not user session_start(); command. However in this "index.php" page, there are some $_SESSION['...']; variables stored. How is it possible that $_SESSION['...']; works even if no session has been created before ? moreover, if i use a print "Session ID :

Re: [PHP] session question

2007-03-05 Thread Alain Roger
the index.php page is the first page where user should logon. it consists of 3 flags (english, french and slovak). when use click on 1 flags, it reload the "index.php" page and changes the login and password words by their relative translation into the flag country selected. if user click on LOGO

[PHP] change Style Sheet by programming

2007-03-06 Thread Alain Roger
Hi, I'm creating a Class which should allow user to setup the default theme CSS file he would like to use to render a class object. therefore i have a simple function : public function SetTheme(string $ThemeName) { $this->m_ThemeUsed = $ThemeName; } which set the theme (CSS file

[PHP] namespace equivalent in PHP

2007-03-07 Thread Alain Roger
Hi, Coming from C++ world, i would like to know what in PHP, is the equivalent of namespace in C++ ? I have several class which should work together, or Class B which is used to create a private property of class A. How can i do that without including the class B into the class A definition ? t

[PHP] Class and subclass

2007-03-07 Thread Alain Roger
Hi, i have a class A with some properties. i have a class B with several public functions (i.e : Render()) i would like to do something like that : class B() { B() { } public function Render() { ... } } class A { private $myotherclass; A() { $this->myotherclass = new classB(); } public fu

Re: [PHP] Class and subclass

2007-03-07 Thread Alain Roger
A() or B() mean constructors of th class A and B respectively. Al. On 3/7/07, Robert Cummings <[EMAIL PROTECTED]> wrote: On Wed, 2007-03-07 at 14:23 +0100, Alain Roger wrote: > Hi, > > i have a class A with some properties. > i have a class B with several public funct

Re: [PHP] Class and subclass

2007-03-07 Thread Alain Roger
Yes, for sure. On 3/7/07, Tijnema ! <[EMAIL PROTECTED]> wrote: On 3/7/07, Alain Roger <[EMAIL PROTECTED]> wrote: > > A() or B() mean constructors of th class A and B respectively. > > Al. Yes but they are functions. On 3/7/07, Robert Cummings <[EMAIL PROTEC

[PHP] Javascript and PHP interaction

2007-03-08 Thread Alain Roger
Hi, I would like to know if there is a way how PHP code can extract from ElementID some property values. for example, i have the following PHP page : my main div"; $new_Width = somefunction(); print "my child div"; ?> in my CSS file (which is link to my HTML page), i have : .maindiv { width :

[PHP] Back to security

2007-03-10 Thread Alain Roger
Hi, I'm continuing to work on securing my administration part of the website. based on previous posts and reading materials, I was thinking to use the following process : 1. user has to logon through a standard "http://"; web page 2. login and encrypted password are compared with what is stored

Re: [PHP] Class and subclass

2007-03-13 Thread Alain Roger
it should work. You haven't told us anything about the "not working" part... var_dump $this->myotherclass and see what's in it. On Wed, March 7, 2007 8:45 am, Alain Roger wrote: > Yes, for sure. > > On 3/7/07, Tijnema ! <[EMAIL PROTECTED]> wrote: >> >

[PHP] time or date picker ?

2007-03-19 Thread Alain Roger
Hi, I've already seen some webpages which include a time or date picker (like a calendar) written in PHP and on which user could type the year and after, select the month and date (using month). I'm looking for something like that. Where can i find one for free ? thanks -- Alain --

[PHP] image digit to check password

2007-03-20 Thread Alain Roger
Hi, There is a trend on internet that when you want to change your password, you need to type : 1. the former password. 2. the new one 3. a 2nd time the new one to confirm that no mistake has been done on step 2. however, several website also propose an additional security to avoid hacking/brute

[PHP] close session when browser is closed

2007-03-21 Thread Alain Roger
Hi, I would like to know what is the best solution for my problem. When a user is connected to a https page and a session is open, if user close his browser, the session ID is still active in the browser "history". It means that next time when user will start his browser, the browser will re-use

Re: [PHP] close session when browser is closed

2007-03-21 Thread Alain Roger
Hi Brad, yes this is one possibility, but since i use https, i should not be afraid by storing data in $_SESSION variables. So i see that solution as a heavy one. Is there another possibility ? thanks, Al. On 3/21/07, Brad Bonkoski <[EMAIL PROTECTED]> wrote: Alain Roger wrote: >

Re: [PHP] close session when browser is closed

2007-03-24 Thread Alain Roger
wrote: If you set the session timeout to 0, then it dies when the browser is quit. On Wed, March 21, 2007 12:37 pm, Alain Roger wrote: > Hi, > > I would like to know what is the best solution for my problem. > > When a user is connected to a https page and a session is open, if

[PHP] how to control if it is a date

2007-03-24 Thread Alain Roger
Hi, user can enter a string with following format dd.mm.. Application should transform it to postgresql timestamp date. however, i would like to be sure that what user typed is a real and valid date. how can i do that ? i was thinking to use date(string format, strtotime(string_entered_by_u

Re: [PHP] how to control if it is a date

2007-03-24 Thread Alain Roger
thanks i did not know it. On 3/24/07, Brice <[EMAIL PROTECTED]> wrote: On 3/24/07, Alain Roger <[EMAIL PROTECTED]> wrote: > > Hi, > > user can enter a string with following format dd.mm.. > Application should transform it to postgresql timestamp date. > >

[PHP] dynamic web interface and size

2007-04-03 Thread Alain Roger
Hi, My question is not so much about PHP language but more about concept and PHP result. Basically i'm currently working on web application to administrate the web content of a website. My customer would like to have a nice web application interface, so it means a lot of images, and so on. Howev

[PHP] warning message to hide

2007-04-14 Thread Alain Roger
Hi, Today i discovered that when my host webserver has some issue with PostgreSQL database, my code displays the following error message : *"Warning*: pg_connect() [function.pg-connect]: Unable to connect to PostgreSQL server: could not connect to server

Re: [PHP] secure login

2007-04-15 Thread Alain Roger
Hi Ross, I previously worked on this theme and the general feeling / feedback from the mailing list was the following one : - access to your login window, via HTTPS (SSL) - hash you password (inspired by : http://phpsec.org/articles/2005/password-hashing.html) - when user is authenticated, you c

[PHP] improve speed of PHP answers

2011-02-09 Thread Alain Roger
Hi, i have apache/PHP server installed on Windows 7. my computer is a quad-core CPU with 6 GB RAM and i would like to speed up PHP answer to requests. how can i do that ? which parameter should i tune ? thx. -- Alain --- Windows 7 x64 / Fed

Fwd: [PHP] improve speed of PHP answers

2011-02-09 Thread Alain Roger
-- Forwarded message -- From: Alain Roger Date: Wed, Feb 9, 2011 at 6:45 PM Subject: Re: [PHP] improve speed of PHP answers To: ad...@antonakis.co.uk yes i understand however even Linux has bugs and issues... i'm currently installing Fedora 14 as web server and joomla ha

Re: [PHP] improve speed of PHP answers

2011-02-09 Thread Alain Roger
. On Wed, Feb 9, 2011 at 6:47 PM, Alexis Antonakis wrote: > But what is the webpage trying to do? > Is it straight html? Are you accessing data from a database? What exactly? > > > On 09/02/11 10:45, Alain Roger wrote: > >> yes i understand however even Linux has bugs a

[PHP] CMS identification

2012-03-18 Thread Alain Roger
Hi, i have a customer who need to update his website but he was not able to tell me more about it. he just told me it's a CMS and sent me a screenshot. To understand what is it i need first to test it on my local server but i don't know what is it as CMS. could you help me ? i attached to my post

Re: [PHP] CMS identification

2012-03-18 Thread Alain Roger
ok so here it is: http://i220.photobucket.com/albums/dd277/alainroger/cms-login.png On Sun, Mar 18, 2012 at 11:25 PM, Stuart Dallas wrote: > On 18 Mar 2012, at 22:20, Alain Roger wrote: > > > i have a customer who need to update his website but he was not able to > tell m

Re: [PHP] very strange behavior.... incomplete query performed

2007-08-14 Thread Alain Roger
nch <[EMAIL PROTECTED]> wrote: > > Are you using E_ALL? > > Any error messages? > > My first suspect is you are hitting php.ini time_limit setting, or > possibly the memory_limit. > > On Sun, August 12, 2007 7:09 am, Alain Roger wrote: > > Hi, > > >

Re: [PHP] php.ini of PHP 5.2.3

2007-08-14 Thread Alain Roger
It can be confusing, especially when the error log shows something > about openssl but doesn't say what openssl is missing, and folks think > it's still missing openssl itself, when it's really missing libeay. > > On Sat, August 11, 2007 6:02 am, Alain Roger wrote: > &

[PHP] LDAP

2007-08-21 Thread Alain Roger
Hi, I have a stupid issue with ldap_connect. i've reinstalled PHP, postgreSQL and restore my data (web files) after reinstalling my PC. now, when i try : $ds = ldap_connect($ldaphost, $ldapport) or die("Could not connect to $ldaphost"); nothing works. i wrote before error_reporting(E_ALL); in or

Re: [PHP] Re: LDAP

2007-08-21 Thread Alain Roger
I found what was the problem :-( in PHP.ini the Temp directory was not setup the same. i do not know what is the link with LDAP module, but since i updated php.ini, it works correctly. Alain On 8/21/07, Colin Guthrie <[EMAIL PROTECTED]> wrote: > > Alain Roger wrote: > > Hi

Re: [PHP] LDAP

2007-08-22 Thread Alain Roger
Hi, Have you tried in the php.ini to setup error_reporting to E_ALL and display error messages (display_errors = On) ? I had a similar problem 2 days ago and it was due to another mistake in my PHP code. But i did not get any error message or more precisely, i did not get any WARNING message. sin

[PHP] best way for PHP page

2008-01-01 Thread Alain Roger
Hi, i would like to improve my coding quality when i use PHP code and for that i would request your help. in my web developer experience, i have to confess that i've never succeeded in spliting PHP code from HTML code. i mean that all my web pages consist of PHP code mixed with HTML code (for ren

[PHP] menu andfolder question

2008-01-05 Thread Alain Roger
Hi, Serveral web sites have a menu and when you pass your mouse over a link, the browser statusbar only shows the folder where is located the file link, not the complete address including the file link. i mean if you take web site : http://www.zend.com/en/ when you pass your mouse cursor over "Co

Re: [PHP] menu andfolder question

2008-01-05 Thread Alain Roger
2008 12:29 PM, chris smith <[EMAIL PROTECTED]> wrote: > On Jan 5, 2008 10:23 PM, Alain Roger <[EMAIL PROTECTED]> wrote: > > Hi, > > > > Serveral web sites have a menu and when you pass your mouse over a link, > the > > browser statusbar only shows the folder

Re: [PHP] menu andfolder question

2008-01-05 Thread Alain Roger
this is how i solved my issue :-) On Jan 5, 2008 4:28 PM, jeffry s <[EMAIL PROTECTED]> wrote: > > > On Jan 5, 2008 7:36 PM, Alain Roger <[EMAIL PROTECTED]> wrote: > > > ok, maybe i did not write my question well. > > i already used it because i s

[PHP] website tree

2008-01-05 Thread Alain Roger
Hi, let's imaging we have the following thing : www.mywebsite.com/company/index.php www.mywebsite.com/company/profile.php www.mywebsite.com/services/index.php how can i detect in which address am i ? for example how to retrieve www.mywebsite.com/services or www.mywebsite.com/company -- Alain

[PHP] avoid server folder reading

2008-01-19 Thread Alain Roger
Hi, I would like to know how to avoid (using PHP code) any user to read the content of my website folder ? as my website is hosted by and external company, i do not have access to apache conf file. thanks a lot, -- Alain Windows XP SP2 PostgreSQL 8.2.4 / MS

Re: [PHP] avoid server folder reading

2008-01-19 Thread Alain Roger
I should be able to setup a .htaccess file. On Jan 19, 2008 7:17 PM, Jochem Maas <[EMAIL PROTECTED]> wrote: > Alain Roger schreef: > > Hi, > > > > I would like to know how to avoid (using PHP code) any user to read the > > content of my website folder ? > &g

Re: [PHP] avoid server folder reading

2008-01-19 Thread Alain Roger
ch <[EMAIL PROTECTED]> wrote: > On Sat, January 19, 2008 11:57 am, Alain Roger wrote: > > I would like to know how to avoid (using PHP code) any user to read > > the > > content of my website folder ? > > as my website is hosted by and external company, i do

Re: [PHP] avoid server folder reading

2008-01-20 Thread Alain Roger
this is what i already did before asking :-) On Jan 19, 2008 7:53 PM, Nathan Nobbe <[EMAIL PROTECTED]> wrote: > On Jan 19, 2008 1:46 PM, Alain Roger <[EMAIL PROTECTED]> wrote: > > > Sorry if my post was not clear... > > in fact i would like to hide the contant o

[PHP] flash with PHP

2008-02-03 Thread Alain Roger
Hi, i would like to have a flash menu in my PHP website. this is no problem. My problem is how to exchange data between PHP andFlash (in both direction). i found a lot of posts on this theme, but nothing with really works under ActionScript 3 and PHP. does anyone already solved such topic ? thx

Re: [PHP] flash with PHP

2008-02-03 Thread Alain Roger
this is right under actionscript 2.0... i'm working under actionscript 3.0 :-) On Feb 3, 2008 7:28 PM, Casey <[EMAIL PROTECTED]> wrote: > On Feb 3, 2008, at 12:23 AM, "Alain Roger" <[EMAIL PROTECTED]> wrote: > > > Hi, > > > > i would like to

Re: [PHP] Flash menu

2008-02-23 Thread Alain Roger
Sorry to tell you that but i've tested my flash menu on Linux Mandriva and Redhat without any problem... :-) On Sat, Feb 23, 2008 at 10:14 AM, Børge Holen <[EMAIL PROTECTED]> wrote: > On Saturday 23 February 2008 09:46:24 Alain Roger wrote: > > Hi, > > > > i hav

[PHP] string effect

2008-02-29 Thread Alain Roger
Hi, since a long time now, i see that some paragraphs of text are cut off and the additional text is replaced by 3 dots. e.g: "this is the original long text but without any sense and also stupid" effect desired : "this is the original long text..." this is usually used for title articles or so

[PHP] send form by email with image spam controler

2008-03-08 Thread Alain Roger
Hi, i would like to allow web site users to fill a form when they request information. the purpose is to have something standardized and later on to archive all those request into database. to avoid spammer, i was thinking to use a code image which change to each page refresh in order to be sure t

[PHP] SMTP

2008-03-09 Thread Alain Roger
Hi, i know that this is not necessary the best forum for that, but i need to get a real feedback and i guess you already faced the same issue as mine. basically, i develop php web application on windows XP platform. So i have apache 2.24 installed and PHP 5.2.4. now i would like to test if my app

Re: [PHP] SMTP

2008-03-10 Thread Alain Roger
authentication). A. On Sun, Mar 9, 2008 at 10:16 PM, Ray Hauge <[EMAIL PROTECTED]> wrote: > Alain Roger wrote: > > Hi, > > > > i know that this is not necessary the best forum for that, but i need to > get > > a real feedback and i guess you already faced the same issue a

Re: [PHP] SMTP

2008-03-10 Thread Alain Roger
Hi Ray, we tested it with telnet and it seems that it works... but my mail client does not receive it. :-( php mail function just tells me that email can not be delivered. here is the function: > if (mail($to, $subject, $body)) > { > echo("Message successfully sent!"); > } > e

Re: [PHP] SMTP

2008-03-10 Thread Alain Roger
Ok, thanks for info, i've downloaded the MailEnable SW for free and i was able to check that my PHP mail function really send correctly emails :-) thanks a lot, A. On Mon, Mar 10, 2008 at 3:33 PM, Daniel Brown <[EMAIL PROTECTED]> wrote: > On Sun, Mar 9, 2008 at 4:38 PM, Alain

[PHP] mail function and headers

2008-03-12 Thread Alain Roger
Hi, i'm playing a little bit with the mail function from PHP 5.2.4 and email headers. here is a snippet of my code: > $headers = 'From: '.$email."< ".$fromname." > >\r\n".'Reply-To:'.$email."\r\n".'X-Mailer: PHP/' . phpversion(); if (mail($to, $subject, $body,$headers)) { > ... > } > where: $f

Re: [PHP] mail function and headers

2008-03-12 Thread Alain Roger
ok i will try... what about UTF-8 to ensure unicode ? my website and especially the form which will send this email, will be filled in by several nationalities... spanish, english, french, slovak, german,,... so isn't it easier to set up utf-8 ? A. On Wed, Mar 12, 2008 at 4:11 PM, spacemarc <[EMA

Fwd: [PHP] mail function and headers

2008-03-12 Thread Alain Roger
ok i will try... what about UTF-8 to ensure unicode ? my website and especially the form which will send this email, will be filled in by several nationalities... spanish, english, french, slovak, german,,... so isn't it easier to set up utf-8 ? A. On Wed, Mar 12, 2008 at 4:11 PM, spacemarc <[EM

Re: [PHP] mail function and headers

2008-03-12 Thread Alain Roger
ok, so this is what i got and it is still remaining... :-( Received: from serdev ([127.0.0.1]) by home.com with MailEnable ESMTP; Wed, > 12 Mar 2008 16:40:18 +0100 > Date: Wed, 12 Mar 2008 16:40:18 +0100 > Subject: subject 3 > To: [EMAIL PROTECTED] > From: raf, news <[EMAIL PROTECTED]> > Reply-To:

Re: [PHP] mail function and headers

2008-03-12 Thread Alain Roger
Hi Chris, interesting thing, but i get the following error message : *Warning*: mail() [function.mail]: SAFE MODE Restriction in effect. The fifth parameter is disabled in SAFE MODE. in */test4/common/sendmail.php* on line *119* how can i solve this b

Re: [PHP] mail function and headers

2008-03-13 Thread Alain Roger
t;[EMAIL PROTECTED]> wrote: > Alain Roger wrote: > > Hi Chris, > > > > interesting thing, but i get the following error message : > > *Warning*: mail() [function.mail > > <http://test4.rogtek.com/common/function.mail>]: SAFE MODE Restriction > > in

[PHP] optimilize web page loading

2008-03-26 Thread Alain Roger
Hi, i would like to know if there is a way to know how long does a web page need to be loaded into browser ? this is interesting fact for me, as i will optimilize my PHP code in order to reduce this time to minimum. i was thinking to use some timestamp but as it will be in PHP, it mean that it sh

[PHP] convert a string to integer

2008-03-28 Thread Alain Roger
Hi, i know this topic is obvious but i have a strange behavior and i'm getting crazy. my stored procedure returns me a string. string can be an email or a message error => '-1', '-2', '-3' when i check if the string contains only digit, i use ctype_digit(mystring) but any way it returns me false

Re: [PHP] convert a string to integer

2008-03-28 Thread Alain Roger
thx a lot... i completly skipped this one...i don't know why :-( now it works On Fri, Mar 28, 2008 at 8:55 AM, Simon Welsh <[EMAIL PROTECTED]> wrote: > > On 28/03/2008, at 8:48, Alain Roger wrote: > > Hi, > > > > i know this topic is obvious but i have a s

[PHP] page content duration

2008-03-29 Thread Alain Roger
Hi, i have a strange behavior on my web page. i have a form where users can enter their email address to subscribe to newsletter. if user already exists the page inform him and allow him to go back thanks a button. clicking on this button, load another page (initial page with the form for newslet

[PHP] auto generated PDF

2008-03-30 Thread Alain Roger
Hi, i want to implement on my web portal electronic invoicing system. basically data will be stored into PostgreSQL DB. I would like to know if someone already have experiences with such feature or where could i find some tutorials or help about this topic. Concretly, user will buy some products

[PHP] newsletter administration

2008-04-10 Thread Alain Roger
Hi, I need to do a little CMS for managing Newsletter for 1 of my customers. as i never worked on such thing in the past, i would be glad to have your feedback. basically, web site users are registered into DB. my customer would like to send them a newsletter to promote new products and services.

[PHP] standard format for Web portal administration side

2008-04-12 Thread Alain Roger
Hi, I've seen several web portal and their dedicated administration side. some of those administration (portal) are according to w3c standard (1024 px large), but most of them use the full screen width. therefore i would like to know if there is a standard size (width / height) for web portal adm

[PHP] module access rights

2008-04-17 Thread Alain Roger
Hi, i face now a little issue regarding how end user can access to some modules of my web portal. Let imagine we have several modules (let say: mod1, mod 2, mod3) and 2 users (usr1, usr2). i would like to use a simple way how to established access rights for each user to grant/forbidden access to

  1   2   3   >