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

2003-07-15 Thread DaSilentStorm
You could simply check $_SERVER['PHP_SELF'], and if it's not 'file1.php', do your redirect. Good luck, Storm "John Manko" <[EMAIL PROTECTED]> schrieb im Newsbeitrag news:[EMAIL PROTECTED] > If have file1.php that includes file2.php, is there any way > to check, from file2.php, if it is indeed inc

[PHP] RE: Older Version problems

2003-07-15 Thread Uttam
have u tried using $HTTP_POST_FILES[] regds, -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 15, 2003 08:50 To: [EMAIL PROTECTED] Subject: Older Version problems I'm moving some scripts to a new server but the PHP installation on the new server

Re: [PHP] Re: socket programming

2003-07-15 Thread Michael P. Carel
> Quite a while ago now, I wrote a simple HTTP proxy in PHP that listens on port > 4887 by default. It is a single script, so it is pretty easy to follow, and > you're welcome to check it out at http://protoscope.org/. It is probably a > better example than I could come up with here. > I've downloa

[PHP] Using Extensions

2003-07-15 Thread Brenton Dobell
Hello all, recently i started haveing a closer look at the heart of the php engine and found a whole heap of unused extensions :S, where can i look to learn more about these and how to use them??/ Thanks in advance Brenton -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visi

[PHP] multiple versions

2003-07-15 Thread Steve Lane
Hello all: Is there any convenient way to have a single install of Apache on Linux/Intel use multiple copies of PHP? I need to test different versions of PHP and would rather not have to build a separate server for each. It would be great if I could build multiple copies of PHP, install them all,

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

