[PHP] Searching a test file...

2003-07-15 Thread Lloyd Bayley
Hi people, back again... Got some help this today (tnx Curt) from the list but for another chunk of the code I'm doing... Now, I can't seem to get the following code to work... Have included some sample lines from the datafile (acc.txt) No matter what I do, it always returns not here even if

[PHP] Using a drop down box with an udetermined field amount

2003-07-15 Thread Ron Allen
What I want to do: Have a person input information about individuals into a database. One of the fields in the database will be Unit. On a form one of my drop down menu's will be Unit. I would like to have the PHP page poll the Unit field in the database and send all the different Unit results

RE: [PHP] Missing php.ini file

2003-07-15 Thread Chris Blake
Greetings again, Did as Ralph suggested...here is the output : [EMAIL PROTECTED] php]# find / -name php.ini -print /home/chris/Documents/Mein Stuph/PHP 4 Package/php-4.3.1/pear/tests/php.ini find: /mnt/floppy: Input/output error find: /mnt/cdrom: Input/output error

[PHP] textarea rich replacement?

2003-07-15 Thread Justin French
Hi all, I've looked at both editize(.com) and HTMLArea, both of which are in-browser Rich Text editor replacements (written in java) for the standard textarea. Unfortunately, they both allow far too much control... at most I only want to offer H1, H2, P, B, A and I -- no colors, no images and

Re: [PHP] Code and Good Design Methods

2003-07-15 Thread Joel Rees
Let's be honest, XSL is is one big logic step itself -- moreover it's a whole other language to learn. ramble I wouldn't call it a _big_ step. It only looks big when you look down. 8-) I would tend rather to encourage the use of XSL, myself. If you can pick up php okay, you ought to have few

[PHP] Antwort: RE: [PHP] Grabbing info from other Sites

2003-07-15 Thread SLanger
Hello Webservices is the use of SOAP over HTTP to bring a Service to the web. There are a lot more technologies involved like WSDL and UDDI but basically it is a way of providing the functionality of a programm/application to the web over a well defined interface. Since it is an additional

[PHP] Re: numberformat

