[PHP] Re: no reload

2004-10-10 Thread Ron
Yes - my problem *was* on the server side, and not on the client. I don't know what the problem was, but the files were in a soft linked folder. I moved them to my apache docroot and it solved the problem. Thanx, Ron Gal wrote: Yes, they do control the browsers cache. You can use the Mozilla

Re: [PHP] textarea vs. type=text data difference?

2004-10-10 Thread Sam Smith
##The data is the same. I've been up a long time. BUT something is still very weird. Doc1.php (loaded in web browser) //contents of Doc1.php include functions.php include formProcessor.php include form.php Calling the protectText() function in functions.php from formProcessor.php with data

Re: [PHP] textarea vs. type=text data difference?

2004-10-10 Thread Greg Donald
On Sun, 10 Oct 2004 12:28:53 -0700, Sam Smith [EMAIL PROTECTED] wrote: I have a form with both textarea and text type fields. I submit it and do some processing on identical data and get different results. What's up with that. No idea since you didn't post any code. -- Greg Donald Zend

Re: [PHP] php and print

2004-10-10 Thread Greg Donald
On Sun, 10 Oct 2004 20:17:43 +0100, Bruno Santos [EMAIL PROTECTED] wrote: Is possible to php to send information to the printer, or just print the page i want in the browser and is the user who press the print button ?? does php have any printing functions ?? Sure, echo(), print(),

[PHP] Re: php and print

2004-10-10 Thread Harlequin
Bruno I'm still rather new to PHP so I use client side Java: [CODE] !-- Print Page -- pClick Here To Print This Page: a href=javascript:window.print()img src=../images/Icon_Printer.gif border=0 alt=Print This Page/a/p [/CODE] That may be os use to you... -- -

Re: [PHP] Help:Multi Page form using session variables

2004-10-10 Thread Stuart Felenstein
I meant to say that I'm on PHP 4.3.8, apache 1.3 Global Variables are on. If you read below for each form element (textbox, menu) I've set a value of value= ?php echo $_SESSION['ListingName']; ? I believe that is not setting the session variable but merely grabbing the input from the user. So

Re: [PHP] sending SMS messages to mobile phones from PHP

