Re: [PHP] Wrong parameter count for fgets

2003-07-08 Thread Joel Rees
Warning: Wrong parameter count for fgets() in I had this error on of my scripts, any ideas on this part? Well, I typed fgets into the search for field on a page at php.net, left the in the field set to function list, and clicked the little non-descript arrow to the right of that, and I found

[PHP] Storing large amounts of text in db

2003-07-08 Thread Aaron Axelsen
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I am working on some scripts that will allow for uploading of files that will then be stored in a database with the ability to be listed and searched. What im wondering, is if I have a user upload a file in txt, or doc format if there is an easy

Re: [PHP] print vs heredoc

2003-07-08 Thread Philip Olson
As to which is faster is does not really matter as the speed of echo print and heredoc is dictated by the connection speed to the requesting client. If this is a factor in your overall operation you can use output buffering to save the contents and output them at the end of your script.

Re: [PHP] Storing large amounts of text in db

2003-07-08 Thread Mike Migurski
I am working on some scripts that will allow for uploading of files that will then be stored in a database with the ability to be listed and searched. What im wondering, is if I have a user upload a file in txt, or doc format if there is an easy way to read that file, store the information in the

[PHP] multiple select box not showing values

2003-07-08 Thread Micah Montoy
I have a select box that is filled with multiple values and when the user clicks submit, it hightlights all the values in the select box and then sends this to my PHP file. I did a simple: echo ($_POST[imgList]); to see what was happening and the only value being carried across is the last

[PHP] Re: multiple select box not showing values

2003-07-08 Thread David Robley
In article [EMAIL PROTECTED], [EMAIL PROTECTED] says... I have a select box that is filled with multiple values and when the user clicks submit, it hightlights all the values in the select box and then sends this to my PHP file. I did a simple: echo ($_POST[imgList]); to see what was

Re[2]: [PHP] print vs heredoc

2003-07-08 Thread Tom Rogers
Hi, btw what would be nice is a print_raw command that does no parsing just sends the stuff :) (Would be good for template systems where you know there is no php hidden in there.) ... might gain a couple of micro seconds PO I believe this is called breaking out of PHP mode PO and into HTML

[PHP] Re: multiple select box not showing values

2003-07-08 Thread Micah Montoy
I can't believe I totally overlooked that. Thanks. That solved the problem completely. David Robley [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] In article [EMAIL PROTECTED], [EMAIL PROTECTED] says... I have a select box that is filled with multiple values and when the user

Re[3]: [PHP] print vs heredoc

2003-07-08 Thread Tom Rogers
Hi, Tuesday, July 8, 2003, 5:22:04 PM, you wrote: TR Hi, btw what would be nice is a print_raw command that does no parsing just sends the stuff :) (Would be good for template systems where you know there is no php hidden in there.) ... might gain a couple of micro seconds PO I believe this

