[PHP] Create PDF FIle

2004-01-20 Thread Mike Mapsnac
Hello I want to create PDF file from PHP output. So instead of sending output to the browser, I need to insert PHP output into PDF FILE. How that's can be done? Looking for some short example or some documentation. Thanks _ Let t

[PHP] How to do this?

2004-04-10 Thread Mike Mapsnac
My php page takes data from the database such as ID, Date, Value and prints on the screen. About 20 entries are printed on the screen. The each entry has option 'yes' or 'no'. So I need to gather the information about each entry and update database. I cannot access the variable from $_POST beca

Re: [PHP] How to do this?

2004-04-10 Thread Mike Mapsnac
Thanks a lot - Original Message - From: "John W. Holmes" <[EMAIL PROTECTED]> To: "Mike Mapsnac" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Saturday, April 10, 2004 10:34 AM Subject: Re: [PHP] How to do this? > Mike Mapsnac wrote: > >

[PHP] Linux command in PHP

2004-05-12 Thread Mike Mapsnac
I have script that basically process a file. If something found in the file, the script send email. Today I tried to add another option, that gives sound and send email. The script works ok when I run from shell. But when I add the code to cronjob, the email is send but NO SOUND. Any ideas w

[PHP] Save page

2004-05-10 Thread Mike Mapsnac
Hello I' m writing php script that will request page and save it locally. The page URL will be parameter (example: http://www.pagetoget.com/thispage.html). How php can request such page and save it locally on the file? Thanks _ St

[PHP] Remove cahracters in string

2004-05-10 Thread Mike Mapsnac
I search on php.net and couldn't find the function. I need a function that will remove characters in the string until it reached the pattern and remove characters in the string after another pattern. The program reads huge file, and remove unnessary data. So I need to remove characters before a

RE: [PHP] Re: Remove cahracters in string

2004-05-10 Thread Mike Mapsnac
To: [EMAIL PROTECTED] Subject: [PHP] Re: Remove cahracters in string Date: Mon, 10 May 2004 22:37:36 +0200 "Mike Mapsnac" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I search on php.net and couldn't find the function. I need a function that > will remov

Re: [PHP] Re: Remove cahracters in string

2004-05-10 Thread Mike Mapsnac
No. It just an example From: "Torsten Roehr" <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Subject: Re: [PHP] Re: Remove cahracters in string Date: Mon, 10 May 2004 22:49:27 +0200 "Mike Mapsnac" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] &

[PHP] Refresh Page

2004-06-05 Thread Mike Mapsnac
I want to refresh page every 10 seconds, without clicking on "Refresh" button. Any ideas how this can be done? Thanks _ MSN 9 Dial-up Internet Access fights spam and pop-ups – now 3 months FREE! http://join.msn.click-url.com/go/onm0

[PHP] Print All parameters

2004-01-28 Thread Mike Mapsnac
Is it possible to print all values of all variables in php file? Including global, local... Thanks _ Get a FREE online virus check for your PC here, from McAfee. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 -- PHP Gen

[PHP] Exectution Time?

2004-01-30 Thread Mike Mapsnac
Is there a way to find out the execution time of php program? Thanks _ Check out the coupons and bargains on MSN Offers! http://shopping.msn.com/softcontent/softcontent.aspx?scmId=1418 -- PHP General Mailing List (http://www.php.ne

Re: [PHP] Exectution Time?

2004-01-30 Thread Mike Mapsnac
. smart guy .. From: "John W. Holmes" <[EMAIL PROTECTED]> Reply-To: "John W. Holmes" <[EMAIL PROTECTED]> To: "Mike Mapsnac" <[EMAIL PROTECTED]>,<[EMAIL PROTECTED]> Subject: Re: [PHP] Exectution Time? Date: Fri, 30 Jan 2004 16:42:56 -0500

[PHP] Resource id #1

2004-02-16 Thread Mike Mapsnac
I print variable to the screen and get the result "Resource id #1". Any ideas waht Resource id #1 is? Thanks _ Plan your next US getaway to one of the super destinations here. http://special.msn.com/local/hotdestinations.armx -- PH

[PHP] empty file's content?

2004-02-16 Thread Mike Mapsnac
How can I empty a file's content through php defined functions? Thanks _ Check out the great features of the new MSN 9 Dial-up, with the MSN Dial-up Accelerator. http://click.atdmt.com/AVE/go/onm00200361ave/direct/01/ -- PHP General