2004-10-10 Thread SunTan.co.uk
Thanks. Your SMS service looks ideal for what I need but how do I make an HTTP request from PHP to kapow? Can I just use fopen()? Please can you give a PHP example. We operate an SMS Gateway service (http://www.kapow.co.uk/) which would do exactly what you need. It's been reliably sending SMS

Re: [PHP] textarea vs. type=text data difference?

2004-10-10 Thread Minuk Choi
Okay, so in other words... //Doc1.php include functions.php //this file contains the function definition for protectText() include formProcessor.php //this file contains the code that calls protectText() include form.php //this file gets the form data from user By any chance, are ANY of the

[PHP] Re: no reload

2004-10-10 Thread M. Sokolewicz
Usually such things aren't cached implicitly on the server side. However, they are very often cached by your ISP! That cache is hard to circumvent, and the difference between the two is unnoticable for a normal user. When you change the path, then, of course, they are treated as new files,

Re: [PHP] textarea vs. type=text data difference?

2004-10-10 Thread Sam Smith
htmlentities! Thanks a lot for taking the time but it was just my nubie error. What had me going all off in the wrong direction was textarea fields don't need htmlentities to display quotes correctly like a text field does. you know like this: value=some text with important info Displays in

[PHP] PHP gurus...how are they doing this?

2004-10-10 Thread Mag
Hi, Am totally puzzled as to how they are doing this. The site is at http://www.teeniesxxx.com/madtgp/submit.php (please note its an adult site so you might not want to go there, also note I am in NO way connected with that site...AT ALL) once a person submits a site, they are doing 2 things that

Re: [PHP] PHP gurus...how are they doing this?

2004-10-10 Thread John Holmes
Mag wrote: once a person submits a site, they are doing 2 things that totally puzzle me, 1.showing the number of outgoing links Middle man. You have them click on a link containing an ID, increment the counter for that ID, then forward them to the requested link. 2. counting the number of

[PHP] forms/variables/create database

2004-10-10 Thread bigmark
hi, does anyone know why this is not working, i have married 2 pieces of code together and i have no idea what im doing--any help is appreciated. I get an error that says it cant find the host--$host so obviusly its not passing it from the form. / ?php

Re: [PHP] forms/variables/create database

2004-10-10 Thread Minuk Choi
try this : $link = mysql_connect($host, $user, $pass); Note : No SINGLE quotes. In PHP, quotations are as follows $host = 'localhost'; $a = '$host'; $b = $host; echo $a; that prints $host echo $b; that prints localhost. HTH -Minuk - Original Message - From: bigmark [EMAIL PROTECTED]

Re: [PHP] forms

2004-10-10 Thread bigmark
Thanks-- i got that going-GREAT ! now i have a form that creates the database and tables, any ideas how i can get this info to change the connect_db file so that it doesnt have to be done manually. Minuk Choi [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] try this : $link =

[PHP]

2004-10-10 Thread php-list
Thanks to all of you for your explanation of my method. Minuk, thanks for the detailed explanation, it really helps me understand what I'm doing wrong. Now I have one more problem. When the $children array is empty, it returns a 10 instead of a 0. Why is that? Here's the method again with the

Re: [PHP] forms

2004-10-10 Thread Michal Migurski
Thanks-- i got that going-GREAT ! now i have a form that creates the database and tables, any ideas how i can get this info to change the connect_db file so that it doesnt have to be done manually. See fopen(), fwrite(), and fclose(): http://php.net/manual/en/ref.filesystem.php Not sure exactly

[PHP] Decoding mail attachments

2004-10-10 Thread Dave
Hi I am having trouble running the example from: http://www.theukwebdesigncompany.co...code-module.php Am running PHP5.0.2 running on a windows XP box. I've setup the test email message as: PHP Code: $input = Return-Path: [EMAIL PROTECTED] Delivered-To: [EMAIL PROTECTED] Received: (qmail 4400

[PHP] install /setup script

2004-10-10 Thread bigmark
Thanks for the help with the createdb and tables form, now can anyone help with changing the config.php (ie: host,user,password) via a form also-- so that it doesnt have to be done manually within the config script. Basically i want an install/setup page with all the form elements-- Hostname-

[PHP] I need help figuring out something

2004-10-10 Thread Brent Clements
I'm trying to write text to an image but some parts of the text should be in italics. For instance, I have the following string. $string = This is a [i]test[/i] string that [i]has[/i] some parts in [i]italics[/i] How do I display that on an image using the image functions with php but display

[PHP] PEAR::Auth

2004-10-10 Thread 22
Concerning PEAR::Auth I can't tune interaction between PEAR::Auth and MySQL. Typical code ?php $dbtype = 'mysql'; $dbhost = 'localhost'; $dbuser = ''; $dbpass = ''; $dbname = cosmos; $dsn = $dbtype://$dbuser:[EMAIL PROTECTED]/$dbname; $conn = mysql_connect($dbhost, $dbuser, $dbpass);

[PHP] If statement question...

2004-10-10 Thread GH
I would like to know how I can code the the following conditional check if the $_GET['api'] does not exist, or is either set and has no length or is set and is not an integer. I am drawing a blank on the if statement to use -- PHP General Mailing List (http://www.php.net/) To

[PHP] Re: If statement question...

2004-10-10 Thread M. Sokolewicz
Gh wrote: I would like to know how I can code the the following conditional check if the $_GET['api'] does not exist, or is either set and has no length or is set and is not an integer. I am drawing a blank on the if statement to use if(!isset($_GET['api'] || strlen($_GET['api']) == 0 ||

[PHP] Re: If statement question...

2004-10-10 Thread M. Sokolewicz
M. Sokolewicz wrote: Gh wrote: I would like to know how I can code the the following conditional check if the $_GET['api'] does not exist, or is either set and has no length or is set and is not an integer. I am drawing a blank on the if statement to use I meant to say the following

[PHP] Parse Error --- can not solve at this time... please assit

2004-10-10 Thread GH
With the following code, I am getting the following message Parse error: parse error, expecting `')'' in /var/www/html/cert/admin_template.php on line 30 Line 30 Reads as follows: foreach($admin_get_options_result as $api = $file, $desc) Can any one please assist.