[PHP] (pas d'objet)

2003-07-08 Thread RIVES Sergio SOFRECOM
Hi everyone, I have a doubt, an existential question on the PHP... Yesterday I had an entrevue for a job and I was quite surprised by the technical director that told me that he prefers coding PL/SQL subroutines better than in PHP embedding. The Oracle database on which he works is about 100 Go.

[PHP] Re: problem with 4.3.2

2003-07-08 Thread Jonathan Freedom
Anyone?? Is this a bug or something else? [EMAIL PROTECTED] wrote: After upgrading from 4.2.3 to 4.3.2 apache fail to load with an error: Invalid command 'php_admin_value', perhaps mis-spelled... php_admin_flag also fails. I tried with and without php.ini. php was compile with --with-apxs

Re[3]: [PHP] print vs heredoc

2003-07-08 Thread alex
Hi. I'm surprised you haven't been jumped on already for this one. Variables in double-quoted and heredoc-style strings are expanded; variables in single-quoted strings aren't. I refer you to the excellent PHP manual -- one of the first pages you should absorb...

[PHP] include like function

2003-07-08 Thread sgeorge9q
Hello, i need a function that gets a internal file say news.php, and follows the urls from its copied location, say if i am in /pages/ and i need a file from /pages/php/wow i put include('php/wow/news.php') But the news.php file needs a file in the /php/wow directory called

RE: [PHP] Regular Expression

2003-07-08 Thread Giz
I read your regex as -match start of line -followed by p, followed by o =followed by single space -followed by b,o,x -followed by end of line If someone puts in PO BOX 343, then your regex will not match. If someone puts in PO BOX 12, then your regex will not match. If you're saying that you

Re: [PHP] include like function

2003-07-08 Thread David Otton
On Tue, 8 Jul 2003 09:35:10 +0100, you wrote: Hello, i need a function that gets a internal file say news.php, and follows the urls from its copied location, say if i am in /pages/ and i need a file from /pages/php/wow i put include('php/wow/news.php') But the news.php file needs a

RE: [PHP] (pas d'objet)

2003-07-08 Thread Giz
PHP is designed for rapid development of web applications. Manipulating relational database data is not its strong point. If I had a complicated database manipulation that could be done within and oracle stored procedure, and the database was large, or expected to get that way, I would strongly

RE: [PHP] multiple select box not showing values

2003-07-08 Thread Giz
Is imgList an array, and did you specify it as such in the form? Are you foreach() through the array to get the contents? -Original Message- From: Micah Montoy [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 08, 2003 12:03 AM To: [EMAIL PROTECTED] Subject: [PHP] multiple select box not

[PHP] Retaining formatting problem

2003-07-08 Thread brenton
Hello everyone, I have a long running problem that i just want to get covered, I have a standard text box for people to insert long lengths of text. This text box is in a standard input type=text but when I insert it into the database the line returns dissapear, eg this little amount of

RE: [PHP] Retaining formatting problem[Scanned]

2003-07-08 Thread Michael Egan
I've experienced the same problem. It's not that the line returns disappear - they will still be retained but stored as /n or /r. You'll need to find a way of replacing the line breaks with a html paragraph break - assuming your required output is html. Perhaps some of the regexp functions

Re: [PHP] include like function

2003-07-08 Thread Ian Mantripp
on Tue, Jul 8, 2003, David Otton wrote: Hello, i need a function that gets a internal file say news.php, and follows the urls from its copied location, say if i am in /pages/ and i need a file from /pages/php/wow i put include('php/wow/news.php') But the news.php file needs a file in

Re: [PHP] error on array loop through foreach?

2003-07-08 Thread Lars Torben Wilson
On Mon, 2003-07-07 at 21:31, Micah Montoy wrote: It did help and I altered the script a bit. It now reads as: [snip] Now I am receiving the error message of: Warning: Invalid argument supplied for foreach() in c:\inetpub\wwwroot\webpage10\example\u_images\act_load_imgs.php on line 43

[PHP] Fputs problem

2003-07-08 Thread Steve Jackson
I don't know if this is possible but... I want to generate a PHP file on the fly. I am trying to use fputs but I have a problem in that it doesn't print a variable name in the string. Here is my code: Formid is being passed into the string great which is what I want but how do I get the string

[PHP] output compression and MSIE

2003-07-08 Thread sebab
Hello, I've found problem with MSIE showing sometimes blank page when compression is turned on (no matter using zlib.output_compression or gzip handler). I've found that happens when page is =4096 bytes long (output in HTML). And this suggested me to try to change buffer size for compression (for

[PHP] Re: Fputs problem

2003-07-08 Thread Kristin Schesonka
You'll have to quote the $ like $string=blablabla \$myvariable blablabla\n; or you put your string in ' instead of then you only have to quote the ' if you want to use it in your string. For more information look http://www.php.net/manual/en/language.types.string.php#language.types.string

[PHP] XML

2003-07-08 Thread Petre Agenbag
Hi List Firstly, this question is arguable more about XML than PHP, but they are interlinked, so I hope it is topical for this list. Firstly, Where I come from: I am VERY comfortable with PHP/MySQL on Linux and understand all those concepts. Now I'm trying to see the benefits of XML, and quite

Re: [PHP] Retaining formatting problem

2003-07-08 Thread Lars Torben Wilson
On Tue, 2003-07-08 at 02:29, [EMAIL PROTECTED] wrote: Hello everyone, I have a long running problem that i just want to get covered, I have a standard text box for people to insert long lengths of text. This text box is in a standard input type=text but when I insert it into the

RE: [PHP] include/require inside of function

2003-07-08 Thread Ford, Mike [LSS]
-Original Message- From: Ow Mun Heng [mailto:[EMAIL PROTECTED] Sent: 07 July 2003 04:34 Here's My question, a variable is not actually global is not actually global until I make it global through global $make_this_global and then I can assess it using

RE: [PHP] php pages without .php extension on linux and windows

2003-07-08 Thread Ford, Mike [LSS]
-Original Message- From: Heiko Mundle [mailto:[EMAIL PROTECTED] Sent: 07 July 2003 11:08 I try to use PHP and Apache on both Linux (SuSE 8.1) and Windows (2K). On Linux I can access the PHP scripts without adding the .php extension. E.g. http://mydomain/myscript?para1=TRUE

Re: [PHP] Retaining formatting problem[Scanned]

2003-07-08 Thread Marek Kilimajer
input type=text cannot have multiple lines, use textarea name= name col= num of cols rows= num of rows this little amount of text/textarea Michael Egan wrote: I've experienced the same problem. It's not that the line returns disappear - they will still be retained but stored as /n or /r.

RE: [PHP] New to PHP

2003-07-08 Thread Ford, Mike [LSS]
-Original Message- From: Jeff Harris [mailto:[EMAIL PROTECTED] Sent: 07 July 2003 23:27 After coding for a while, I would suggest that while you're reading through coding excercises, you find a coding style that works for you and keep it consistant. One of the least fun parts of

[PHP] serialize?

2003-07-08 Thread Sævar Öfjörð
Hi. I’m coding a poll system which stores information in MySQL. When a new poll is created a new row is inserted in the table ‘polls’. There I keep basic information such as the question, id etc. But should I keep the poll options in one field also? Then I would create an array from the poll

[PHP] Zend extensions license

2003-07-08 Thread Matthieu Boyer EI3
Hi ! I'm an intern working as a developer for a company. I'm in charge of writing an extension to the Zend engine, much like the GD library. I was wondering what are the PHP license requirements for the code and binaries. Anyone enlighten me? Thanks. - Matthieu -- PHP General Mailing List

Re: [PHP] Regular Expression

2003-07-08 Thread Wendell Brown
On Mon, 07 Jul 2003 21:59:23 -0700, Ralph Guzman wrote: I have a form where I have to check whether user is submitting a PO Box as an address. I wrote the following using eregi, but it returns true even when the field is not Po Box. How do I go about doing this properly? if(eregi(^Po Box$,

Re: [PHP] Zend extensions license

2003-07-08 Thread Ryan Gibson
It depends on the number of options, if you only have a small number of options you could just hold them in a VARCHAR, then rebuild the options array from that Say you had four on/off options, you could store them in a VARCHAR(4) as yyny then rebuild the array with a simple for loop or just build

[PHP] another big, juicy, delicious bug

2003-07-08 Thread Kyle Babich
For a logging system that I've been writing I came up with a way to asign a unique id number to every IP address that visits the site. What I do is append every *new* IP to a new line in a file (ips.txt). Then when I have an IP and need the id I file() the ip log to put it in an array,

Re: [PHP] serialize?

2003-07-08 Thread Marek Kilimajer
No, use another table, poll_options: poll_option_id, poll_id, option_text, vote_count hope the structure is self explanatory. Svar fjr wrote: Hi. Im coding a poll system which stores information in MySQL. When a new poll is created a new row is inserted in the table polls. There I keep basic

Re: [PHP] serialize?

2003-07-08 Thread Dan Anderson
Because it is desirable to create many small tables over one very large table I usually allow PHP to create dynamic tables. For instance, you could have a table called polls, and use the row id to create a unique table: ?php $query = CREATE TABLE poll_number_{$poll_id]} ( . /*insert values

Re: [PHP] output compression and MSIE

2003-07-08 Thread Mario Oberrauch
Hello, I've found problem with MSIE showing sometimes blank page when compression is turned on (no matter using zlib.output_compression or gzip handler). I've found that happens when page is =4096 bytes long (output in HTML). And this suggested me to try to change buffer size for

RE: [PHP] (pas d'objet)

2003-07-08 Thread Jay Blanchard
[snip] PHP is designed for rapid development of web applications. Manipulating relational database data is not its strong point. [/snip] At the risk of starting a flame war . I think a lot of folks would take exception to the above statements. PHP is being used for complex web-apps,

[PHP] Using PHP to stream to Shoutcastserver

2003-07-08 Thread Simon Fredriksson
Hello World! I'm interested in starting a project to broadcast music via PHP to a ShoutCAST DNAS. I'm wondering, is it possible to do this? I've searched around for good tools to broadcast but none supports my needs. As for now I'm using PHP 4.3.2 under Linux and Windows. I want this to be a

RE: [PHP] (pas d'objet)

2003-07-08 Thread Dan Anderson
as always if PHP runs at even 10% of the speed of C++ (yes, i know it's faster), and most scripts would take several miliseconds in C++, the benefits of using a language with bounds checking, and ease of programming are immense. -dan On Tue, 2003-07-08 at 08:49, Jay Blanchard wrote: [snip] PHP

RE: [PHP] another big, juicy, delicious bug

2003-07-08 Thread Jay Blanchard
[snip] But then it will go and do something like this: Array ( [0] = 172.170.69.74 [1] = 172.141.183.231 [2] = 172.137.79.102 [3] = 172.151.144.242 [4] = 172.150.212.129 [5] = 172.158.154.92 ) // correct array Array ( [172.170.69.74 ] = 0 [172.141.183.231 ] = 1

Re: [PHP] Using PHP to stream to Shoutcastserver

2003-07-08 Thread Adam Voigt
I fooled with this sort of thing a long time ago, I believe I found out it was completely possible so long as you get the song broken buffering according to what shoutcast expects to recieve or something similar to this. On Mon, 2003-07-07 at 23:51, Simon Fredriksson wrote: Hello World! I'm

[PHP] Permissions on server

2003-07-08 Thread Steve Jackson
If I set permissions of my server root to chmod 777 that's a security risk right? How do I set my server to allow me to write a file to my web root from another directory using PHP? Or is it a Unix problem? I have a generator file writes a string to a text file and then renames the text file as a

[PHP] Re: Zend extensions license

2003-07-08 Thread l0t3k
what specifically are you attempting to do ? do you wish to market the extension ? donate it to the PHP community ? if the former, then im fairly certain the license allows it. as for the latter, its best to license your code under a non-GPL, OSI approved license (BSD, LGPL, PHP, etc). makes sure

[PHP] Re: Retaining formatting problem

2003-07-08 Thread David Robley
In article [EMAIL PROTECTED], [EMAIL PROTECTED] says... Hello everyone, I have a long running problem that i just want to get covered, I have a standard text box for people to insert long lengths of text. This text box is in a standard input type=text but when I insert it into the

[PHP] Security-OTHER than safe mode?

2003-07-08 Thread MIKE YRABEDRA
Hello, I have many of my clients set up in 'safe_mode' mainly for security reasons. Well, as many of you know, that limits the way PHP functions. Especially on complex apps. Here is what I include in their httpd configs now... php_admin_flag safe_mode on php_admin_flag

Re: [PHP] PHP to Excel Export

2003-07-08 Thread \[cz\]Emo
I like this: http://www.bettina-attack.de/jonny/view.php/projects/php_writeexcel/ Last time I've readed help there wasn't support for formulas. Anybody know sth which can output formulas? Mainly I need SUBTOTALS, which can show plus-minus to hide some rows. Or another tip how to do it. Thanx

Re[2]: [PHP] output compression and MSIE

2003-07-08 Thread sebab
Hello, Good to see someone else met that feature of MS Internet Exploder ;) At really I don't put any headers with content info. Only headers are: header ('Last-Modified: '.gmdate(D, d M Y H:i:s).' GMT'); header ('Expires: '.gmdate(D, d M Y H:i:s).' GMT'); header ('Cache-Control: no-cache,

[PHP] about writing permissions

2003-07-08 Thread George Papatheodorou
I noticed that in all versions before php5 (I haven't seen this one yet), a script cannot open a file for writing mode is the file's owner is different from php's owner. Eg when php's owner is apache and test.php's owner is user1, user1's script cannot write in test.php but it can write to

RE: [PHP] PHP to Excel Export

2003-07-08 Thread electroteque
fuk me this is much better than bifwriter -Original Message- From: [cz]Emo [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 08, 2003 11:33 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] PHP to Excel Export I like this: http://www.bettina-attack.de/jonny/view.php/projects/php_writeexcel/

Re[3]: [PHP] output compression and MSIE

2003-07-08 Thread sebab
Hello once more, Tuesday, July 8, 2003, 3:25:31 PM, you wrote: MO Hello too, MO Well yes, IE is not that wrong this time (though it changes nothing at all :)) MO Take a look into the head - section of your document, maybe there is MO some content-encoding sent or your apache config (maybe some

Re: [PHP] Re: Zend extensions license

2003-07-08 Thread Matthieu Boyer EI3
Well, this is proprietary back-end stuff, so in a way, it won't be marketed but it'll have to remain the propriety of the company and be closed-source. As far as I've understood the PHP license, all i'm required to do is not to make use of the name PHP. But I'm not a lawyer and I wanted to

Re: [PHP] Permissions on server

2003-07-08 Thread Brad Pauly
On Tue, 2003-07-08 at 07:21, Steve Jackson wrote: If I set permissions of my server root to chmod 777 that's a security risk right? How do I set my server to allow me to write a file to my web root from another directory using PHP? Or is it a Unix problem? I have a generator file writes a

Re: [PHP] output compression and MSIE

2003-07-08 Thread Mario Oberrauch
[snip] My head looks like that - nothing special.. head LINK href=/css/main.css rel=stylesheet type=text/css TITLESome title/TITLE meta http-equiv=Content-Type content=text/html; charset=iso-8859-2 script language=JavaScript src=/javascripts/date_picker/date_picker.js/script /head [/snip]

Re: [PHP] Wrong parameter count for fgets

2003-07-08 Thread Mark
Without seeing any code, we can only guess. But do you have at least two, and no more than three parameters for the fputs() fuction? fputs (PHP 3, PHP 4 ) fputs -- Writes to a file pointer Description int fputs ( resource handle, string str [, int length]) fputs() is an alias to fwrite(), and

[PHP] Refresh PHP

2003-07-08 Thread Mauricio
Hi people! Did anyone get this situation? I'm creating a Site that uses 3 session variables. One of them I always print at the top of the page, it's the name of the user. There is a link that calls the function session_destroy(). Everytime that I follow this link and log in with another user,

RE: [PHP] Retaining formatting problem[Scanned]

2003-07-08 Thread Mark
--- Michael Egan [EMAIL PROTECTED] wrote: I've experienced the same problem. It's not that the line returns disappear - they will still be retained but stored as /n or /r. You'll need to find a way of replacing the line breaks with a html paragraph break - assuming your required output is

RE: [PHP] Refresh PHP

2003-07-08 Thread Brian S. Drexler
Try adding a random number to the end of your URL.index.php?$randomnumber -Original Message- From: Mauricio [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 08, 2003 10:02 AM To: PHP Subject: [PHP] Refresh PHP Hi people! Did anyone get this situation? I'm creating a Site that uses 3

Re: [PHP] Setting Cookie Going Nuts

2003-07-08 Thread Mike Morton
Berber: Did you solve this issue? No, this issue was not resolved. What does $_SERVER[HTTP_HOST] return? It returns the IP address that is assigned to the website. There is no domain assigned, just the IP. When there is a domain assigned it would assign the domain... Sincerely

Re: [PHP] Setting Cookie Going Nuts

2003-07-08 Thread Mike Morton
George: Thanks for getting back... Just a thought - are you outputting any HTML on the page where you are declaring your cookie? If not, then it won't work. I am outputting HTML on the page AFTER the cookie, and it does work, on other servers I got stuck a few months back with a

Re: [PHP] about writing permissions

2003-07-08 Thread Martin Hudec
Hello, On Tuesday July 8 2003 15:42, George Papatheodorou wrote: I noticed that in all versions before php5 (I haven't seen this one yet), a script cannot open a file for writing mode is the file's owner is different from php's owner. if user2 other than owner is trying to write to file

[PHP] Re: Regular Expression

2003-07-08 Thread SLanger
Hello If you simply want to check if the fields contains Po BOX simply use the stripos function or one of the other string functions. They should be faster than reg ex. If you still want to use reg ex I suggest using preg_match since it is faster than ereg. About your regex: It will not find

[PHP] Please Help !

2003-07-08 Thread Sean O'Reilly
Hi, I know this is really basic but i have a form for users to enter the date of an event that i would like to store in a mysql database how do i get the users input into the database in the right format.

Re: [PHP] Re: Zend extensions license

2003-07-08 Thread Dan Anderson
Check out the license at the source: http://www.php.net/license/ http://www.trolltech.com/products/qt/freelicense.html Quoting: Q. So, what's the point of the Zend license? When should I be concerned about it? A. You should be aware of the Zend license in two cases. First, if you publish

Re: [PHP] Please Help !

2003-07-08 Thread Dan Anderson
I know this is really basic but i have a form for users to enter the date of an event that i would like to store in a mysql database how do i get the users input into the database in the right format. Read up in the manual of mySQL, and the parts of the PHP doc on mySQL. mySQL dates are

RE: [PHP] about writing permissions

2003-07-08 Thread George Papatheodorou
The strange this is that user has writing access to the file, and so does his group. I even changed permissions to rw-rw-rw and the script could still not write in the file. The only solution came when I told the server manager to change the files owner to thttpd (not apache as mentioned above, it

RE: [PHP] include/require inside of function

2003-07-08 Thread Ow Mun Heng
Hi Mike, Here's the thing.. I declared $page_title = My Page Title in a file called config.php which is included in the index.php page. when I tried to - echo $page_title - Nothing comes out. If I declared it as global $page_title , then My Page Title would be echoed out.

Re: [PHP] XML

2003-07-08 Thread Burhan Khalid
On Tuesday, July 8, 2003, 1:26:43 PM, Petre wrote: [ snip ] PA Now on M$ systems, it seems that IIS has built in ActiveX XMLDOM parsing PA built in, and you can easily parse the XML document by using ASP etc. PA So can I assume that this is also true with PHP/Apache, ie, Apache has a PA built

Re: [PHP] Please Help !

2003-07-08 Thread Andrew McCombe
Hi, I know this is really basic but i have a form for users to enter the date of an event that i would like to store in a mysql database how do i get the users input into the database in the right format. For date validation I always use a javascript calendar thingy available from

Re: [PHP] XML

2003-07-08 Thread Ray Hunter
XML is a way to store data in a structure format that is correct and is platform independent; meaning u can share data with anything that understands xml format. For web applications xml allows you to send data to the client and have the browser do the parsing for you. (I would suggest ie5.5 and

[PHP] Read a file

2003-07-08 Thread Carlos Castillo
Hi, I need to read a whole file and then look for an info on it, i want to know with which function is better, fopen(), fpasstrhu()...fseek() Thanks, Carlos A. Castillo. Ingeniero de desarrollo [EMAIL PROTECTED] Su Aliado Efectivo

Re: [PHP] New to PHP

2003-07-08 Thread Steve Magruder
Mike Ford wrote: -Original Message- From: Jeff Harris [mailto:[EMAIL PROTECTED] Sent: 07 July 2003 23:27 After coding for a while, I would suggest that while you're reading through coding excercises, you find a coding style that works for you and keep it consistant. One of the

[PHP] Re: Re: Movie

2003-07-08 Thread Online
Thank you for e-mailing Tesco. Your e-mail has successfully reached us and we will deal with your enquiry as soon as possible. Kind regards Tesco Customer Services TRACKING NUMBER: A2381222-00010838003 -Original Message- From: [EMAIL PROTECTED] To: [EMAIL PROTECTED]

[PHP] what's wrong with this?????

2003-07-08 Thread Artoo
I keep getting Parse error: parse error, unexpected T_LNUMBER in /usr/local/psa/home/create.php on line 9 This is line 9, which should just create a table. $result = mysql_query('CREATE TABLE members (userid INT(25) NOT NULL AUTO_INCREMENT, first_name VARCHAR(30) NOT NULL, last_name

[PHP] Anchor Collector

2003-07-08 Thread Kris Yates
http://192.168.0.1/index.php?DSE=matrixaccess=31337#herd 1. Grab the Anchor reference herd from the fake URL above and store it as a variable using PHP. You already know the facts... QUERY_STRING: DSE=matrixaccess=31337 REQUEST_URI=/index.php?DSE=matrixaccess=31337 HTTP Request: Get

Re: [PHP] what's wrong with this?????

2003-07-08 Thread Adam Voigt
Umm quotes. Anywhere in your actual SQL that you are using a single quote, you need to put a backslash before it, example: activated ENUM('0','1') DEFAULT '0' Becomes: activated ENUM(\'0\',\'1\') DEFAULT \'0\' On Tue, 2003-07-08 at 11:26, Artoo wrote: I keep getting Parse error: parse

Re: [PHP] what's wrong with this?????

2003-07-08 Thread Artoo
Thanks. - Original Message - From: Adam Voigt [EMAIL PROTECTED] To: Artoo [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Tuesday, July 08, 2003 11:31 AM Subject: Re: [PHP] what's wrong with this? Umm quotes. Anywhere in your actual SQL that you are using a single quote, you

RE: [PHP] include/require inside of function

2003-07-08 Thread Ford, Mike [LSS]
-Original Message- From: Ow Mun Heng [mailto:[EMAIL PROTECTED] Sent: 08 July 2003 15:53 Here's the thing.. I declared $page_title = My Page Title in a file called config.php which is included in the index.php page. when I tried to - echo $page_title - Nothing comes out.

[PHP] Re: what's wrong with this?????

2003-07-08 Thread Paul Chvostek
On Tue, Jul 08, 2003 at 11:26:52AM -0400, Artoo wrote: I keep getting Parse error: parse error, unexpected T_LNUMBER in /usr/local/psa/home/create.php on line 9 This is line 9, which should just create a table. $result = mysql_query('CREATE TABLE members (userid INT(25) NOT NULL

[PHP] Re: Please Help !

2003-07-08 Thread Anthony
look up two functions in the online manual. strtotime() and date() strtotime will give you a unix timestamp for just about any date possable, date will format it the way you need. to get it into a mySQL date field, basicaly, you do this: date(y-m-d, strtotime($_POST['date'])) where

RE: [PHP] Read a file

2003-07-08 Thread carlos castillo
But them how i can look for the tag i need if i have the file in an array, i need to read an xml file and extract the info between tags password x and /password. Thanks, Carlos A. Castillo. Ingeniero de desarrollo [EMAIL PROTECTED] Su Aliado

Re: [PHP] Spammer! Re: [PHP] ANNOUNCING: Rekall V2.0.0 for Linux/UNIX....

2003-07-08 Thread Kris Yates
With all due respect to everyone, including the alleged spammer, this has been my rule since '84. If you are in a discussion group, dont advertise something unless someone posts a question where a product would act as a specific solution to their specific need. The advertiser would then be

Fwd: Re: [PHP] Read a file

2003-07-08 Thread Burhan Khalid
This is a forwarded message From: Burhan Khalid [EMAIL PROTECTED] To: Carlos Castillo [EMAIL PROTECTED] Date: Tuesday, July 8, 2003, 6:14:45 PM Subject: [PHP] Read a file ===8==Original message text=== On Tuesday, July 8, 2003, 6:08:20 PM, Carlos wrote: CC I need to read a

RE: [PHP] Read a file

2003-07-08 Thread Dan Anderson
implode the array and explode it when you're done... -dan On Tue, 2003-07-08 at 11:52, carlos castillo wrote: But them how i can look for the tag i need if i have the file in an array, i need to read an xml file and extract the info between tags password x and /password. Thanks,

Re[2]: [PHP] Read a file

2003-07-08 Thread Burhan Khalid
On Tuesday, July 8, 2003, 6:52:56 PM, carlos wrote: cc But them how i can look for the tag i need if i have the file in an cc array, i need to read an xml file and extract the info between tags cc password x and /password. Well, I wish you would have said that earlier. Parsing XML files

[PHP] Sessions

2003-07-08 Thread Dave Alger
Hi All, I'm struggling with a session problem and I'm not sure where I should be looking for the answer. Most of my pages begin like this: include_once('cfheader.php'); $feedback = cfHeader(Main Page); //Start of page code

Re: [PHP] Anchor Collector

2003-07-08 Thread Marek Kilimajer
The anchor is not send but rather implemented in the browser. Clientside javascript does have the ability - window.location.hash Kris Yates wrote: http://192.168.0.1/index.php?DSE=matrixaccess=31337#herd 1. Grab the Anchor reference herd from the fake URL above and store it as a variable using

Re: [PHP] Sessions

2003-07-08 Thread Jason k Larson
You need to make sure that when you are being directed to the other pages that the session name and session id are being passed. Check session.use_trans_sid in the sessions section of phpinfo(). The session name and id are available globally after a session has been started as the constant

RE: [PHP] Sessions

2003-07-08 Thread Aaron Axelsen
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Here is a good session tutorial, maybe it will help you see something your missing. http://www.sitepoint.com/article/319 - --- Aaron Axelsen AIM: AAAK2 Email: [EMAIL PROTECTED] Want reliable web hosting at affordable prices? www.modevia.com

RE: [PHP] Sessions

2003-07-08 Thread Johnson, Kirk
This works fine on my development PC, (PHP v 4.3.1) and on my primary test site (PHP v4.2.2). However when I try it on the target site (PHP v4.1.2) then I find that immediately after starting the session everything works fine, however when I move to any other page the session information

RE: Re[2]: [PHP] Read a file

2003-07-08 Thread carlos castillo
Thanks, i already solve that problem, but now i have another...sorry...jejejeje. Look I need to change the permissions for the files, I use $cmd = chmod 644 $archivo; system($cmd); but I can do it, only the root can do thatyou have an idea how I can do it? Thanks,

[PHP] imap_header timing out

2003-07-08 Thread Amer Neely
I've a script reading a mailbox using $InBox = imap_open($Host,$User,$Pass); $NumMsgs=imap_num_msg($InBox); for ($i=1; $i = $NumMsgs; $i++) { $Header=imap_header($InBox,$i); # this is line 154 . . . and so on. With 12 messages in the mailbox this works fine, but with 15 it comes back as timed

RE: Re[2]: [PHP] Read a file

2003-07-08 Thread Adam Voigt
Umm, sudo? On Tue, 2003-07-08 at 12:49, carlos castillo wrote: Thanks, i already solve that problem, but now i have another...sorry...jejejeje. Look I need to change the permissions for the files, I use $cmd = chmod 644 $archivo; system($cmd); but I can do it, only the

Re: [PHP] imap_header timing out

2003-07-08 Thread Adam Voigt
Put: set_time_limit(0); At the top of your script. On Tue, 2003-07-08 at 12:45, Amer Neely wrote: I've a script reading a mailbox using $InBox = imap_open($Host,$User,$Pass); $NumMsgs=imap_num_msg($InBox); for ($i=1; $i = $NumMsgs; $i++) { $Header=imap_header($InBox,$i); # this is line

RE: [PHP] Read a file

2003-07-08 Thread Ralph Guzman
You might want to look at patConfiguration: http://www.php-tools.de/ It can read/write text and xml files. -Original Message- From: carlos castillo [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 08, 2003 8:53 AM To: 'PHP List' Subject: RE: [PHP] Read a file But them how i can look

[PHP] Re: imap_header timing out

2003-07-08 Thread Pete Morganic
see the set_time_limit(); function http://uk2.php.net/manual/en/function.set-time-limit.php increase to around a minute or make the mailbox read them back in pages with 10 at a time for example Pete Amer Neely wrote: I've a script reading a mailbox using $InBox = imap_open($Host,$User,$Pass);

[PHP] Mail Header/Return Receipt

2003-07-08 Thread Brian S. Drexler
Ok, I have an interesting one here. I'm trying to send an e-mail from Server A, through Server B, and to a recipient using PHP on Server A. Server B relays the e-mail because Server A does not have an internet connection. Now, I want to request a read/delivery receipt for the user sending the

Re: [PHP] imap_header timing out

2003-07-08 Thread Amer Neely
Put: set_time_limit(0); At the top of your script. Excellent! That worked, thank you. Now I'm getting .. [08-Jul-2003 12:32:46] PHP Notice: (null)(): Unexpected characters at end of address: (errflg=3) in Unknown on line 0 And the output is a blank html page, but the source code shows

Re: [PHP] imap_header timing out

2003-07-08 Thread Adam Voigt
Is error_reporting in your php.ini set to E_ALL ~E_NOTICE ? On Tue, 2003-07-08 at 13:09, Amer Neely wrote: Put: set_time_limit(0); At the top of your script. Excellent! That worked, thank you. Now I'm getting .. [08-Jul-2003 12:32:46] PHP Notice: (null)(): Unexpected

  1   2   >