2003-07-15 Thread Nadim Attari
Is there a way, to define an integer number e.g. 7, to be defined as 07? 07 = 7 But 09 != 9 (Well 9 isn't in the set but the '0' in front will make the number octal) 09 is an octal number Dunno what you gonna do with this formatting.. but think again ... Nadim Attari -- PHP General Mailing

Re: [PHP] Searching a test file...

2003-07-15 Thread Mike Migurski
No matter what I do, it always returns not here even if there is a matchvery frustrating! Any ideas? -snip- Looks like you are attempting to match 'user1' to user1 26:48:59 6 logins 4:28:09 hrs/login\n, which will come up false. You'll need to either do some postprocessing on the file, to

RE: [PHP] Capturing Windows Login Details

2003-07-15 Thread Hako Juraj
Hi, I use windows built-in identification with PHP IIS. You can capture only user-name this way. IMHO, it's impossible to catch windows passwords. Juraj -Original Message- From: Curt Zirzow [mailto:[EMAIL PROTECTED] Sent: Monday, July 14, 2003 11:26 PM To: [EMAIL PROTECTED]

[PHP] Check if php file is an included file?

2003-07-15 Thread John Manko
If have file1.php that includes file2.php, is there any way to check, from file2.php, if it is indeed included. In other words, I don't want file2.php to display (rather redirect to file1.php) if it's not being requested as a file1.php include file. did I confuse you? -- PHP General

Re: [PHP] Check if php file is an included file?

2003-07-15 Thread Jason Wong
On Tuesday 15 July 2003 15:25, John Manko wrote: If have file1.php that includes file2.php, is there any way to check, from file2.php, if it is indeed included. In other words, I don't want file2.php to display (rather redirect to file1.php) if it's not being requested as a file1.php include

RE: [PHP] Check if php file is an included file?

2003-07-15 Thread Student4
i think we checking in file2.php that it is included by file1.php by using defining constatnta the code something like this file1.php define('__FOO_BAR',1) include('file2.php'); . file2.php if (!defined('__FOO_BAR')){ doredirect('file1.php'); } //your code goes by here .

Re: [PHP] Re: Replacing newlines (\n) with smething else

2003-07-15 Thread Joel Rees
But what if say I want to replace a newline with something else, say /pp. How would I do that? (with apologies for the lack of imagination :-P) ?php $George = Hello\n\tall\nyou\nfriendly people; echo 'George: ' . $George . \n; $Henry =

[PHP] ANY ONE CAN TELL ME WHAT PORT mssql_connect uses?

2003-07-15 Thread Nabil
WHAT PORTS PHP USE WHEN COMUNICATING WITH MSSQL SERVER OVER THE NETWORK? IS THERE ANY SECURITY HALLS USING THIS PORTS?? I have an Linux server running Apache/PHP/MySQL. and I need to connect to another server running MSSQL server 7 THE POINT IS the only way I have to connect is throu ODBC

[PHP] headers already sent-cookie-ob_flush()

2003-07-15 Thread frederik feys
Hi all, This is what i get: Warning: Cannot add header information - headers already sent by (output started at /home/u/r/html/store/cart.php:188) in /home/u/r/html/store/includes/functions/get_cartID.php on line 14 I know that the problem is the reading of the cookie and then after

[PHP] socket programming

2003-07-15 Thread Michael P. Carel
Hi to all, Is it possible to run php in the web running in a specified port without installing apache in Linux? Can anyone give a sample code for this? I'm searching this for a week but i really can find one. Please help us. Regards, Mike -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] Grabbing info from other Sites

2003-07-15 Thread Joel Rees
The site really does need Login. The thing is this, I'm developing for an internal site, (My dept) but I need to access other dept's site to get info but unfortunately They won't give me access to query the db directly. Prefering me to go through the site and input accordingly to grab the

[PHP] headers already sent and cookie problem

2003-07-15 Thread frederik feys
Hi all, This is what i get: Warning: Cannot add header information - headers already sent by (output started at /home/u/r/html/store/cart.php:188) in /home/u/r/html/store/includes/functions/get_cartID.php on line 14 I know that the problem is the reading of the cookie and then after

Re: [PHP] BigEndian to integer

2003-07-15 Thread Joel Rees
http://www.php.net/pack A little background on what Im doing. Im attempting to read realaudio files for their metadata, so Im reading from a binary string, and Im currently using unpack() (Im new to using this function, so I may be wrong with its usage) to unpack the data, along with

Re: [PHP] Missing php.ini file

2003-07-15 Thread Joel Rees
Greetings again, Did as Ralph suggested...here is the output : [EMAIL PROTECTED] php]# find / -name php.ini -print sudo is your friend. /home/chris/Documents/Mein Stuph/PHP 4 Package/php-4.3.1/pear/tests/php.ini find: /mnt/floppy: Input/output error find: /mnt/cdrom:

Re: [PHP] headers already sent and cookie problem

