[PHP] my first PHP...posting in forms

2003-06-24 Thread Wilbert Enserink
hi All, I got this simple form. Input is submitted using POST to another script. In this other script the variables/values pairs are used. I tested these scripts on several ISP's, no problem everything goes fine. Now I migrate the scripts to a different ISP, and voila, the input fields are not

[PHP] timout in mail script

2003-03-25 Thread Wilbert Enserink
Hi all, I have this script sending 1000 personalized emails. However when I press the start button in my browser so the script starts mailing I get no response for a long time from the script. Most of the time I don't get any response. When I retrieve all the emails I just sent (to myself,

[PHP] array

2003-03-24 Thread Wilbert Enserink
is going wrong here?? thx if you can help me! many regards WIlbert Enserink - Pas de Deux Van Mierisstraat 25 2526 NM Den Haag tel 070 4450855 fax 070 4450852 http://www.pdd.nl [EMAIL PROTECTED] -

[PHP] array - and eval

2003-03-21 Thread Wilbert Enserink
is going wrong here?? thx if you can help me! many regards WIlbert Enserink - Pas de Deux Van Mierisstraat 25 2526 NM Den Haag tel 070 4450855 fax 070 4450852 http://www.pdd.nl [EMAIL PROTECTED] -

[PHP] storing html pages in a database

2003-03-12 Thread Wilbert Enserink
Hi all, for reasons I'm thinking of storing complete HTML pages in a database. lets' say a HTML file size is about 20kb. Are there any restrictions i doing this? Is this 20kb alot for a mysql database, does it become slow? Should I save the file as binary data rather the ASCII?? Any tips

[PHP] wfrite and chmod security stuff

2003-02-20 Thread Wilbert Enserink
hi all I'm trying to do the following: a user can log in on a site where he/she can change the contents of a css-stylesheet file with the aid of forms. The results of the form input are used to wrie a css file on the webserver which later will be used in the HTML files of the website. I know

[PHP] safe mode

2003-02-17 Thread Wilbert Enserink
be set only in php.ini or httpd.conf (PHP_INI_SYSTEM) . Does anybody know a safe workaround for this phenomenon? Any tips are most welcome! Regards Wilbert Enserink - Pas de Deux Van Mierisstraat 25 2526 NM Den Haag tel 070 4450855 fax 070 4450852 http://www.pdd.nl

[PHP] money