2003-07-15 Thread Curt Zirzow
Curt Zirzow <[EMAIL PROTECTED]> wrote: > [...] > if (file_exists($file) ) { > header('Content-Yype: image/jpeg'); ooops -^ > readfile($file); > } else { > header('Content-Yype: text/html'); ditto -^ Curt -- :%s/-Yype/-Type -- PHP General Mailing List (http://www.php

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

2003-07-15 Thread Curt Zirzow
[EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Yes, the method below would work just fine if you only needed to display > one image. Trying it on a second image within the same generated page > would give you a "headers already sent" error. > > > [...] > > > > So your script will generate htm

Re: [PHP] multiple databases

2003-07-15 Thread Jeff Harris
On Jul 16, 2003, "Paulo Neves" claimed that: |Hi, | |How can I set up PHP to work with multiple databases in the same page? |(not tables) | |That's all, | |Thanks | |PN | How do you work with multiple variables in the same page? query("INSERT INTO useronline VALUES (3, 4, 'Joe Momma'"); ?> The

php-general Digest 16 Jul 2003 03:54:51 -0000 Issue 2178

2003-07-15 Thread php-general-digest-help
php-general Digest 16 Jul 2003 03:54:51 - Issue 2178 Topics (messages 155295 through 155360): Re: ANY ONE CAN TELL ME WHAT PORT mssql_connect uses? 155295 by: Nabil 155296 by: Liberty Young 155345 by: Michael Sims problem: The PHP CGI cannot be accessed directly.

Re: [PHP] multiple databases

2003-07-15 Thread Curt Zirzow
Paulo Neves <[EMAIL PROTECTED]> wrote: > Hi, > > > > How can I set up PHP to work with multiple databases in the same page? > (not tables) $dbh1 = server_connect(params...); $dbh2 = server_connect(params...); Just be sure to pass the optional $dbh1 or $dbh2 to the appropriate query. $result

[PHP] multiple databases

2003-07-15 Thread Paulo Neves
Hi, How can I set up PHP to work with multiple databases in the same page? (not tables) That's all, Thanks PN

[PHP] It's possible to read version info from a exe/dll....?

2003-07-15 Thread Daniel Szasz
Hello I wish my php script to present the list of files . That's easy.I also wish to make it to read the version info from "exe & dll" .Is this possible ? Thanks Daniel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

2003-07-15 Thread ed
Yes, the method below would work just fine if you only needed to display one image. Trying it on a second image within the same generated page would give you a "headers already sent" error. Ed > Ok, assuming that the image files are outside the public web tree and > you can read them with a scr

Re: [PHP] Re: Object can not be used after a session

2003-07-15 Thread Mike Migurski
>$customer = new Customer($_GET['facilityID'], $_GET['customerID']); >$_SESSION['acceptPayment']['serializedCustomer'] = serialize($customer); > >so now when I have moved on to another page or another instance of the >same page and I want to access the object from the session var, I do so >like thi

Re: [PHP] HTML email with Outlook

2003-07-15 Thread Tim Thorburn
Thanks to all those who responded, as always, spelling is key. Where I had -Type: text/html ... it should have read Content-Type : text/html ... So it works for now, and hopefully will continue to. I know that there are a number of email programs out there that do not support HTML mail, as wel

[PHP] Re: Object can not be used after a session

2003-07-15 Thread Matt Silva
It turns out when I was assigning the object to the session var, the object was not getting serialized. Serializing takes a variable and makes it into a string describing the variable and the value. This could be done for any variable type except Resources (MySQL connection vars) and Results

Re: [PHP] socket programming

2003-07-15 Thread David Nicholson
Hello, This is a reply to an e-mail that you wrote on Wed, 16 Jul 2003 at 01:34, lines prefixed by '>' were originally written by you. > I've already opened opened port for > this as > what David said but i cant see the output in the web. > He'res what i've did in my Redhat linux 6.x > Am I in a

Re: [PHP] Re: socket programming

2003-07-15 Thread Chris Shiflett
--- "Michael P. Carel" <[EMAIL PROTECTED]> wrote: > Actually i want to create a server utility that can be > administered through web via a certain port, i'm afraid not > to use php as an apache module because the server might have > an existing webserver installed, so i came out into an idea > to

RE: [PHP] Insert leading zeros

2003-07-15 Thread Matt Palermo
Thanks a lot. It works like a charm! -Original Message- From: Curt Zirzow [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 15, 2003 8:45 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Insert leading zeros Matt Palermo <[EMAIL PROTECTED]> wrote: > I have a string of digits that looks like some

Re: [PHP] Insert leading zeros

2003-07-15 Thread Curt Zirzow
Matt Palermo <[EMAIL PROTECTED]> wrote: > I have a string of digits that looks like something like these: 0025, > 1234, 0001, 1003, and so on. They are all 4 digits in length. Then > when I increment one of them by 1, I want to still have 4 digits for the > value (it should insert the leading ze

[PHP] Insert leading zeros

2003-07-15 Thread Matt Palermo
I have a string of digits that looks like something like these: 0025, 1234, 0001, 1003, and so on. They are all 4 digits in length. Then when I increment one of them by 1, I want to still have 4 digits for the value (it should insert the leading zeros if needed). Is there any type of function t

Re: [PHP] Re: 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 > > > Do

Re: [PHP] XML Array

2003-07-15 Thread Mike Migurski
>I'm looking for a function to take an XML file and turn it into a PHP >array with the same structure. So if I have: It's not one function, but you could use xml_parse() with appropriately-defined handlers for character data and open/close elements: http://php.net/xml There is also http://php.net

Re: [PHP] value not passed

2003-07-15 Thread Curt Zirzow
Joaco <[EMAIL PROTECTED]> wrote: > Can anyone tell me why the addDivName field is always passed as a blank... > This is killing me. > > > > This isnt getting submited when you press the link. > > > "> > width="58" h

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

2003-07-15 Thread Michael Sims
On Tue, 15 Jul 2003 19:36:42 +0300, you wrote: >how can i specify the port for the direct connection >mssql_connect() I've never had the need to do this, so I cannot verify that this works, but I believe you can supply a port number in the servername argument: mssql_connect('192.168.0.1:1433', '

[PHP] Re: How to store a file into MSSQL?

2003-07-15 Thread Javier
[EMAIL PROTECTED] (Baroiller Pierre-Emmanuel) wrote in news:[EMAIL PROTECTED]: The field test is defined in SQL Server as "image". > How is defined your temp_test table ? > PHP don't truncate content... > you only need to define a binary blob field and store data into it.. > > regard, > P.E. Ba

Re: [PHP] HTML email with Outlook

2003-07-15 Thread Manuel Lemos
Hello, On 07/15/2003 07:48 PM, Tim Thorburn wrote: I've made a PHP script that sends out an automatic email through my servers cron system, it works well, but I thought I'd try to do some HTML email to get things to line up a little better. To do so, I added the following line in my mail() comm

Re: [PHP] XML Array

2003-07-15 Thread Evan Nemerson
I seem to remember seeing something like that on hotscripts.com... On Tuesday 15 July 2003 03:58 pm, Michael Smith wrote: > Hey, > > I'm looking for a function to take an XML file and turn it into a PHP > array with the same structure. So if I have: > > > #00 > image.jpg > > > I

[PHP] Re: DOMXML...

2003-07-15 Thread Michael Smith
This is not an option for me... I'm writing a CMS and want to be able to do things for other users without specific compile options. -Michael Russell P Jones wrote: This may not be what you are looking for, but the DOMXML object since PHP 4.0 works great --- you do have to compile PHP using the -

RE: [PHP] HTML email with Outlook

2003-07-15 Thread Mike Brum
By the context, I'm sure it should read "...not all email clients support HTML." (I got a laugh out of it though ;) -Original Message- From: Johnny Martinez [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 15, 2003 7:21 PM To: 'Curt Zirzow'; [EMAIL PROTECTED] Subject: RE: [PHP] HTML email w

RE: [PHP] HTML email with Outlook

2003-07-15 Thread Johnny Martinez
"Remember not all email clients support email." Did I read that right or is it a typo? J -Original Message- From: Curt Zirzow [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 15, 2003 4:17 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] HTML email with Outlook Tim Thorburn <[EMAIL PROTECTED]

Re: [PHP] HTML email with Outlook

2003-07-15 Thread Curt Zirzow
Tim Thorburn <[EMAIL PROTECTED]> wrote: > Hi, > > I've made a PHP script that sends out an automatic email through my servers > cron system, it works well, but I thought I'd try to do some HTML email to > get things to line up a little better. > > To do so, I added the following line in my mail

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

2003-07-15 Thread Baroiller Pierre-Emmanuel
Have you loaded php module into apache ? Have you defined .php files into your httpd.conf ? Try with easyphp on windows... I can't help you more... I hate windows! :D Regards, P.E Baroiller "Karen Santmyer" <[EMAIL PROTECTED]> a écrit dans le message de news:[EMAIL PROTECTED] > HI: > > I in

[PHP] Re: value not passed

2003-07-15 Thread Baroiller Pierre-Emmanuel
did you put a before in your script ? What I see in your script is : addDivName is a text input field, without value.. so, if you click on you link, is $addDivName wasn't set before, the content is... empty! :) I can't help you more with your tiny sample :( Regards, P.E. Baroiller "Joaco" <[EM

[PHP] XML Array

2003-07-15 Thread Michael Smith
Hey, I'm looking for a function to take an XML file and turn it into a PHP array with the same structure. So if I have: #00 image.jpg It would give me an array: Array ( [template] => Array ( [color] => #00 [background] => image.j

[PHP] Re: How to store a file into MSSQL?

2003-07-15 Thread Baroiller Pierre-Emmanuel
How is defined your temp_test table ? PHP don't truncate content... you only need to define a binary blob field and store data into it.. regard, P.E. Baroiller "Javier" <[EMAIL PROTECTED]> a écrit dans le message de news:[EMAIL PROTECTED] > Hi everybody, I've trying to store a into a MSSQL Server

RE: [PHP] HTML email with Outlook

2003-07-15 Thread Johnny Martinez
$headers = "MIME-Version: 1.0\r\n"; $headers .= "Content-type: text/html; charset=iso-8859-1\r\n"; Does this help? Johnny -Original Message- From: Tim Thorburn [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 15, 2003 3:48 PM To: [EMAIL PROTECTED] Subject: [PHP] HTML email with Outlook H

Re: [PHP] HTML email with Outlook

2003-07-15 Thread Baroiller Pierre-Emmanuel
Hi, try with adding this : $header = "Content-Type: text/html; charset=\"iso-8859-1\"\nContent-Transfer-Encoding: 8bit\n\n"; If it don't work, try to build multipart email ... Regards, P.E. Baroiller "Tim Thorburn" <[EMAIL PROTECTED]> a écrit dans le message de news:[EMAIL PROTECTED] > Hi, > > I

Re: [PHP] HTML email with Outlook

2003-07-15 Thread Jim Lucas
I would take a look at the headers of an email that does render html correctly in outlook and see what you are missing. Trial and error. Jim Lucas - Original Message - From: "Tim Thorburn" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, July 15, 2003 3:48 PM Subject: [PHP] HTM

Re: [PHP] Exec command not working through php

2003-07-15 Thread Mike Morton
David: Permissions were the first guess - I chmoded 777 everything - still no go. On the server, there should be a second file created identical to the first with the results of the sed find and replace in it - the only thing that is created is a blank file. So, it is not permissions, nothing is

[PHP] HTML email with Outlook

2003-07-15 Thread Tim Thorburn
Hi, I've made a PHP script that sends out an automatic email through my servers cron system, it works well, but I thought I'd try to do some HTML email to get things to line up a little better. To do so, I added the following line in my mail() command: -Type: text/html; charset=iso-8859-1 Whe

[PHP] How to store a file into MSSQL?

2003-07-15 Thread Javier
Hi everybody, I've trying to store a into a MSSQL Server (7 or 2k) using an example I found on the web (www.php.net). Is it possible that PHP (4.3.2) just store 4k of data? Because after inserting a test image with: $oDatos is an object that handles queries. // storing a file $datastring = jo

RE: [PHP] value not passed

2003-07-15 Thread Johnny Martinez
No value is assigned in the code you listed. What is before this block? If $addDivName isn't given a value then nothing is posted. Are you trying to have the text field populate this info? If so, you are getting your program flow wrong. Johnny -Original Message- From: Joaco [mailto:[EMAI

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

[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. "> Whenever I click on the anchor everything is sent thru except the value of addDivName? -- PHP General Mailing List

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 unsubs

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 mean

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 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 > > $GLOBALS[TMP_MAIL_DIR]"."$m

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

[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

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

[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/'/'/g s/"/"/g Now, executed command line, this works bea

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 hel

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 perha

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

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

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 w

[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. \n"; readfile('image.jpeg'); print "\n"; ?>

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

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: http://www.phpbuilder.com/search/?sort

[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. \n"; readfile('image.jpeg'); print "\n"; ?> Thanks in advance,

[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. \n"; readfile('image.jpeg'); print "\n"; ?> Thanks in advance, Dan Anderson -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

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, 200

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 : > > >function mAuthor() { > $Author = "Daniel Szasz"; > return $Author; > }; > ?> > [...] > > > > > >

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 : ?> > -- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be prosecuted to the full extent of the law. --

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

2003-07-15 Thread Johnny Martinez
Then use: META NAME="Author" CONTENT=""> 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 any interpretation on it. This speeds up your script intepretation. You also forgot the ';'

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

2003-07-15 Thread Mike Brum
You're close but instead of try 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] Subject: [PHP] How to use ph to set m

[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 : > Thanks a lot for the help Daniel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

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

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, yo

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 the

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

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 amusi

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

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 W

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 the

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] 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: f

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, v

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 versi

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] 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 langua

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

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

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(); > while($temp=mssql_fetch_arr

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 i

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. declarin

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

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

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] 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 only

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=1&varb=2 in the call. Neither the search engine >nor the script can tell the d

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 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 N

  1   2   >