[PHP] boolean type function ?

2004-02-18 Thread Mike Mapsnac
I search on php.net. How to declare php function as type boolean? I tried the following declaration; function booolean check_ip_remote() & boolean check_ip_remote() But both declaration are wrong. I got the error messages __

[PHP] Set Library Path

2004-02-28 Thread Mike Mapsnac
How to set up the path for PHP Library? I want to create a directory that will contain all libraries files. And than I want to include the directory in each file. How to specify the path in php setting? Thanks _ Take off on a roman

[PHP] Parse error ???

2004-03-04 Thread Mike Mapsnac
The script should upload files (images). Error message is give below, any ideas why I get this errror message? Parse error: parse error in /var/www/html/uploadproc.php on line 3 //Upload.php (form) //uploadproc.php if(!isset($_FILES['myfile'])) { die "Error! The expected file wasn't a part of

RE: [PHP] Re: Parse error ???

2004-03-04 Thread Mike Mapsnac
04 Mar 2004 13:40:46 + Mike Mapsnac wrote: The script should upload files (images). Error message is give below, any ideas why I get this errror message? Parse error: parse error in /var/www/html/uploadproc.php on line 3 die() needs brackets around its arguments, eg: die("Error! The exp

Re: [PHP] Re: Parse error ???

2004-03-04 Thread Mike Mapsnac
It works now. I run the script as user mike and mike:mike is owner of the directory, when I upload something to directory the owner of the file is apache:apache. Why the owner of the file is not mike ? thanks From: Neil Freeman <[EMAIL PROTECTED]> To: Mike Mapsnac <[EMAIL PROTE

[PHP] absolute path

2004-03-08 Thread Mike Mapsnac
I'm looking for PHP function that takes $filename as parameter and returns absolute path. I looked on php.net but cannot find such function. Any ideas if such function exist? Thanks _ Frustrated with dial-up? Lightning-fast Intern

[PHP] Warning: Cannot modify header information - headers already sent by (output sta

2004-03-09 Thread Mike Mapsnac
This code below gives me this error message: Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/account.php:6) in /var/www/html/account.php on line 17 The script check in the database if user exists and than redirect the page to the home index.p

RE: [PHP] Warning: Cannot modify header information - headers already sent by (o

2004-03-10 Thread Mike Mapsnac
N['name'] = "$username"; Header("Location: " ."index.php"); } echo ""; ?> Username: Password: "; ?> //File: header_account.php session_start(); ?>   HomeResize   From: "Chris W. Parker" <[EMAIL PROTECTE

[PHP] Letters and Numbers limitation

2004-03-10 Thread Mike Mapsnac
Form takes parameter username, so I want to accept username taht includes only numbers and letters. How can I check if variable contains only letters and numbers? _ FREE pop-up blocking with the new MSN Toolbar – get it now! http://

[PHP] Get "nice" variables from POST

2004-03-11 Thread Mike Mapsnac
I have about 10 fields in the form. And I get the fields through POST: //Get Variable from the form $username = $_POST['username']; $password = $_POST['password']; $password2 = $_POST['password2']; $email = $_POST['email']; $email2 = $_POST['email2']; $nickname = $_POST['name']; $city = $POST['city

Re: [PHP] Get "nice" variables from POST

2004-03-11 Thread Mike Mapsnac
Thanks. It looks much nicer :) From: Marek Kilimajer <[EMAIL PROTECTED]> To: Mike Mapsnac <[EMAIL PROTECTED]> CC: [EMAIL PROTECTED] Subject: Re: [PHP] Get "nice" variables from POST Date: Thu, 11 Mar 2004 15:59:07 +0100 Mike Mapsnac wrote: I have about 10 fields in t

[PHP] PHP regular expression

2004-03-11 Thread Mike Mapsnac
Hello I found this function online and want to understand how it works. I don't understand "/^" and "$/". I know that "^" beginning of the string but what is "/^". Thanks function validEmail($email) { return preg_match("/^([a-zA-Z0-9])+([.a-zA-Z0-9_-])*@([a-zA-Z0-9_-])+(.[a-zA-Z0-9_-]+)+[a-

[PHP] RE: R: [PHP] Get "nice" variables from POST

2004-03-12 Thread Mike Mapsnac
er_id']}"; From: "Alessandro Vitale" <[EMAIL PROTECTED]> To: "Mike Mapsnac" <[EMAIL PROTECTED]>,<[EMAIL PROTECTED]> Subject: R: [PHP] Get "nice" variables from POST Date: Thu, 11 Mar 2004 17:30:57 +0100 hi, why don't you simple use the $_P

[PHP] Create table .. script

2004-03-13 Thread Mike Mapsnac
Hello When I need to create table I have to login into mysql and run the query. Is there a way to create some sort of scipt that can create all my tables?.So If I need create a table in new database I just run the script. I know that I can do mysql_query("QUERY OF TABLE"); But is there another

RE: [PHP] [Q] Session management when WEB site is based on template

2004-03-13 Thread Mike Mapsnac
I like this tutorial about session: http://www.phpfreaks.com/tutorials/41/0.php From: "Michael T. Peterson" <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Subject: [PHP] [Q] Session management when WEB site is based on template Date: Sat, 13 Mar 2004 18:15:24 -0800 I'm having difficulty figuring out

[PHP] failed to open stream: No such file or directory in

2004-03-15 Thread Mike Mapsnac
Hello I know that problem is related how I include library file (lib_main.php). I just don't understand what I do wrong: lib_main.php is located at /var/www/html/lib/lib_main.php When I include in the index.phplocated at /var/www/html/ I do the following include ('lib/lib_main.php'); // this wor

Re: [PHP] failed to open stream: No such file or directory in

2004-03-15 Thread Mike Mapsnac
thanks for explanation Is it possible in php.ini declare $basedir(for libraries)? From: Richard Davey <[EMAIL PROTECTED]> Reply-To: Richard Davey <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Subject: Re: [PHP] failed to open stream: No such file or directory in Date: Mon, 15 Mar 2004 17:55:13 +0

[PHP] refresh page

2004-03-16 Thread Mike Mapsnac
Hello I need to refresh page every 2 minutes. How that's can be done in PHP? THanks _ FREE pop-up blocking with the new MSN Toolbar – get it now! http://clk.atdmt.com/AVE/go/onm00200415ave/direct/01/ -- PHP General Mailing List (

Re: [PHP] refresh page

2004-03-16 Thread Mike Mapsnac
Can you show the code? Thanks From: Jeff Oien <[EMAIL PROTECTED]> To: Mike Mapsnac <[EMAIL PROTECTED]> CC: [EMAIL PROTECTED] Subject: Re: [PHP] refresh page Date: Tue, 16 Mar 2004 20:11:49 -0600 Mike Mapsnac wrote: I need to refresh page every 2 minutes. How that's can be

[PHP] How to do this in PHP?

2004-03-18 Thread Mike Mapsnac
I have a table that has 5 cells and each cell has a link. So when I click on a cell , the visited cell will get background color. In other words, when I click on the cell the color of the cell changes. Thanks _ Get rid of annoying po

[PHP] Image info?

2004-03-19 Thread Mike Mapsnac
Using php function I was able to get such information about image such as: size(width, height), type of image and size of the image. Can I get more information about image? Thanks _ FREE pop-up blocking with the new MSN Toolbar – get

[PHP] what can be wrong here?

2004-03-22 Thread Mike Mapsnac
Hello In CSS file all links are black: /* Part from CSS file */ a:link{color:#00; text-decoration: none;} /*unvisited link*/ a:visited{color:#00; text-decoration: none;} /*visited link*/ a:hover {color:#00; text-decoration: none;} /*mouse over link*/ a:active { color:#00} On the p

[PHP] Attach Image to email

2004-03-24 Thread Mike Mapsnac
Hello I know how to use mail "function" in php to send an email with text. But I want to add new feature to my website that allow to send email with attachment ( image). Any ideas how to do this? Thanks _ Get reliable access on MS

RE: [PHP] Re: Attach Image to email

2004-03-24 Thread Mike Mapsnac
2004 18:12:18 -0600 Send it in HTML form, and use an img meta tag... now if you want to do is an attachement that is a different story. Vamp "Mike Mapsnac" <[EMAIL PROTECTED]> escribió en el mensaje news:[EMAIL PROTECTED] > Hello > > I know how to use mail "fu

[PHP] Pass by references

2004-03-29 Thread Mike Mapsnac
I write some small program that uses xml. So I will use this function http://us3.php.net/manual/en/function.xml-parse-into-struct.php. Quote: "This function parses an XML file into 2 parallel array structures, one (index) containing pointers to the location of the appropriate values in the valu