2003-01-09 Thread Wilbert Enserink
Hi all, I'm busy making a swebstore. I have troubles with the format of money. I wanrt to display amounts like 2 products a ? 6,25 = ? 12,50 Whatever I try I can't get the comma there (it's showing a point . and it doesn't display the second number behind the comma i.e. 12.5 Anybody knows

[PHP] catching a robot or spider

2002-11-19 Thread Wilbert Enserink
Hi all, does anybody know a way to make a distinction between robots and users? should I use the user agent? Or is this not a safe method. If the visitor is a spider/robot I want to include some script containing extra URL's for the robot. regards Wilbert - Pas de

[PHP] magic_quotes_gpc

2002-10-14 Thread Wilbert Enserink
for set_magic_quotes_gpc. Any help on this would be largelly appreciated! Wilbert Enserink - Pas de Deux Van Mierisstraat 25 2526 NM Den Haag tel 070 4450855 fax 070 4450852 http://www.pdd.nl [EMAIL PROTECTED] -

[PHP] page expires

2002-10-07 Thread Wilbert Enserink
Hi all I'm using a lot of php in my website. Especially forms. but Aftre a form submit I get this message from IE that the page is expired and I have to push Refresh. Does anybody know why this is happening and is there a way to avoid this message?? thx. Wilbert Warning: Page has Expired

[PHP] user and password for socket connection

2002-09-12 Thread Wilbert Enserink
Hi all, I'm trying to open a socket connection on a client. The server needs a username/password combination for this connection to accept. Does anybody know how to send this with php?? In ASP I use xmlhttp.Open POST,sURL, false, sUser, sPass ,where sUser=myUsername and

[PHP] connection with bibit (XML)

2002-09-11 Thread Wilbert Enserink
Hi all, I am trying to set up a connection between my site and a payment system (bibit). Does anybody know some good URL's which can help set up the connection and parse all XML messages. I'm sure this must have been done before...so there should be no reason to invent the wheel again. thx.

[PHP] mysql error or PHP

2002-07-15 Thread Wilbert Enserink
Hi all, has anybody ever seen this? And knows what it means? thx. You have an error in your SQL syntax near 's self-supporting ribbed form was probably not strong enough to render the desig' at line 1 regards Wilbert - Pas de Deux Van Mierisstraat 25 2526 NM Den

[PHP] add to basket

2002-07-08 Thread Wilbert Enserink
wrong?? Any comments would be appreciated, regards. Wilbert Enserink - Pas de Deux Van Mierisstraat 25 2526 NM Den Haag tel 070 4450855 fax 070 4450852 http://www.pdd.nl [EMAIL PROTECTED] -

[PHP] mcrypt.dll

2002-07-08 Thread Wilbert Enserink
Hi all, I'm using windows XP, apche and php 4.01 I need to test with the libraries mcrypt, so I guess I need mcrypt.dll. Anybody has any idea how to do this, or to get more info about this? thx Wilbert - Pas de Deux Van Mierisstraat 25 2526 NM Den Haag tel 070

[PHP] mysql/php how to retrieve the right column with 2 columns of the same name

2002-07-04 Thread Wilbert Enserink
how this can be done?? Maybe there are also PHP solutions which I don't know of...? thx Wilbert Enserink - Pas de Deux Van Mierisstraat 25 2526 NM Den Haag tel 070 4450855 fax 070 4450852 http://www.pdd.nl [EMAIL PROTECTED] -

[PHP] session vars and frames

2002-06-28 Thread Wilbert Enserink
hi all, I'm registering if people are logged in. The login page is situated in the mainFrame. Now in my leftFrame I want to put the status (i.e. you are logged in as .) When people are succesfully logged in I register their name as session_register('session_loginname'); I then refresh the

[PHP] previous, current and next while looping

2002-06-19 Thread Wilbert Enserink
Hi all, I'm doing this query and looping through the results: $result_ID_ID=mysql_query($gallery_list_query) OR die(mysql_error()); $counter=0; while ($queryresult_IDresult=mysql_fetch_array($result_ID_ID)) { $result_array['$counter']=$queryresult_IDresult; if

[PHP] sessions and temporary tables

2002-06-18 Thread Wilbert Enserink
hi all, i have this problem: 1) on the start of each script I call session_start() 2) on my search.php page I query an info-table, put the results in a temporary table called $SID(=session_id()), and display the results. As a check I also query the table $SID and voila: the results were

[PHP] session and temporary tables 2

