Re: [PHP] inline_C installation

2004-11-12 Thread Rory Browne
Not really answering the question(considering that I'm not really sure if the last reply answered it or not) at hand, but inline_c is infact a pear package. It is written in Pure PHP. It works by writing the C Code into a file, using standard php stream functions, and then using the program exectut

Re: [PHP] Evaluate String as Object

2004-11-12 Thread Curt Zirzow
* Thus wrote bubba: > Hi, > > Is it possible to evaluate a string passed to a script as an object? no. Also, when asking a question, please dont simply reply to a message and change the subject; Create a new message with subject and ask your question. Curt -- Quoth the Raven, "Nevermore." --

Re: [PHP] displaying repetitive results

2004-11-12 Thread Curt Zirzow
* Thus wrote Greg Donald: > On Wed, 10 Nov 2004 09:04:27 -0900, Chris Lott <[EMAIL PROTECTED]> wrote: > > Given a database query thats returns results from a linking (or xref) > > table which includes repetition because of the joins: > > > > ++--+--+ > > | id |

Re: [PHP] Array to $_GET variable

2004-11-12 Thread Curt Zirzow
* Thus wrote Mike Smith: > I am trying to cache a database recordset so users can sort, etc > without hitting the database everytime. I'm using ADODB to access a > MSSQL database. I wouldn't even bother with this. No matter what you do your going to have to retreive the data somewhere, aka sessio

Re: [PHP] Re: Multiple session_start()s / Is it a problem??

2004-11-12 Thread Curt Zirzow
* Thus wrote elixon: > I guess that session_id() method will return null if session is not > started (not tested) so theoreticaly you can use: > > if (!session_id()) session_start(); This is the best method. relying that $_SESSION is set could falsify your reliance that the session has been sta

Re: [PHP] Re: php mail() error

2004-11-12 Thread Curt Zirzow
* Thus wrote Manuel Lemos: > Hello, > > On 11/10/2004 10:36 AM, Garth Hapgood - Strickland wrote: > >Im using the php mail() function to try send an email to a user that has > >just registered. > > > >mail($HTTP_POST_VARS['emailaddress1'], 'Matchmakers Website Registration' , > >'Welcome'); > > >

Re: [PHP] php mail() error

2004-11-12 Thread Curt Zirzow
* Thus wrote Jason Wong: > On Wednesday 10 November 2004 12:36, Garth Hapgood - Strickland wrote: > > But when I get the following error back.: > > Warning: mail(): SMTP server response: 550 5.7.1 Unable to relay for > > [EMAIL PROTECTED] > > > >... > > This is a VERY FAQ. > > googling the erro

RE: [PHP] Display an image

2004-11-12 Thread nate
You'll need to create a separate php page called image.php or something and retrieve the $mydata2->photo and output it to the browser. image.php --- $sql = "select where id = '$id'"; echo $mydata2->photo; Nate -Original Message- From: John Taylor-Johnston [mailto:[EMAIL PROTECTED]

[PHP] Display an image

2004-11-12 Thread John Taylor-Johnston
I have a longblob with a jpeg loaded in it. But how do I display it? `photo` longblob NOT NULL, This doesn't work :) I need header information, etc. So what does? echo "\n"; I don't have an example to work with. John --snip- $sql2 = "select * from ".$db.".".$table"; $

[PHP] Re: Globally accessible objects without using 'global $obj;'

2004-11-12 Thread Greg Beaver
Chris W. Parker wrote: What I'd ultimately like to do is be able to return more than just a true/false from a function regarding it's end state. For example, a function could fail for multiple reasons and just returning a plain false for all situations does not suffice. You could either return an o

[PHP] Re: Globally accessible objects without using 'global $obj;'

2004-11-12 Thread Red Wingate
Hi Chris, Something that worked out very well for me was using a function that would take care of the error handling ... kind of define ( 'ERR_TYPE_ERROR' , 1 ) ; define ( 'ERR_TYPE_WARNING' , 2 ) ; class Error { // error handling code here } function _handleError ( $msg , $type ) { static

RE: [PHP] probably stupid, but...

2004-11-12 Thread Chris W. Parker
-{ Rene Brehmer }- on Friday, November 12, 2004 3:53 PM said: > At 21:32 12-11-2004, Chris W. Parker wrote: >> also you need to wrap your array values in { } when an array is >> referenced within a string. i.e. >> >> // normal >> $value = $_GET['something']; >> >>

RE: [PHP] probably stupid, but...

2004-11-12 Thread -{ Rene Brehmer }-
At 21:32 12-11-2004, Chris W. Parker wrote: also you need to wrap your array values in { } when an array is referenced within a string. i.e. // normal $value = $_GET['something']; // with { } $value = "Here is some data: {$_GET['something']}"; Is that actually in the manual ??? If it is, where ? I'

[PHP] Re: MySQL > Excel

2004-11-12 Thread Manuel Lemos
Hello, On 11/12/2004 07:44 PM, Sam Smith wrote: I've got it working writing out a file (fopen) to CSV (comma delimited) and the "header('Content-Disposition: attachment; filename="myFile.csv"')" method but it's clumsy for the user to figure out how to use the file. Is there some totally slick way o

[PHP] Globally accessible objects without using 'global $obj;'

2004-11-12 Thread Chris W. Parker
Hello, Ok so I'm trying to write an error reporting class and I'm just sort of experimenting at this point (comments outside the scope of this email are welcome btw) with how to best implement it. One idea I had (which isn't working out as well as I'd hoped thus far) is to create an instance of my

[PHP] Re: PHP File Upload Problem

2004-11-12 Thread Mike Walsh
"Mike Walsh" <[EMAIL PROTECTED]> wrote in message news:0%ald.9258 [ ... snipped ... ] > > ; Maximum allowed size for uploaded files. > upload_max_filesize = 1G > [ ... snipped ... ] It turns out that 1G is not a valid value for this directive. Not sure why I haven't run into this problem previ

[PHP] PHP File Upload Problem

2004-11-12 Thread Mike Walsh
I have a problem uploading files with PHP which has me stumped! I am unable to successfully upload files. My simple test script is as follows: File successfully upload." ; print "Try again?" ; } else { print <<< __RAWHTML__ Filename: __RAWHTML__; print

Re: [PHP] MySQL > Excel

2004-11-12 Thread Jennifer Goodie
-- Original message -- From: Sam Smith <[EMAIL PROTECTED]> > > I've got it working writing out a file (fopen) to CSV (comma delimited) and > the "header('Content-Disposition: attachment; filename="myFile.csv"')" > method but it's clumsy for the user to figure out h

RE: [PHP] Re: probably stupid, but...

2004-11-12 Thread Mike Johnson
From: Robert Sossomon [mailto:[EMAIL PROTECTED] > OK, I took out the extra ' that I had at the beginning, and > then I changed everything around to: > > if (!empty($_POST['book_title_'.$i])) > { >$addtocart = "INSERT INTO `curriculum` VALUES > ('',$_POST['book_title_'.$i],$_POST['book_

[PHP] MySQL > Excel

2004-11-12 Thread Sam Smith
I've got it working writing out a file (fopen) to CSV (comma delimited) and the "header('Content-Disposition: attachment; filename="myFile.csv"')" method but it's clumsy for the user to figure out how to use the file. Is there some totally slick way of spitting out a file that Excel can open righ

Re: [PHP] HTML->PDF

2004-11-12 Thread Robert Sossomon
Amanda Hemmerich is quoted as saying on 11/12/2004 4:01 PM: Is there a fairly straightforward way to generate a PDF out of a .php file that's made up of includes and the includes are contructed dynamically using data from mysql? This page normally displays the info based on parameters passed throu

Re: [PHP] Re: probably stupid, but...

2004-11-12 Thread Robert Sossomon
Ben Ramsey is quoted as saying on 11/12/2004 3:41 PM: You've got some parsing errors going on. Nothing particularly wrong with the logic... OK, I took out the extra ' that I had at the beginning, and then I changed everything around to: if (!empty($_POST['book_title_'.$i])) { $addtocart =

[PHP] PDO __construct question (mysql)

2004-11-12 Thread M. Sokolewicz
hi, currently I'm experimenting with PDO a bit. I run a local mysql server, version 4.1.4, so I tried connecting to that. Here is my code at this point: try { $link = new PDO('mysql:dbname=mydb;host=localhost', 'me', 'pw', array(PDO_ATTR_AUTOCOMMIT => 0, PDO_ATTR_PERSISTENT=>

RE: [PHP] What am I doing wrong - PHP

2004-11-12 Thread Mike Johnson
From: Stuart Felenstein [mailto:[EMAIL PROTECTED] > Ok, hopefully I can explain this clearly, even though > I think I might be an idiot since Ive been going on > about this for a few days. > > I have a table that holds values and labels > i.e. 1 = New York > 2 = Boston > 3 = Kansas Ci

RE: [PHP] What am I doing wrong - PHP

2004-11-12 Thread Chris W. Parker
Stuart Felenstein on Friday, November 12, 2004 12:54 PM said: > //This is my call to the table "staindtypes" > mysql_select_db($database_lokale, $lokale); > $indque1 = "SELECT * FROM staindtypes"; > $inds = mysql_query($indque1, $lokale) or > die(mysql_error()); > $

[PHP] Re: What am I doing wrong - PHP

2004-11-12 Thread M. Sokolewicz
Stuart Felenstein wrote: Ok, hopefully I can explain this clearly, even though I think I might be an idiot since Ive been going on about this for a few days. I have a table that holds values and labels i.e. 1 = New York 2 = Boston 3 = Kansas City 4 = Amsterdam I want to put this ta

Re: [PHP] Re: Which PHP for MySQL 4.1

2004-11-12 Thread Sebastian Mendel
Mario Bittencourt wrote: I could not compile php 5.0.2 with the latest mysql 4.1.7. I've installed the rpms (server,max,client,devel,shared) from mysql.com. ./configure --with-mnogosearch --with-xml --with-mysql=/usr --with-mysqli=/usr/bin/mysql_config --with-apxs2 --enable-soap When I compile I g

[PHP] HTML->PDF

2004-11-12 Thread Amanda Hemmerich
Is there a fairly straightforward way to generate a PDF out of a .php file that's made up of includes and the includes are contructed dynamically using data from mysql? This page normally displays the info based on parameters passed through the url or through a form. I've been looking for somethi

RE: [PHP] probably stupid, but...

2004-11-12 Thread Danny Brow
On Fri, 2004-11-12 at 14:35 -0600, Jay Blanchard wrote: > [snip] > Did that and it fixed only that piece (saw it right after I sent the > email out > to the group). I am thinking that it is still somewhat of the > iterations that > are causing problems. I am waiting on the server guy to get bac

[PHP] What am I doing wrong - PHP

2004-11-12 Thread Stuart Felenstein
Ok, hopefully I can explain this clearly, even though I think I might be an idiot since Ive been going on about this for a few days. I have a table that holds values and labels i.e. 1 = New York 2 = Boston 3 = Kansas City 4 = Amsterdam I want to put this table into a multiple sele

RE: [PHP] Sending Data with Ascii data

2004-11-12 Thread Dev
Actually yes I have. Many times as a matter of fact. What was happing was that the 0xC1 was being translated into it dec form of 28. Thankfully i was able to resolve the issue by using: pack("C",28) But thanks Jay for the help! At 03:29 PM 11/12/2004, Jay Blanchard wrote: [snip] I am working on a

[PHP] Re: probably stupid, but...

2004-11-12 Thread Ben Ramsey
You've got some parsing errors going on. Nothing particularly wrong with the logic... $i=1; while ($i<20) { if ($_POST[book_title_$i]' != "") change the if statement to: if ($_POST["book_title_$i"] != "") The problem you have is that the $_POST var you're referencing, first of all, isn't includ

RE: [PHP] probably stupid, but...

2004-11-12 Thread Jay Blanchard
[snip] Did that and it fixed only that piece (saw it right after I sent the email out to the group). I am thinking that it is still somewhat of the iterations that are causing problems. I am waiting on the server guy to get back with me as to what the new error message looks like. [/snip] Hav

RE: [PHP] probably stupid, but...

2004-11-12 Thread Chris W. Parker
Robert Sossomon on Friday, November 12, 2004 12:09 PM said: > I have a form that sends 20 rows of data into a script, instead of > having to write 20 separate add functions, I wrote this piece of > code... you've actually got quite a few mistakes. > if ($_POST[bo

Re: [PHP] probably stupid, but...

2004-11-12 Thread Robert Sossomon
Jay Blanchard is quoted as saying on 11/12/2004 3:28 PM: > [snip] Did that and it fixed only that piece (saw it right after I sent the email out to the group). I am thinking that it is still somewhat of the iterations that are causing problems. I am waiting on the server guy to get back with me

Re: [PHP] probably stupid, but...

2004-11-12 Thread Danny Brow
On Fri, 2004-11-12 at 15:08 -0500, Robert Sossomon wrote: > I have a form that sends 20 rows of data into a script, instead of having to > write 20 separate add functions, I wrote this piece of code... > > $i=1; > while ($i<20) > { > if ($_POST[book_title_$i]' != "") // One problem maybe the q

RE: [PHP] Sending Data with Ascii data

2004-11-12 Thread Jay Blanchard
[snip] I am working on a Socket script that needs to send a binary 0x1C to another applicaiton that is connected to the socket. Any way in PHP to do this so that I do not have to go and learn C++ over the weekend Does anyone have a clue what needs to be done to make this work? [/snip] Are we t

RE: [PHP] probably stupid, but...

2004-11-12 Thread Jay Blanchard
[snip] $i=1; while ($i<20) { if ($_POST[book_title_$i]' != "") { INSERT INTO `curriculum` VALUES ('','$_POST[book_title_$i]','$_POST[book_level_$i]','$_POST[level_grades _$i]','$_POST[book_section_$i]','$_POST[chapter_$i]','$_POST[chapter_tit le_$i]','$_POST[lesson_title_$i]','$_POST[skill_

[PHP] Sending Data with Ascii data

2004-11-12 Thread Dev
Hello, I am working on a Socket script that needs to send a binary 0x1C to another applicaiton that is connected to the socket. Any way in PHP to do this so that I do not have to go and learn C++ over the weekend Does anyone have a clue what needs to be done to make this work? -- UMPA

[PHP] probably stupid, but...

2004-11-12 Thread Robert Sossomon
I have a form that sends 20 rows of data into a script, instead of having to write 20 separate add functions, I wrote this piece of code... $i=1; while ($i<20) { if ($_POST[book_title_$i]' != "") { INSERT INTO `curriculum` VALUES ('','$_POST[book_title_$i]','$_POST[book_level_$i]','$_POST[le

RE: [PHP] PHP / LDAP with Windows logon

2004-11-12 Thread Christopher . Wood
I found this on the php site after some searching. I haven't been able to test it yet since the PHP guy works nights: http://us2.php.net/manual/en/ref.ldap.php If anyone else has tried this, or could the original author (Jon) comment please? Thanks! Chris jon dot caplinger at broadwing dot com

Re: [PHP] PHP / LDAP with Windows logon

2004-11-12 Thread Michael Gallant
I am interested if anyone has ever determined a way to do this or if it is technically impossible. To my knowledge, I don't know of any way to do that from a non-windows server. On Fri, 12 Nov 2004 08:40:03 -0500, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Hello, I have an issue with a PHP i

Re: [PHP] Re: Which PHP for MySQL 4.1

2004-11-12 Thread John Nichel
Mario Bittencourt wrote: I could not compile php 5.0.2 with the latest mysql 4.1.7. I've installed the rpms (server,max,client,devel,shared) from mysql.com. ./configure --with-mnogosearch --with-xml --with-mysql=/usr --with-mysqli=/usr/bin/mysql_config --with-apxs2 --enable-soap When I compile I g

Re: [PHP] Re: Which PHP for MySQL 4.1

2004-11-12 Thread Mario Bittencourt
I could not compile php 5.0.2 with the latest mysql 4.1.7. I've installed the rpms (server,max,client,devel,shared) from mysql.com. ./configure --with-mnogosearch --with-xml --with-mysql=/usr --with-mysqli=/usr/bin/mysql_config --with-apxs2 --enable-soap When I compile I get tons of messages li

Re: [PHP] Question for the PHP consultants out there.

2004-11-12 Thread Daniel Lahey
What web based software project management tool do you use to keep track of projects, project tasks, customer requests, and bug reports? You might try Ace Project: http://www.aceproject.com/ "An error is the more dangerous in proportion to the degree of truth which it contains." - Henri Frederic

[PHP] Re: session.use_trans_sid

2004-11-12 Thread Ben Ramsey
Jon Hill wrote: I have a site that has session.use_trans_sid = 1. It seems that the first time I visit a page when I open up my browser, URLs are getting rewritten even though a cookie IS being set. If I refresh or move on to another page, the problem goes away, i.e. no more session ids appended

[PHP] session.use_trans_sid

2004-11-12 Thread Jon Hill
Hello I have a site that has session.use_trans_sid = 1. It seems that the first time I visit a page when I open up my browser, URLs are getting rewritten even though a cookie IS being set. If I refresh or move on to another page, the problem goes away, i.e. no more session ids appended to URLs.

[PHP] Re: Current URL?

2004-11-12 Thread pete M
$_SERVER['REQUEST_URI']; Matthew Weier O'Phinney wrote: * Jason Paschal <[EMAIL PROTECTED]>: Trying to get the current viewed page's URL (query string intact). this works, but infrequently: $url = $_SERVER['URI']; and this ignores the query string: $url = $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SEL

[PHP] Re: Unsetting vars when not needed?

2004-11-12 Thread pete M
Unsetting class objects does take time and is really of no benefit unless there are memory problems as for freeing resuslts - the same applies pete Jordi Canals wrote: Hi all, I was working now in a new site developed with PHP 5.0.2 and a wonder came to me: Is usefull and recommended to unset a c

Re: [PHP] Session file not written, session variables messed up.

2004-11-12 Thread Rodolfo Gonzalez
Hi Klaus, On Fri, 12 Nov 2004, Klaus Reimer wrote: > > The weirdness comes when in one frame the script will print "Agent Smith" > > while in the other frame of the same frameset the script which loads on it > > will print "Thomas Anderson"... > > Are both frames loaded at the same time? It's not

Re: [PHP] Syslog Parser

2004-11-12 Thread Greg Donald
On Fri, 12 Nov 2004 09:21:45 -, Nunners <[EMAIL PROTECTED]> wrote: > I've successfully got the syslog server to write to a mysql table, but I now > want to find something that will give me graphs, breakdowns etc for the > syslog. Perl has all kinds of log parsing modules, and you might also tr

Re: [PHP] Unsetting vars when not needed?

2004-11-12 Thread Brent Baisley
I use mysql_free_result when I'm done with the particular query, but I don't really bother unsetting things unless I'm doing something that is using a lot of memory. PHP will clear everything at the end of the run anyway. I guess technically it's garbage collection, but PHP is wiping everything

RE: [PHP] Re: Help: Database Search

2004-11-12 Thread Graham Cossey
What I meant was that the $sql variable should contain a where clause of "WHERE vendorjobs.Industry IN (2,3,5)" if you had a multi-element array or "WHERE vendorjobs.Industry = 2" if you had a single-element array. The IN statement is easier to construct than multiple ORs and tends to run faster

RE: [PHP] Re: Help: Database Search

2004-11-12 Thread Stuart Felenstein
--- Graham Cossey <[EMAIL PROTECTED]> wrote: > This should result in: > > WHERE vendorjobs.Industry IN (2,3,5) > > OR > > WHERE vendorjobs.Industry = 2 > > HTH > Graham Not sure what you mean by the above ? Stuart -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: ht

[PHP] Re: Current URL?

2004-11-12 Thread Matthew Weier O'Phinney
* Jason Paschal <[EMAIL PROTECTED]>: > Trying to get the current viewed page's URL (query string intact). > > this works, but infrequently: > > $url = $_SERVER['URI']; > > and this ignores the query string: > > $url = $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF']; > > I'm certain there's a way, th

RE: [PHP] Re: Help: Database Search

2004-11-12 Thread Graham Cossey
I think you're implode example is pretty close. 1) { $IndStr = implode("','", $Ind); $where[] = "vendorjobs.Industry IN($IndStr)"; }else{ $where[] = "vendorjobs.Industry = {$Ind[0]}"; }else{ // Is there an error if not an array? } $sql = 'SELECT ... FROM vendorjobs W

[PHP] Unsetting vars when not needed?

2004-11-12 Thread Jordi Canals
Hi all, I was working now in a new site developed with PHP 5.0.2 and a wonder came to me: Is usefull and recommended to unset a class instance when not needed? Specially when the class was instantiated inside a function and the function ends. In this case, the system should automatically destro

[PHP] PHP / LDAP with Windows logon

2004-11-12 Thread Christopher . Wood
Hello, I have an issue with a PHP interface. We have many engineering users who will be using a request ticket system developed in PHP here. We don't know in advance who will be using the system and there may be new people in all the time. Currently I have to create a login for each person who need

Re: [PHP] Re: Help: Database Search

2004-11-12 Thread Stuart Felenstein
--- Sebastian Mendel <[EMAIL PROTECTED]> wrote: > > $where = array(); > > if ( isset($_POST['Ind']) ) { > $where[] = 'vendorjobs.Industry = ' . (int) > $_POST['Ind']; > } > if ( isset($_POST['Days']) ) { > $where[] = 'Date_Sub(Curdate(), interval ' . > (int) $_POST['Days'] . > ' day)

[PHP] Re: parsing /'s in urls

2004-11-12 Thread Sebastian Mendel
[EMAIL PROTECTED] wrote: My host recently upgraded PHP. I had a script, download.php, that would work like this http://www.myhost.com/download.php/30/file.torrent the download.php script would take the 30, look up the real filename in the database, and readfile() it back. this was a great setup b

[PHP] Re: Which PHP for MySQL 4.1

2004-11-12 Thread Sebastian Mendel
C.F. Scheidecker Antunes wrote: Hello, I would like to migrate my MySQL servers from 4.0 to 4.1. As I use PHP as well as Java with these servers I wonder what PHP 4 version would be compatible with MySQL 4.1. Has anyone used MySQL 4.1 with PHP yet? I appreciate your thoughts. Thanks. i run 4.1.x

Re: [PHP] calling function from function?

2004-11-12 Thread Sebastian Mendel
Jason wrote: Rick Fletcher wrote: function db( $host, $user, $pass, $dbnam ) { $db = @mysql_pconnect( $host, $user, $pass )or die( mysql_error( $db )); @mysql_select_db( $dbnam )or die( mysql_error( $db ) ); return $db; } function logs() { global $defined; db( $defined[9], $defined[1],

Re: [PHP] Creating a directory

2004-11-12 Thread Danny Brow
On Fri, 2004-11-12 at 17:12 +, Jason Wong wrote: > On Friday 12 November 2004 08:54, Danny Brow wrote: > > What's the best way to create a directory with PHP, I tried using: > > > > if (array_exists('dir',$_POST)) { > > $dir_name = test123; > > I'm 99% sure you mean 'test123'. I meant $dir_n

[PHP] Syslog Parser

2004-11-12 Thread Nunners
Does anyone know of a good syslog parser? I've successfully got the syslog server to write to a mysql table, but I now want to find something that will give me graphs, breakdowns etc for the syslog. Cheers James

RE: [PHP] parsing /'s in urls

2004-11-12 Thread Dennis Seavers
The link offers a CGI error, which is admittedly an uninteresting result. I think you'll need to indicate what your previous results were and, if different, what your desired results are. Dennis > [Original Message] > From: <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Date: 11/11/2004 11:58:

Re: [PHP] Creating a directory

2004-11-12 Thread Danny Brow
Thanks, I should have looked that up. 4am, time for bed. Thanks again, Dan. On Fri, 2004-11-12 at 18:01 +0900, Pluance wrote: > Use mkdir in PHP Functions. > See Also: http://www.php.net/manual/en/function.mkdir.php > > On Fri, 12 Nov 2004 03:54:52 -0500, Danny Brow <[EMAIL PROTECTED]> wrote: >

Re: [PHP] Creating a directory

2004-11-12 Thread Jason Wong
On Friday 12 November 2004 08:54, Danny Brow wrote: > What's the best way to create a directory with PHP, I tried using: > > if (array_exists('dir',$_POST)) { > $dir_name = test123; I'm 99% sure you mean 'test123'. > shell_exec('mkdir $dir_name'); I'm 100% sure you meant to use " instead of '.

Re: [PHP] Creating a directory

2004-11-12 Thread Pluance
Use mkdir in PHP Functions. See Also: http://www.php.net/manual/en/function.mkdir.php On Fri, 12 Nov 2004 03:54:52 -0500, Danny Brow <[EMAIL PROTECTED]> wrote: > What's the best way to create a directory with PHP, I tried using: > > if (array_exists('dir',$_POST)) { >$dir_name = test123;

Re: [PHP] Simple XML

2004-11-12 Thread John Holmes
Octavian Rasnita wrote: Does anyone know if PHP has a library for getting the content of an XML file like XML::Simple in perl? In that perl library I can get the whole content of an XML file in a reference to an array of arrays of arrays... with only 3 lines of code. Is there such a simple method i

Re: [PHP] Current URL?

2004-11-12 Thread John Holmes
Jason Paschal wrote: Trying to get the current viewed page's URL (query string intact). this works, but infrequently: $url = $_SERVER['URI']; How about $_SERVER['REQUEST_URI'] and this ignores the query string: $url = $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF']; or you could add/check for $_SERVE

[PHP] Creating a directory

2004-11-12 Thread Danny Brow
What's the best way to create a directory with PHP, I tried using: if (array_exists('dir',$_POST)) { $dir_name = test123; shell_exec('mkdir $dir_name'); I don't want to have to declare a variable, I would like to do this all on one line. Like: shell_exec('mkdir $_POST['

[PHP] Current URL?

2004-11-12 Thread Jason Paschal
Trying to get the current viewed page's URL (query string intact). this works, but infrequently: $url = $_SERVER['URI']; and this ignores the query string: $url = $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF']; I'm certain there's a way, that is browser-independent, to get your script to grab

Re: [PHP] Session file not written, session variables messed up.

2004-11-12 Thread Klaus Reimer
Rodolfo wrote: The weirdness comes when in one frame the script will print "Agent Smith" while in the other frame of the same frameset the script which loads on it will print "Thomas Anderson"... Are both frames loaded at the same time? It's not possible to have two concurrently running scripts a