2003-07-15 Thread Ryan Gibson
You cannot send any page information before you send headers (ie setting a cookie), that means there should be no html before the php that sets the cookie, also any function that are called before you set the cookie cannot output to the browser. Ry On 15/7/03 9:45 am, frederik feys [EMAIL

[PHP] Re: Using a drop down box with an udetermined field amount

2003-07-15 Thread sven
hi ron, there are 2 steps to do this: 1. get data from mysql (you can use 'group by' in your select-query for doubles, maybe some kind of sort) 2. create your 'select' for each mysql-row create your 'option value=$var1$var2/option' (if you like, add some logic for 'selected') close

Re: [PHP] How To Ask Questions - Some List Guidelines

2003-07-15 Thread Joel Rees
Next thing, please add a reply-to header that has the lists mailing address. This is a topic of debate, and many people (including myself) would urge people to ignore this advice. Mangling mail headers can have bad consequences, and there is very little reason to do so. Yeah, but I think

RE: [PHP] Moving Files/ Temporary Names

2003-07-15 Thread Ford, Mike [LSS]
-Original Message- From: caspar kennerdale [mailto:[EMAIL PROTECTED] Sent: 14 July 2003 21:05 If you want the file to go into a holding location until your administrator can approve it and move it to its real final location, then the holding location should be the target of

Re: [PHP] Grabbing info from other Sites

2003-07-15 Thread Joel Rees
In php, I don't see anything right offhand. http://www.php.net/curl blush/ -- Joel Rees, programmer, Kansai Systems Group Altech Corporation (Alpsgiken), Osaka, Japan http://www.alpsgiken.co.jp -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP] Text file manipulation question.

2003-07-15 Thread Ford, Mike [LSS]
-Original Message- From: Lloyd Bayley [mailto:[EMAIL PROTECTED] Sent: 15 July 2003 00:21 I'm still in the learning stages of PHP and require some help with a small problem. I need to take a text file which looks like this (and no I can't get it output in CSV - damn and

Re: [PHP] socket programming

2003-07-15 Thread David Nicholson
Hello, This is a reply to an e-mail that you wrote on Tue, 15 Jul 2003 at 09:33, lines prefixed by '' were originally written by you. Hi to all, Is it possible to run php in the web running in a specified port without installing apache in Linux? Can anyone give a sample code for this? I'm

RE: [PHP] Moving Files/ Temporary Names

2003-07-15 Thread caspar kennerdale
Thanks for everyones help -Original Message- From: Ford, Mike [LSS] [mailto:[EMAIL PROTECTED] Sent: 15 July 2003 10:19 To: 'caspar kennerdale'; Php-General Subject: RE: [PHP] Moving Files/ Temporary Names -Original Message- From: caspar kennerdale [mailto:[EMAIL PROTECTED]

Re: [PHP] ANY ONE CAN TELL ME WHAT PORT mssql_connect uses?

2003-07-15 Thread Burhan Khalid
On Tuesday, July 15, 2003, 11:00:27 AM, Nabil wrote: N I have an Linux server running Apache/PHP/MySQL. N and I need to connect to another server running MSSQL server 7 N THE POINT IS the only way I have to connect is throu ODBC connection N because the network administrator only allowed me to

RE: [PHP] headers already sent and cookie problem

2003-07-15 Thread Ford, Mike [LSS]
-Original Message- From: frederik feys [mailto:[EMAIL PROTECTED] Sent: 15 July 2003 09:45 This is what i get: Warning: Cannot add header information - headers already sent by (output started at /home/u/r/html/store/cart.php:188) in

Re: [PHP] So in summary this can't be done due to permission problems?

2003-07-15 Thread Joel Rees
As part of a CMS I wanted to get the user to: 1) Create a new recordset via a form (with a uniqueid). 2) Press submit whereupon php gets the ID of the record just created in the DB, writes a new page to the server with that unique id and saves it as a filename determined by the user.

Re: [PHP] textarea rich replacement?

2003-07-15 Thread Marek Kilimajer
Just remove the appropriate buttons. Justin French wrote: Hi all, I've looked at both editize(.com) and HTMLArea, both of which are in-browser Rich Text editor replacements (written in java) for the standard textarea. Unfortunately, they both allow far too much control... at most I only

Re: [PHP] Missing php.ini file

2003-07-15 Thread Chris Blake
On Tue, 2003-07-15 at 11:05, Joel Rees wrote: ..here is the output : [EMAIL PROTECTED] php]# find / -name php.ini -print sudo is your friend. Not knowing much about Linux, at the moment sudo is very confusing, but I`ll be looking into it :) /home/chris/Documents/Mein

[PHP] Carrying a variable

2003-07-15 Thread Ron Allen
I am using PHP 4.3.0 The way that I usually carry variables from one page to another is $Unit = ($_GET['Unit']); This is the page that is referencing it! ?PHP echo brbr; $DBName = SIGO; $table1 = sigo; include 'drop.php'; $db = mysql_connect($DBhost,$DBuser,$DBpass) or die(Problem connecting);

Re: [PHP] Searching a test file...

2003-07-15 Thread Burhan Khalid
On Tuesday, July 15, 2003, 9:08:25 AM, Lloyd wrote: [ snip ] LB No matter what I do, it always returns not here even if there is a LB matchvery frustrating! LB Any ideas? Echoing what Mike said (about the preprocessing), here is some code to help you out : $search = user1; if (!($names =

Re: [PHP] Grabbing info from other Sites

2003-07-15 Thread Joel Rees
Ow Mun Heng wrote, Mind my ignorance but what is webservices?? http://www-106.ibm.com/developerworks/webservices/library/ws-starthere.html You don't really need to use http/HTML when talking machine-to-machine. XML is convenient and has some standards, but is also not necessary.

RE: [PHP] Carrying a variable

2003-07-15 Thread Ford, Mike [LSS]
-Original Message- From: Ron Allen [mailto:[EMAIL PROTECTED] Sent: 15 July 2003 10:55 I am using PHP 4.3.0 The way that I usually carry variables from one page to another is $Unit = ($_GET['Unit']); This is the page that is referencing it! ?PHP echo brbr; $DBName = SIGO;

[PHP] Re: Carrying a variable

2003-07-15 Thread Kristin Schesonka
Hi :) It's really simpel //$Unit = ($_GET['Unit']); //... //echo FORM METHOD=POST ACTION=basefull.php; You use post as method and then you want to read your value with $_GET - that couldnt't work - you must use $_POST. -$Unit = ($_POST['Unit']); Greetings from Germany Kristin Schesonka I am

[PHP] Re: Problem getting phpMyAdmin to work on localhost

2003-07-15 Thread Richard White
Shena Delian O'Brien [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] What's your: $cfg['PmaAbsoluteUri'] $cfg['Servers'][$i]['host'] ? Should be something like : $cfg['Servers'][$i]['host'] = 'http://localhost/phpMyAdmin'; $cfg['Servers'][$i]['host'] = 'localhost'; Post other

RE: [PHP] Grabbing info from other Sites

2003-07-15 Thread Ow Mun Heng
Thanks for the info. It's a lot to digest for someone's who's just starting out. I always thought Pear was only a Fruit.. now I know better. I'll look through it and IF ( that's a big IF) i come up with something, of course I'll share it. Open Source all the way... Cheers, Mun

[PHP] fake .php extension

2003-07-15 Thread Nabil
How can confugure Apache to execute a real php files but with fake extention like .foo or .pl or even .html? Regards Nabil -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[2]: [PHP] BigEndian to integer

2003-07-15 Thread Tom Rogers
Hi, Tuesday, July 15, 2003, 7:00:33 PM, you wrote: http://www.php.net/pack A little background on what Im doing. Im attempting to read realaudio files for their metadata, so Im reading from a binary string, and Im currently using unpack() (Im new to using this function, so I may be

Re: [PHP] fake .php extension

2003-07-15 Thread Maria Garcia Suarez
Hi there! --- Nabil [EMAIL PROTECTED] wrote: How can confugure Apache to execute a real php files but with fake extention like .foo or .pl or even .html? I don't have any Apache around right now but you have to search inside httpd.conf for the php string, one of the entries is the one

Re: [PHP] any danger in overwriting $_GET ?

2003-07-15 Thread Wendell Brown
On Tue, 15 Jul 2003 14:52:36 +1000, Justin French wrote: My *aim* was to port the expected values in the URL (/cooking/154) into the $_GET superglobal array (eg $_GET['cat'] = 'cooking', $_GET['id'] = 154), resulting in: If you are on Apache, you can use mod rewrite to do this for you with NO

Re: [PHP] fake .php extension

2003-07-15 Thread Jason Wong
On Tuesday 15 July 2003 20:04, Nabil wrote: How can confugure Apache to execute a real php files but with fake extention like .foo or .pl or even .html? AddType application/x-httpd-php .php4 .php3 .phtml .php .foo .bar .pl .asp -- Jason Wong - Gremlins Associates - www.gremlins.biz Open

Re: [PHP] any danger in overwriting $_GET ?

2003-07-15 Thread Wendell Brown
On Tue, 15 Jul 2003 07:28:37 -0500, Wendell Brown wrote: If you are on Apache, you can use mod rewrite to do this for you with NO script changes. I use this on a couple of sites, the /1/2 gets converted into ?vara=1varb=2 in the call. Neither the search engine nor the script can tell the

[PHP] mail() sending mails twice to the e-mails addresses at BCC

2003-07-15 Thread Maria Garcia Suarez
Hi there! As I explained yesterday I am developing a group of pages to let users send mails from them. For that I am using the mail() function. The problem I face is that the addresses I write at the BCC field receive mails twice (not the one at the To: field, just the ones at the BCC:). It

Re: [PHP] ANY ONE CAN TELL ME WHAT PORT mssql_connect uses?

2003-07-15 Thread Michael Sims
On Tue, 15 Jul 2003 11:00:27 +0300, you wrote: WHAT PORTS PHP USE WHEN COMUNICATING WITH MSSQL SERVER OVER THE NETWORK? I only have experience with MS SQL Server 7. It listens on TCP port 1433. I have an Linux server running Apache/PHP/MySQL. and I need to connect to another server running

[PHP] variable sized arrays global vars - another newbie question

2003-07-15 Thread bob pilly
Hi all, yet again im struggling with php syntax after to many years with c. If anyone can help or point me to some good doc's i'd would really appreciate it! My two questions are: Can i declare an array that doesnt have a fixed size? Basically i want to assign the results of a query to the

[PHP] Re: fake .php extension

2003-07-15 Thread Robert Hawke
- simply go into the apache config file - search for php - somewhere it should say at the end of the line .php .phtml . - no just add your extension Nabil [EMAIL PROTECTED] schrieb im Newsbeitrag news:[EMAIL PROTECTED] How can confugure Apache to execute a real php files but with fake

Re: [PHP] variable sized arrays global vars - another newbie question

2003-07-15 Thread Marek Kilimajer
Every array does not have a fixed size: while($temp=mssql_fetch_array($tmresult)){ $array[] = $temp[fieldname]; // ads an element at the end // or $array[$temp[id]]= $temp[fieldname]; // the table id is the key } You can access global variables in functions or class methods by: 1. declaring

Re: [PHP] socket programming

2003-07-15 Thread Step Schwarz
I'm afraid I don't know the answer to your question, Mike, but you may want to check out this month's php|architect. I just started reading through it and the cover story is about socket programming: http://www.phparchitect.com/ Hope this helps, -Step Hi to all, Is it possible to run php in

Re: [PHP] variable sized arrays global vars - another newbie question

2003-07-15 Thread Dirk Kredler
Am Dienstag, 15. Juli 2003 14:39 schrieb bob pilly: Can i declare an array that doesnt have a fixed size? Basically i want to assign the results of a query to the array but obviously the query results can change. Something along the lines of: $myarray= array();

[PHP] Re: socket programming

2003-07-15 Thread Simon Fredriksson
Michael P. Carel wrote: Hi to all, Is it possible to run php in the web running in a specified port without installing apache in Linux? Can anyone give a sample code for this? I'm searching this for a week but i really can find one. Please help us. Regards, Mike Do you mean to host websites

Re: [PHP] timestamp problem !!

2003-07-15 Thread Chris Boget
Hi Chris.. thanks but your code generate the following error Warning: date() [function.date]: Unexpected error in . what's wrong? any idea ?? Sorry. You just need to take out this line: echo strtotime = ($timy); either that, or change it to: echo strtotime( $timy ) . ' = ' . ($timy) .

Re: [PHP] Code and Good Design Methods

2003-07-15 Thread Hardik Doshi
Hi Joel, Thanks for nice comments on the XML, XSL. I want to know more about it. can you please send me some article, links and tutorials? Thanks Hardik --- Joel Rees [EMAIL PROTECTED] wrote: Let's be honest, XSL is is one big logic step itself -- moreover it's a whole other language to

Re: [PHP] Easier queries?

2003-07-15 Thread Dean E. Weimer
Here's what I'm thinking, just looking to see if anyone has done this or similar. - I have a MySQL DB and I create an ODBC datasource for it on my windows box - I then open MS Access and link the tables from my datasource - Access provides a graphical relationship builder, so I build

Re: [PHP] Authentication system

2003-07-15 Thread Justin French
Doug, On Thursday, July 3, 2003, at 05:42 AM, Doug Essinger-Hileman wrote: Now I need to learn how to take the incoming message and process it. I am assuming that the processing can be done by php. Any suggestions, either on how to do this, or where I might learn how to do this? The simple

RE: [PHP] Mp3 Conversion, using PHP

2003-07-15 Thread Jay Blanchard
[snip] I'm wondering if there's any crazy dude out there that would like to join me in making a class for PHP to convert Mp3's to Mp3Pro. [/snip] Have you looked at sourceforge.org, search for mp3 a wealth of stuff is there -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] variable sized arrays global vars - another newbie question

2003-07-15 Thread bob pilly
Thanks for the reply! I must admit i and confused by the answer to the global variables question. Can i ask another question? What if i want to increment a global counter from within a function. at the moment i am trying to declare the variable normally: $counter=0; then within the function:

Re: [PHP] variable sized arrays global vars - another newbie question

2003-07-15 Thread David Nicholson
Hello, This is a reply to an e-mail that you wrote on Tue, 15 Jul 2003 at 15:19, lines prefixed by '' were originally written by you. Can i ask another question? What if i want to increment a global counter from within a function. at the moment i am trying to declare the variable normally:

RE: [PHP] elegant way of doing something else the last time through a loop? SOLVED

2003-07-15 Thread Petre Agenbag
Well, it should never be, it comes from a drop down that only has 3 options, any, all or exact Any caveats there? -Original Message- From: David Otton [mailto:[EMAIL PROTECTED] Sent: Monday, July 14, 2003 2:58 PM To: Petre Agenbag Subject: Re: [PHP] elegant way of doing something else

Re: [PHP] elegant way of doing something else the last time through a loop? SOLVED

2003-07-15 Thread Jason Wong
On Tuesday 15 July 2003 22:47, Petre Agenbag wrote: Well, it should never be, it comes from a drop down that only has 3 options, any, all or exact Any caveats there? Never trust/assume user input. All user input can be spoofed/doctored/poisoned. Always have sensible defaults. -- Jason

[PHP] Re: elegant way of doing something else the last time through a loop?

2003-07-15 Thread Paul Chvostek
On Mon, Jul 14, 2003 at 01:11:11PM +0200, Petre Agenbag wrote: HI list Hi Petre. I want to search through a table by exploding the search string and then compounding my own sql string by working through the array. I do alot of this. I have a solution which offloads the slight extra CPU

Re: [PHP] BigEndian to integer

2003-07-15 Thread Gerard Samuel
Joel Rees wrote: Just in case you're still groggy when you wake up this morning, the page for pack() lists an 'N' format for unsigned long big endian byte order for pack() and unpack(). I think what you probably want to do most is use the 'N' format when you unpack. (The other responses were

Re: [PHP] BigEndian to integer

2003-07-15 Thread Gerard Samuel
Tom Rogers wrote: Trying to use unpack by itself on large binary streams with variable packet sizes and content buried in them can become a nightmare. Try to unscramble an excel file using unpack() :) Yeah, not exactly the most exciting thing to do. As long as I have some specs on the format,

[PHP] Re: Templates...

2003-07-15 Thread Pete Morganic
Have u looked at smarty.php.net ?? It sounds like your reinventing the wheel Pete Donatas wrote: Does anyone know any other way used in template engines for loops but creating array first and passing it to template class? This is rather annoying and it makes work slower and code harder to read.

Re: [PHP] Re: Problem getting phpMyAdmin to work on localhost

2003-07-15 Thread Richard Baskett
Fr one, you'll probably want to make a symbolic link to make your url look a little prettier and make it easy on you for upgrades. So for example if you make a symbolic link from phpMyAdmin-2.5.2-rc2 to phpMyAdmin then every single time you upgrade you just ungzip your directory, then recreate

Re: [PHP] ANY ONE CAN TELL ME WHAT PORT mssql_connect uses?

2003-07-15 Thread Nabil
how can i specify the port for the direct connection mssql_connect() can u give me some hints regarding the FreeTDS if i used it then i have to confugure the DSN in liunx am i wrong? Michael Sims [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Tue, 15 Jul 2003 11:00:27 +0300, you

Re: [PHP] ANY ONE CAN TELL ME WHAT PORT mssql_connect uses?

2003-07-15 Thread Liberty Young
On Tue, 2003-07-15 at 01:00, Nabil wrote: I tried to make it direct connection, but this way uses many ports that the firewall won't allowed.. He said for security reasons that he can't open those ports to prevents hackers to use them ... do u think this is a true ? any advice what port the

[PHP] problem: The PHP CGI cannot be accessed directly.

2003-07-15 Thread pehepe php
My system is windows 98 second edition im using pws i built php 4.2.2 when ý struggle to reach any .php file for example 127.0.0.1/sample.php this error occur: Security Alert! The PHP CGI cannot be accessed directly. This PHP CGI binary was compiled with force-cgi-redirect enabled. This means

[PHP] How to use ph to set meta tags ?

2003-07-15 Thread Daniel Szasz
Hello I wish to create be able to put in the meta tags value from functions. How can be done ? Here is part of the code : ?php function mAuthor() { $Author = Daniel Szasz; return $Author; }; ? ? ? HTML HEAD META http-equiv=Content-Type content=text/html; charset=windows-1252

RE: [PHP] How to use ph to set meta tags ?

2003-07-15 Thread Mike Brum
You're close but instead of ? mAuthor() ? try ?php print mAuthor(); ? That will print the return value of your function - which by example is Daniel Szasz. -M -Original Message- From: Daniel Szasz [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 15, 2003 3:07 PM To: [EMAIL PROTECTED]

RE: [PHP] How to use ph to set meta tags ?

2003-07-15 Thread Johnny Martinez
?php function mAuthor() { $Author = 'Daniel Szasz'; print $Author; }; ? Then use: META NAME=Author CONTENT=? mAuthor(); ? Notice I replaced $Author = Daniel Szasz; with $Author = 'Daniel Szasz'; This tells php to just assign the value to the variable and not to bother performing

Re: [PHP] How to use ph to set meta tags ?

2003-07-15 Thread Leif K-Brooks
I wish to create be able to put in the meta tags value from functions. How can be done ? Here is part of the code : ?php function mAuthor() { $Author = Daniel Szasz; return $Author; }; ? ? ? HTML HEAD META http-equiv=Content-Type content=text/html; charset=windows-1252 META

Re: [PHP] How to use ph to set meta tags ?

2003-07-15 Thread Curt Zirzow
Daniel Szasz [EMAIL PROTECTED] wrote: Hello I wish to create be able to put in the meta tags value from functions. How can be done ? Here is part of the code : ?php function mAuthor() { $Author = Daniel Szasz; return $Author; }; ? [...] HTML HEAD META

RE: [PHP] timestamp problem !!

2003-07-15 Thread Boaz Yahav
Read the last comment at the bottom of this page : http://www.weberdev.com/get_example.php3?count=787 Sincerely berber Visit http://www.weberdev.com/ Today!!! To see where PHP might take you tomorrow. -Original Message- From: Nabil [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 15,

[PHP] How can I display an image within a script?

2003-07-15 Thread Dan Anderson
Because of restrictive safe mode settings I cannot display images from their folder. Is there a way to embed them within a web page? i.e. ?php print IMAGE START\n; readfile('image.jpeg'); print /IMAGE END\n; ? Thanks in advance, Dan Anderson -- PHP General Mailing List

[PHP] Re: How can I display an image within a script?

2003-07-15 Thread Shena Delian O'Brien
That's a very good question. I'd like to know the answer to that as well. Dan Anderson wrote: Because of restrictive safe mode settings I cannot display images from their folder. Is there a way to embed them within a web page? i.e. ?php print IMAGE START\n; readfile('image.jpeg'); print /IMAGE

Re: [PHP] Re: How can I display an image within a script?

2003-07-15 Thread Chris Boget
Because of restrictive safe mode settings I cannot display images from their folder. Is there a way to embed them within a web page? That's a very good question. I'd like to know the answer to that as well. A plethora of answers can be found here:

[PHP] simple imap functions

2003-07-15 Thread Bryan Koschmann - GKT
Hello, Does anyone have any good examples of simple imap functions? Basically I am just looking to return the number of new messages for a few folders in my account. I would like to modify it later to show the headers (from, subject) but just a new message count is sufficient. I would like to

[PHP] Re: How can I display an image within a script?

2003-07-15 Thread Shena Delian O'Brien
I think here would be a good place to start looking: http://www.php.net/manual/en/ref.image.php Dan Anderson wrote: Because of restrictive safe mode settings I cannot display images from their folder. Is there a way to embed them within a web page? i.e. ?php print IMAGE START\n;

Re: [PHP] simple imap functions

2003-07-15 Thread David Nicholson
Hello, This is a reply to an e-mail that you wrote on Tue, 15 Jul 2003 at 20:49, lines prefixed by '' were originally written by you. Does anyone have any good examples of simple imap functions? Basically am just looking to return the number of new messages for a few folders my account. I

[PHP] HTTPS POST without user/client intervention

2003-07-15 Thread PHP List
I am writing a php script to accept an HTTPS POST of data from a remote site, process the data, and send an HTTPS POST response back (not necessarily to the same remote site). I can do this pretty easily in PERL (which I may have to if I can't find a PHP solution). Also I need to do the https

Re: [PHP] HTTPS POST without user/client intervention

2003-07-15 Thread Chris Shiflett
--- PHP List [EMAIL PROTECTED] wrote: I am writing a php script to accept an HTTPS POST of data from a remote site, process the data, and send an HTTPS POST response back (not necessarily to the same remote site). Can you perhaps rephrase what you are trying to do? The way I interpret what you

Re: [PHP] How can I display an image within a script?

2003-07-15 Thread Curt Zirzow
Dan Anderson [EMAIL PROTECTED] wrote: Because of restrictive safe mode settings I cannot display images from their folder. Is there a way to embed them within a web page? I'm not entirely clear what you mean by not being able to display images from their folder, can you explain that more.

Re: [PHP] HTTPS POST without user/client intervention

2003-07-15 Thread PHP List
On Tue, 2003-07-15 at 15:12, Chris Shiflett wrote: --- PHP List [EMAIL PROTECTED] wrote: I am writing a php script to accept an HTTPS POST of data from a remote site, process the data, and send an HTTPS POST response back (not necessarily to the same remote site). Can you perhaps

Re: [PHP] HTTPS POST without user/client intervention

2003-07-15 Thread Chris Shiflett
--- PHP List [EMAIL PROTECTED] wrote: As for sending a POST request to a remote site via SSL, just check out cURL, which also has a convenient PEAR package. This is what I am trying to do...and thanks for point out cURL...I will check it out. In that case, you should find this helpful:

[PHP] Exec command not working through php

2003-07-15 Thread Mike Morton
I have the following exec command in php: exec(/bin/sed -f $GLOBALS[TMP_MAIL_DIR].cmdfile $GLOBALS[TMP_MAIL_DIR].$mailid $GLOBALS[TMP_MAIL_DIR].$mailid.tmp,$results); Which does a search and replace using the sed command file: s/#39;/'/g s/quot;//g Now, executed command line, this works

[PHP] help me please!

2003-07-15 Thread pehepe php
My system is windows 98 second edition im using pws i built php 4.2.2 when ý struggle to reach any .php file for example 127.0.0.1/sample.php this error occur: Security Alert! The PHP CGI cannot be accessed directly. This PHP CGI binary was compiled with force-cgi-redirect enabled. This means

[PHP] session across satelite windows

2003-07-15 Thread Thomas Hochstetter
Hi again. I am having a problem with session variables spanning over different windows. What I am doing is to supply links in an admin interface that open satellite windows, opened via JS. The window scripts check for a variable to be present ($_SESSION[]). I am doing this so that the scripts

[PHP] Problem with Apache Web Server config file and PHP working together Please help!!

2003-07-15 Thread karen santmyer
HI: I installed Apache Web Server on my laptop which has Windows XP. I then installed PHP. I followed the directions in the book I had on installing apache and php and what to add to the apache configuration file. Here is what is happening: After installing everything, I tested

[PHP] Re: help me please!

2003-07-15 Thread DvDmanDT
It's a php.ini options named like force_redirect or something... Pehepe Php [EMAIL PROTECTED] skrev i meddelandet news:[EMAIL PROTECTED] My system is windows 98 second edition im using pws i built php 4.2.2 when ý struggle to reach any .php file for example 127.0.0.1/sample.php this error

Re: [PHP] How can I display an image within a script?

2003-07-15 Thread David Nicholson
Hello, This is a reply to an e-mail that you wrote on Tue, 15 Jul 2003 at 21:14, lines prefixed by '' were originally written by you. Ok, assuming that the image files are outside the public web tree and you can read them with a script. You will have to write a php script that will read the

Re: [PHP] Exec command not working through php

2003-07-15 Thread David Nicholson
Hello, This is a reply to an e-mail that you wrote on Tue, 15 Jul 2003 at 21:30, lines prefixed by '' were originally written by you. I have the following exec command in php: exec(/bin/sed -f $GLOBALS[TMP_MAIL_DIR].cmdfile $GLOBALS[TMP_MAIL_DIR].$mailid

Re: [PHP] Exec command not working through php

2003-07-15 Thread Mike Morton
if I print out the exec line with the dynamically generated paths, etc, then execute that through the terminal, no problem. From the first email meaning that I did just like you suggested already and it works in the terminal and contains exactly what I expect it to. But thanks :) On 7/15/03

Re: [PHP] Exec command not working through php

2003-07-15 Thread David Nicholson
Hello, This is a reply to an e-mail that you wrote on Tue, 15 Jul 2003 at 23:17, lines prefixed by '' were originally written by you. if I print out the exec line with the dynamically generated paths, etc, then execute that through the terminal, no problem. From the first email meaning that

Re: [PHP] simple imap functions

2003-07-15 Thread Bryan Koschmann - GKT
On Tue, 15 Jul 2003, David Nicholson wrote: You could compile PHP with the IMAP functions and use them: http://uk2.php.net/imap That is what I was referring to looking for examples using these functions as a whole. Bryan -- PHP General Mailing List (http://www.php.net/) To

[PHP] value not passed

2003-07-15 Thread Joaco
Can anyone tell me why the addDivName field is always passed as a blank... This is killing me. ?php if($i = 8) {? td input type=text name=addDivName class=textfield /td td align=right a href=?php print index.php?op=addDivisiontotal=.$i.addDivName=.$addDivName;

[PHP] Object can not be used after a session

2003-07-15 Thread Matt Silva
Hi I was wondering if anybody has any Ideas about or has experienced this I create a new object and then assign it to a session var $customer = new Customer($_GET['facilityID'], $_GET['customerID']); $_SESSION['acceptPayment']['customer'] = $customer; but later when I access that session var

  1   2   >