2002-06-18 Thread Wilbert Enserink
Jason, this is a piece of code i include in every file. I thinbk this is the piece of code which kills my connection. do you have any tips for me how to maintain the connectoin open? thx Wilbert session_start(); $global_dbh = mysql_connect($hostname,

[PHP] session variables in OOP....

2002-06-14 Thread Wilbert Enserink
is some code snippets I'm using: thx and regards Wilbert Enserink class.basebape.php--- ?php $this-header(); ?// includes a php file which writes HTMLcode functioning as the header of the HTML page (i.e. navigation menu) ?php $this-main(); ? // includes a php file (main.php

[PHP] next and previous buttons performing on a query

2002-06-13 Thread Wilbert Enserink
to do this? Any tips are welcome! Many regards Wilbert Enserink - Pas de Deux Van Mierisstraat 25 2526 NM Den Haag tel 070 4450855 fax 070 4450852 http://www.pdd.nl [EMAIL PROTECTED] -

[PHP] mysql dump -- via php

2002-06-10 Thread Wilbert Enserink
advise me on the php code part of this solution. Regards, thx Wilbert Enserink - Pas de Deux Van Mierisstraat 25 2526 NM Den Haag tel 070 4450855 fax 070 4450852 http://www.pdd.nl [EMAIL PROTECTED] -

[PHP] your philosophy on php-design

2002-05-30 Thread Wilbert Enserink
done this kind of thing, or know about large sites which use this same concept Any philosophies are much appreciated! Wilbert Enserink - Pas de Deux Van Mierisstraat 25 2526 NM Den Haag tel 070 4450855 fax 070 4450852 http://www.pdd.nl [EMAIL PROTECTED] -

[PHP] mySQL WHERE/LIKE

2002-05-23 Thread Wilbert Enserink
Hi all, I know this is rather OT, but I searched the mySQL manual all over...couldn't find it. I want to perform a search in a table. More then 1 columns should be searched. namely column1 and column2 and so on. Anybody knows what goes wrong here? --(in the WHERE clause). It seems that mySQL

[PHP] session.save_path

2002-05-22 Thread Wilbert Enserink
Hi all, I'm trying to install php/apache with phptriad. This worked fine, however when I'm using session variables the thing goes nuts: Warning: open(/tmp\sess_d22b57336449f89ad54b974794dd53f4, O_RDWR) failed: m (2) in C:\apache\htdocs\dm\wwwtest\phpincludes\session\session.php on line 2

[PHP] how to configure PHP (.ini) so I can use include() from any directory

2002-05-21 Thread Wilbert Enserink
Hi all, anybody knows how to configure PHP (.ini) so I can use include() from any directory instead of declaring specified paths in php.ini? I'm currently using php 4.05 with apache 1.3 something on a winXP test machine regards. Wilbert - Pas de Deux Van

[PHP] SQ: what does the sign do

2002-05-21 Thread Wilbert Enserink
Hi all, maybe this is a stupid Q, but lately I'm diving into OOP. Below you can see a piece of example code from the manual. my Q: what does the sign do in functioncb_modify( $item,$key) ?? I noticed this sign is used more, so it should be handy, but hwat does it do? thx Wilbert

[PHP] select statement

2002-05-16 Thread Wilbert Enserink
Hi all, I want to select some records with e.g. ID's 1,3,7 and 8 How can this be done best? is it: SELECT * FROM myTable WHERE ID=1,3,7,8 ?? thx. Wilbert - Pas de Deux Van Mierisstraat 25 2526 NM Den Haag tel 070 4450855 fax 070 4450852 http://www.pdd.nl [EMAIL

[PHP] html mail

2002-04-24 Thread Wilbert Enserink
Hi all, I'm studying some mail scripts written in php. When sending html mail the scripts all use a method that involves sending an html file as attachment. Why not use the mailsend function and send a string containing the whole html code? a code snippet example from a mail script:

[PHP] security

2002-04-22 Thread Wilbert Enserink
Hi all, I'm building a site where customers can store their personal information. I'm thinking of storing their creditcardno's also. Can you give me some general tips with regard to security. What is the way to go here? thx. Wilbert - Pas de Deux Van Mierisstraat 25

[PHP] mySQL back up

2002-03-04 Thread Wilbert Enserink
Hi all, I have a mySQL back up q: I have a textfile which is filled with statements as: -- DROP TABLE Clients\g CREATE TABLE Clients( ID INT, date BLOB, name BLOB, age BLOB, PRIMARY KEY (ID) )\g INSERT INTO Clients VALUES ('all record data')\g INSERT INTO

[PHP] db design

2002-02-15 Thread Wilbert Enserink
? And how about query times (response) on a server. I don't want it to get too slow Well I think, you know my point now, any info is much appreciated!! thx in advance, Wilbert Enserink - Pas de Deux Van Mierisstraat 25 2526 NM Den Haag tel 070 4450855 fax 070

[PHP] mysql backup function in php?

2002-02-04 Thread Wilbert Enserink
Hi all, i searched the manual for a php backup function for a mysql DB. I can't seem to find it, but i'm not sure whether it exists. mysql_backup_db maybe?? thx. Wilbert - Pas de Deux Van Mierisstraat 25 2526 NM Den Haag tel 070 4450855 fax 070 4450852

[PHP] need some advice; small server on a win98 machine.

2002-02-01 Thread Wilbert Enserink
some advice, on what is going wrong? Any tips are much appreciated! Thanx. Wilbert Enserink - Pas de Deux Van Mierisstraat 25 2526 NM Den Haag tel 070 4450855 fax 070 4450852 http://www.pdd.nl [EMAIL PROTECTED] - -- PHP General Mailing List

[PHP] mysql on php4.1.1 on my Win98SE laptop running PWS

2002-01-30 Thread Wilbert Enserink
Hi all, maybe one of you can help me a bit in the right direction. I just installed the windows self installer (php4.1.1) on my Win98SE laptop running PWS. It is stated that it is cgi only and built in MySQL support. I installed it succesfully, but now I want to create a MySQL db. anybody has

[PHP] sending out an sms

2001-12-05 Thread Wilbert Enserink
hi all, i'm busy studying and gathering info about sending sms messages from my website. Anybody knows any good urls where I can find more info (or scripts) about sending sms to a given telephone number. My knowledge about this subject is about zero. thx. Wilbert -

[PHP] headers

2001-12-05 Thread Wilbert Enserink
Hi all, my q: The results of a form are being POSTed to a php script. There I play around with the inputted variables. Now I want to post them again to a new script. I know I should use header(location:http://www.xxx.yyy/somepage.php) But how do I construct the header which is used to post

Re: [PHP] headers

2001-12-05 Thread Wilbert Enserink
that's more like a GET method. I prefer the POST method in my case (GPC-order). But thx for the input! - Original Message - From: George Pitcher [EMAIL PROTECTED] To: Wilbert Enserink [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Wednesday, December 05, 2001 1:18 PM Subject: Re: [PHP

[PHP] session

2001-09-06 Thread Wilbert Enserink
hi all, i'm trying to use session variables. people can login using a loginform. if they are already logged in I want the previous session to be destroyed before the new session starts. if it's their first login the session shoulds also start. if I first login with name1/password1 I give url1

[PHP] browsing permission

2001-09-06 Thread Wilbert Enserink
Hi all, anybody knows a way to protect a directory on my webserver from browsing via a webbrowser. browsing is only permitted after users have logged in via a form on the website (so, I'm not able to use htaccess). thx. Wilbert - Pas de Deux Van Mierisstraat 25 2526

[PHP] authentication

2001-08-27 Thread Wilbert Enserink
Hi all, Can anybody help me with this authentication problem? Clients can log in using a html form on my site. When they log in their username and password are checked in a mysql database. Then they are forwarded to a url, a directory on my site also coming from the db. This directory

[PHP] redirect

2001-08-24 Thread Wilbert Enserink
Hi all, I have the simplest question maybe, but I can't seem to find the answer. It's friday. Anybody knows how I can redirect to another url? greetings Wilbert - Pas de Deux Van Mierisstraat 25 2526 NM Den Haag tel 070 4450855 fax 070 4450852

[PHP] file upload

2001-07-02 Thread Wilbert Enserink
Hi all, i'm using php version 4.0.5 and i'm playing around with the file upload command using form and script which i copied from php.net Unfornunately the script is giving an error: Warning: Unable to open '/tmp/phpmOSK48' for reading: No such file or directory in

Re: [PHP] file upload

2001-07-02 Thread Wilbert Enserink
thanx adrian. I humbly bow for da masta :-] Wilbert - Original Message - From: Adrian Ciutureanu [EMAIL PROTECTED] To: Wilbert Enserink [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Monday, July 02, 2001 4:19 PM Subject: RE: [PHP] file upload Try

[PHP] pc/mac and ie/nav

2001-06-28 Thread Wilbert Enserink
Hi all, does anybody know a good piece of script or has a good tip for me how to detect platform and browser of the client? thanx in advance! Wilbert - Pas de Deux Van Mierisstraat 25 2526 NM Den Haag tel 070 4450855 fax 070 4450852 http://www.pdd.nl [EMAIL

[PHP] SQL statement for clearing a table

2001-06-22 Thread Wilbert Enserink
Hi all, anybody knows the mysql statement for clearing the contents of a table and lieving the table itself intact? Wilbert - Pas de Deux Van Mierisstraat 25 2526 NM Den Haag tel 070 4450855 fax 070 4450852 http://www.pdd.nl [EMAIL PROTECTED] -

[PHP] form values in db via loopin

2001-06-21 Thread Wilbert Enserink
Hi all, I'm rather new to php, but I'm busy making a mailform. Is it possible to loop through the entered fields in the mailform and perform the functions addslashes and htmlspecialchars and finally put the answers in my db? thanx, Wilbert - Pas de Deux Van

[PHP] mailform loop

2001-06-20 Thread Wilbert Enserink
Hi all, does anybody know if it is possible to loop through all the fields in a mailform. I want to perform the addslashes function and htmlspecialchars function to each entered value so i can put it in my db. Or should I make use of a standard good mailform script? and if so, does anyone

[PHP] test

2001-06-20 Thread Wilbert Enserink
test - Pas de Deux Van Mierisstraat 25 2526 NM Den Haag tel 070 4450855 fax 070 4450852 http://www.pdd.nl [EMAIL PROTECTED] -

[PHP] no fetch

2001-04-24 Thread Wilbert Enserink
Hello everybody, I'm just starting out with php4 and I can use some help. Below is a script I wrote. The dbase connections are allright (i have tested them) , but the final result is 'no fetch'. so something goes wrong in 'mysql_fetch_row' but I don't understand what. Any of you have an idea?

[PHP] @Listing - causing pasre error

2001-04-10 Thread Wilbert Enserink
Hi everybody, I want to write to a given file using the code below. Somehow I get the parse error. I thnk it has something to do with --- @Listing Is this a setting in my php.ini which is wrong or is the code maybe wrong (I copied it out of a php text book.) Thanx Wilbert body ?php if