RE: [PHP] More about problems reading COM ports

2005-03-29 Thread Kim Madsen
-Original Message- From: John McCaskey [mailto:[EMAIL PROTECTED] Sent: Sunday, March 27, 2005 5:13 AM Others have reported problems reading COM ports using fopen and fgets or fread. They open the port and start reading but nothing ever arrives. I had the problem and solved it, I

[PHP] report_zend_debug ini setting

2005-03-29 Thread Zac Barton
Hi, Does anyone know what the report_zend_debug ini entry does. I have searched the php wesite (http://docs.php.net/en/ini.html) and cant find any info on it. Thanks Zac -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Create MDB File

2005-03-29 Thread gustav
What's the reason reason converting from MySQL to Access? *curious* /G @varupiraten.se Thanks for your reply, but this only works on Windows. I need a program that will create an MDB file on the fly from a query on the MySQL database... Johannes Findeisen [EMAIL PROTECTED] wrote in

[PHP] Re: collapse SELECT from multiple tables

2005-03-29 Thread Rolf Østvik
[EMAIL PROTECTED] (David Christensen) wrote in news:[EMAIL PROTECTED]: I'm trying to figure out the best way to handle a SELECT from multiple tables where a single ID in tableA relates to multiple ID's in tableB: SELECT tableA.ID, tableB.data FROM tableA, tableB WHERE tableA.ID=3 AND

[PHP] How to sort that array?

2005-03-29 Thread Merlin
Hi there, I would like to save some db power by putting values into a file which are often used. They basicly populate a select field. So I placed those values into associative arrays: $code[language]= array(1= php, 2= asp); Now I would like to sort those for displaying after my preference,

Re: [PHP] NEWBIE: Can't Get My Loop Going. . .

2005-03-29 Thread Jochem Maas
Jackson Linux wrote: Hello all, I am a newbie trying to build a set of links to content in a db. I am connecting with the db and seeing the proper number of rows. if I echo out the values of $id and $sidebar I see that they take on the id# and text of the last entry in the database. I'm trying

Re: [PHP] How to sort that array?

2005-03-29 Thread Colin Ross
What I did in a situation like this (much more complicated though, with nested select boxes in a form) was use a database, and then created a php-created javascript file. The javascript file was buffered, and then cached (saved to a file) with a timestamp... So, I can limit the amount of times the

[PHP] php + mysql: binary arrays

2005-03-29 Thread Robert S
I am writing a contact manager in php/mysql. I'd like to use a binary array as an efficient way to store information for groups that each contact belongs to eg: Field: 'group': 001010 means that the contact belongs to the second and fourth group. If the array is of type Byte, it should be able

Re: [PHP] Session data disappearing?

2005-03-29 Thread Colin Ross
In edit_schedule.phps: if (isset($_POST['add_available'])){ $year = $_POST['year']; $year = $year['NULL']; $month = $_POST['month']; $month = $month['NULL']; $day = $_POST['day']; $day = $day['NULL']; $time =

RE: [PHP] php + mysql: binary arrays

2005-03-29 Thread YaronKh
Hi First of all you can use the Bitwise Operators to set/clear a bit Let say $a is '00100' meaning group 2 is set and you want to set group 4 then write: $a = $a | (pow(2 ,4)); //using OR Operator Now $a is '10100' Let say that you want to unset group 2: $a = $a ^ (pow(2,2)); //using XOR

Re: [PHP] PHP CODE TO DISPLAY ISP

2005-03-29 Thread Colin Ross
and least we forgot about all the users coming from behind a proxy farm with a different ip for each request.. cough AOL /cough C On Mon, 28 Mar 2005 12:28:32 -0700, Leif Gregory [EMAIL PROTECTED] wrote: Hello jenny, Monday, March 28, 2005, 9:36:07 AM, you wrote: j i am making a website in

Re: [PHP] php + mysql: binary arrays

2005-03-29 Thread Colin Ross
oops.. how bout if i send it to the group too... http://us4.php.net/manual/en/function.preg-split.php example for you: $groups = '0101000100101010001110010100111'; $groups_array = preg_split('//', $str, -1, PREG_SPLIT_NO_EMPTY); print_r($groups_array); $groups_as_string =

Re: [PHP] Session data disappearing?

2005-03-29 Thread Jochem Maas
Colin Ross wrote: In edit_schedule.phps: if (isset($_POST['add_available'])){ $year = $_POST['year']; $year = $year['NULL']; $month = $_POST['month']; $month = $month['NULL']; $day = $_POST['day']; $day = $day['NULL'];

[PHP] Re: php + mysql: binary arrays

2005-03-29 Thread Robert S
Hope I was helpful Yaron Khazai Thanks - will try that out soon. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] NEWBIE: Can't Get My Loop Going. . .

2005-03-29 Thread Jackson Linux
As usual, Jochem, thanks for all those useful tips. They are much appreciated. Jack On 29 Mar 2005, at 05:15, Jochem Maas wrote: Jackson Linux wrote: Hello all, I am a newbie trying to build a set of links to content in a db. I am connecting with the db and seeing the proper number of rows. if

Re: [PHP] rawurldecode

2005-03-29 Thread Aaron Todd
All I am doing is adding a file name as a variable in the URL.http://www.mysite.com/mypage.php?variable=this is my image.jpg When I do a echo $_GET['variable']; it only writes the first word. Is there some setting that might be turned off in the php.ini file that would disable this

[PHP] ISO encoding of subject in mail?

2005-03-29 Thread Kim Madsen
Hi I´d like to encode the subject in mails generated and sent by PHP, so Danish letters like æ,ø and å can be used too... like this: Subject: Problemer med =?ISO-8859-1?Q?f=E6llesdrev_m=2Em=2E?= I can´t seem to find a proper function for this? I´ve tried with encode(), htmlentities() and

Re: [PHP] rawurldecode

2005-03-29 Thread Marek Kilimajer
Aaron Todd wrote: All I am doing is adding a file name as a variable in the URL.http://www.mysite.com/mypage.php?variable=this is my image.jpg You should write: echo 'a href=http://www.mysite.com/mypage.php?variable=' . rawurlencode('this is my image.jpg') . 'here/a'; Then $_GET['variable']

[PHP] Re: rawurldecode

2005-03-29 Thread Aaron Todd
I have been playing around with the varialbe that I am sending here and I have found that this function is actually working correctly. Spaces an punctuation decode properly, but an amperstand seems to be where my ploblem is. I know its a very weird character to be using, but it is a valid

Re: [PHP] rawurldecode

2005-03-29 Thread Aaron Todd
I got it. After you said I shouldn't need it I started playing around and found that you were right...I didnt need it for spaces and other punctuation. But I was then having a problem with amperstands. It was dropping everything after an amperstand off. I ended up doing a rawurldecode of

[PHP] Re: ISO encoding of subject in mail?

2005-03-29 Thread l0t3k
Kim, i vaguely recall some new (aka 5.04) functions added to the mbstring extension to handle this. BTW, are you _the_ Kim Madsen of TKBMMemtable fame ? Kim Madsen [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi I´d like to encode the subject in mails generated and sent by PHP,

Re: [PHP] Reading all headers sent

2005-03-29 Thread martin
Solved, Just in case someone finds it usefull. I could get the raw post with : $send = $GLOBALS['HTTP_RAW_POST_DATA']; And then the headers I need in the $_SERVER globals. $header[] = MessageType:$_SERVER[HTTP_MESSAGETYPE]; // CALL $header[] = Content-Type:$_SERVER[CONTENT_TYPE]; //

[PHP] Limitation in preg_match ?

2005-03-29 Thread Cedric Fontaine
Hello, I'm using a script to parse mail and extract attachments on-fly. But I think that this preg_match (preg_match(#([-]+|)$bound(.+?)([-]+?)$bound#is, $data, $strip)) doesn't work at all if content is too big (for ex 7Mo). Is there any known limitation on it ? I'm using php 4.3.10 and this

[PHP] Re: ISO encoding of subject in mail?

2005-03-29 Thread M. Sokolewicz
convert it to quoted-printable using eg. imap_8bit() L0t3k wrote: Kim, i vaguely recall some new (aka 5.04) functions added to the mbstring extension to handle this. BTW, are you _the_ Kim Madsen of TKBMMemtable fame ? Kim Madsen [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi

[PHP] RE: Best Server OS

2005-03-29 Thread Gerald Artman
I would recommend OSX Top ratings on security compared to Linux or Windows Fast processors in many configurations, most include 1000T Starting at $500 to $3500 for up to +15MIPS performance Excellent GUI interface Supported by Apache, PHP, MySQL

[PHP] Any personal experience with MySQL/Calendar application

2005-03-29 Thread Todd Cary
I am looking for an open source calendar program that uses MySQL to store the data and has an online Admin feature. Rather than trying the many that are listed, I am hoping that someone may have some personal experience with a application of this type and make a recommendation. Todd -- PHP

Re: [PHP] How to sort that array?

2005-03-29 Thread Merlin
hmm.. I am not sure if JS is the best sollution for that. I am pretty sure that there is a way with php for that. The basic problem comes down to not be able to sort an array customized. Lets take this array as an example: $code[language]= array(1= php, 2= asp); There must for sure be a way

[PHP] Re: phpDocumentor usage (specifically changelog capability?)

2005-03-29 Thread Elizabeth Smith
[EMAIL PROTECTED] wrote: I didn't see a specific mailing list for phpDocumentor and wanted to get a general feel for people's experiances with it. I see that Zend Studio 4 supports it internally and I'd really like to get our group over to a standardized documentation scheme (and in the

Re: [PHP] filesize() Returns a file size. What will return a directorysize()???

2005-03-29 Thread Lupita
Yes it is on a Linux system. I have done a little research and I am having a hard time finding info about executing shell commands with php. This seems like a very interesting possibility being able to use shell commands. Any info you could point me to would be very appreciated. I did find this

[PHP] calling stored procedures from php

2005-03-29 Thread Cima
hi , i have a stored procedure in postgresql and id like to call it or execute it from php. how do call this stored procedure with its variables or parameters? thanx

Re: [PHP] Storing data structires in DB

2005-03-29 Thread GamblerZG
You are looking for serialize here. I bet you'd be better off with an existing XML format for something like this though. WDDX is an unusual extension for most of the hosting providers. And writing my own XML serialization mechanism is an overkill. Moreover, XML is not-compact, harder to edit

[PHP] filtering uploaded files

2005-03-29 Thread Cima
hi, id like to know if there is a way to filter or specify what type of files id like uploaded to my server. for example, if i make a form to upload image files, when i click browse there are 2 fields one that'll store the file name(of the file selected) and the other filetype (usually say all

Re: [PHP] Any personal experience with MySQL/Calendar application

2005-03-29 Thread Peter G. Brown
I have used egroupware in a company setting and found it to be largely satisfactory. It might be overkill in your case but you can restrict module access. www.egroupware.org HTH Peter Brown Todd Cary wrote: I am looking for an open source calendar program that uses MySQL to store the data and

Re: [PHP] Any personal experience with MySQL/Calendar application

2005-03-29 Thread Joe Harman
Hey Todd... I have one that I created and posted at Zend.com ... it can be easily adapted to store data n MySQL... Joe On Tue, 29 Mar 2005 12:33:12 -0500, Peter G. Brown [EMAIL PROTECTED] wrote: I have used egroupware in a company setting and found it to be largely satisfactory. It might be

Re: [PHP] Session data disappearing?

2005-03-29 Thread Richard Lynch
On Tue, March 29, 2005 3:06 am, Colin Ross said: In edit_schedule.phps: if (isset($_POST['add_available'])){ $year = $_POST['year']; $year = $year['NULL']; $month = $_POST['month']; $month = $month['NULL']; $day = $_POST['day'];

Re: [PHP] filtering uploaded files

2005-03-29 Thread A. S. Milnes
On Tue, 2005-03-29 at 21:59, Cima wrote: hi, id like to know if there is a way to filter or specify what type of files id like uploaded to my server. for example, if i make a form to upload image files, when i click browse there are 2 fields one that'll store the file name(of the file

Re: [PHP] calling stored procedures from php

2005-03-29 Thread Marek Kilimajer
Cima wrote: hi , i have a stored procedure in postgresql and id like to call it or execute it from php. how do call this stored procedure with its variables or parameters? Like any other query, using pg_query() -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Any personal experience with MySQL/Calendar application

2005-03-29 Thread tg-php
Made one myself that I thought was pretty good at the time (one of my first PHP projects) but as I learned more about PHP, I see that I did things the hard way, so it's in bad need of updating. If you wanted the source to play with as a starting point, I could probably through that together

Re: [PHP] Session data disappearing?

2005-03-29 Thread Richard Lynch
On Tue, March 29, 2005 2:52 am, Colin Ross said: a couple points on your code... if something makes it to the session scope, $_SESSION[], it should be valid/verified, so why copy them all to a global var? i.e. $name = $_SESSION['name']; I don't want to litter my later code with

Re: [PHP] filtering uploaded files

2005-03-29 Thread Marek Kilimajer
Cima wrote: hi, id like to know if there is a way to filter or specify what type of files id like uploaded to my server. for example, if i make a form to upload image files, when i click browse there are 2 fields one that'll store the file name(of the file selected) and the other filetype

[PHP] Remove duplicate values in an array

2005-03-29 Thread Alexandru Martin
How can I remove duplicate values from an array ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] filtering uploaded files

2005-03-29 Thread Marek Kilimajer
Cima wrote: hi, id like to know if there is a way to filter or specify what type of files id like uploaded to my server. for example, if i make a form to upload image files, when i click browse there are 2 fields one that'll store the file name(of the file selected) and the other filetype

Re: [PHP] Remove duplicate values in an array

2005-03-29 Thread Marek Kilimajer
Alexandru Martin wrote: How can I remove duplicate values from an array ? array_unique() -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Execute appliction and pass parameters to it!

2005-03-29 Thread Dipesh Khakhkhar
  Hi, I am trying to execute one application (bat file) and need to pass parameter to it. I want to put this into wrapper file which i can call over http. Can i do this? I tried the following: -- 1) $output =

[PHP] xml question

2005-03-29 Thread Jeremy Reynolds
I'm new to XML. I'm just now learning about XML tags and how an XML Style Sheet can be used to filter or format the data. Something missing in my mind is how to submit the XML to the XSLT though. If the XML page contained a path to the XSLT page, that would make sense. But I haven't run

[PHP] Re: ISO encoding of subject in mail?

2005-03-29 Thread Manuel Lemos
Hello, on 03/29/2005 10:55 AM Kim Madsen said the following: I´d like to encode the subject in mails generated and sent by PHP, so Danish letters like æ,ø and å can be used too... like this: Subject: Problemer med =?ISO-8859-1?Q?f=E6llesdrev_m=2Em=2E?= That is q-encoding. PHP has a function

Re: [PHP] xml question

2005-03-29 Thread Marek Kilimajer
Jeremy Reynolds wrote: I'm new to XML. I'm just now learning about XML tags and how an XML Style Sheet can be used to filter or format the data. Something missing in my mind is how to submit the XML to the XSLT though. If the XML page contained a path to the XSLT page, that would make sense.

Re: [PHP] filesize() Returns a file size. What will return a directorysize()???

2005-03-29 Thread Dotan Cohen
On Tue, 29 Mar 2005 08:51:49 -0800, Lupita [EMAIL PROTECTED] wrote: Yes it is on a Linux system. I have done a little research and I am having a hard time finding info about executing shell commands with php. This seems like a very interesting possibility being able to use shell commands. Any

[PHP] POST variables from a link...and popup new window

2005-03-29 Thread james tu
Hi: I have a link that, when clicked on, pops up a new window. I want to use the POST method in order to pass information. Right now I'm appending the parameters to the URL of the link and using GET to retrieve the name/value pairs. Is there a way to do this? -- -James -- PHP General Mailing

Re: [PHP] POST variables from a link...and popup new window

2005-03-29 Thread John Nichel
james tu wrote: Hi: I have a link that, when clicked on, pops up a new window. I want to use the POST method in order to pass information. Right now I'm appending the parameters to the URL of the link and using GET to retrieve the name/value pairs. Is there a way to do this? Yes. -- John C.

Re: [PHP] Execute appliction and pass parameters to it!

2005-03-29 Thread Richard Lynch
On Tue, March 29, 2005 10:38 am, Dipesh Khakhkhar said: -- 1) $output = shell_exec('..\phpunit.bat C:\Run.php'); echo $output; Change shell_exec to exec, and use the extra parameters to get back ERROR MESSAGES and ERROR

Re: [PHP] filtering uploaded files

2005-03-29 Thread Richard Lynch
//The mime type of the file, if the browser provided this information. $userfile_type=$_FILES['userfile']['type']; Nooo! First of all, the browsers do *NOT* provide any kind of standardized MIME types. One will call it text/x-csv, the other text/csv, the other text/plain, ...

[PHP] String format best practice

2005-03-29 Thread René Fournier
I need to output a Hex value, e.g.: 686E8AF8 In the following format: 68 6E 8A F8 In other words, separated by spaces. Now I realize there are a million ways to do this, but I would like a suggestion on which you think is the most efficient? Incidentally, I'm starting with a decimal value

Re: [PHP] POST variables from a link...and popup new window

2005-03-29 Thread Richard Lynch
On Tue, March 29, 2005 1:09 pm, james tu said: I have a link that, when clicked on, pops up a new window. I want to use the POST method in order to pass information. Right now I'm appending the parameters to the URL of the link and using GET to retrieve the name/value pairs. form

[PHP] Sprintf?

2005-03-29 Thread René Fournier
I need to go from 1754210747 (decimal) to 17 54 21 a7 47 (hex per character) Basically, reformat the string for each character, converting it to Hex, and spacing after each two characters. Sprintf? ...Rene -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] String format best practice

2005-03-29 Thread Richard Lynch
On Tue, March 29, 2005 1:27 pm, René Fournier said: I need to output a Hex value, e.g.: 686E8AF8 In the following format: 68 6E 8A F8 In other words, separated by spaces. Now I realize there are a million ways to do this, but I would like a suggestion on which you think is the most

[PHP] Re: filtering uploaded files

2005-03-29 Thread A. S. Milnes
On Tue, 2005-03-29 at 22:23, Richard Lynch wrote: //The mime type of the file, if the browser provided this information. $userfile_type=$_FILES['userfile']['type']; Nooo! Hmm - some very senior people disagree with you! First of all, the browsers do *NOT* provide any kind of

RE: [PHP] String format best practice

2005-03-29 Thread Jared Williams
I need to output a Hex value, e.g.: 686E8AF8 In the following format: 68 6E 8A F8 In other words, separated by spaces. Now I realize there are a million ways to do this, but I would like a suggestion on which you think is the most efficient? Incidentally, I'm starting

[PHP] HTML meta tag and PHP

2005-03-29 Thread david joffrin
Hi, How can I write something like that? meta http-equiv=Refresh content=0;url=registration.php?step=4userId=%php echo trim($_POST[userid]); This is obviously not working as the is assumed as the closing for the meta tag. Thanks. DvJ -- PHP General Mailing List (http://www.php.net/) To

RE: [PHP] HTML meta tag and PHP

2005-03-29 Thread Pablo Gosse
snip How can I write something like that? meta http-equiv=Refresh content=0;url=registration.php?step=4userId=%php echo trim($_POST[userid]); This is obviously not working as the is assumed as the closing for the meta tag. /snip You haven't closed your opening php tag, which is why it's

RE: [PHP] HTML meta tag and PHP

2005-03-29 Thread Pablo Gosse
snip How can I write something like that? meta http-equiv=Refresh content=0;url=registration.php?step=4userId=%php echo trim($_POST[userid]); This is obviously not working as the is assumed as the closing for the meta tag. /snip Sorry, I botched my previous reply and left the extra after

Re: [PHP] RE: Best Server OS

2005-03-29 Thread Rory Browne
I'd stick OSX in somewhere between fedora and windows. Where do you get these security ratings? How does sendmail, or bind appear in these ratings? Some ratings suggest that windows is more secure than Unix!! You don't need a gui in a server. On Tue, 29 Mar 2005 11:10:18 -0500, Gerald Artman

[PHP] Re: filtering uploaded files

2005-03-29 Thread Josip Dzolonga
You can check this function too : http://www.php.net/mime_content_type . It's not platform specific :). Btw, mime_magic extension has to be enabled. Hope that this helped. -- Josip Dzolonga http://josip.dotgeek.org jdzolonga[at]gmail.com -- PHP General Mailing List (http://www.php.net/) To

RE: [PHP] HTML meta tag and PHP

2005-03-29 Thread david joffrin
I tried the following scenario and here is the outcome: .../registration.php?step=4userId=%php%20trim($_POST[ with that line: meta http-equiv=Refresh content=0;url=registration.php?step=4userId=%php trim($_POST[userid]); % Any idea? From: Pablo Gosse [EMAIL PROTECTED] To: david joffrin [EMAIL

RE: [PHP] HTML meta tag and PHP

2005-03-29 Thread Chris W. Parker
david joffrin mailto:[EMAIL PROTECTED] on Tuesday, March 29, 2005 3:51 PM said: I tried the following scenario and here is the outcome: .../registration.php?step=4userId=%php%20trim($_POST[ [snip /] Any idea? ?php ? not %php % maybe? 0.02 Chris. -- PHP General Mailing List

[PHP] Re: Some help on using regex

2005-03-29 Thread Jamie Alessio
Im having a problem matcing some code using preg_match_all. The regex statement needs to be very flexiable. The code im using is: project(\n| |.)+project [snip] -==- Output from socket -==- project master_urlhttp://climateprediction.net//master_url

[PHP] HELP , HELP ,HELP

2005-03-29 Thread wangchq
Hi; Would somebody help me ? I would be appreciate. I use this regulation expression to check account(money)type, but it does not work. if(eregi(^\$[0-9]+\,[0-9]+\.[0-9]+,$set,$account)){ $reg_account=$account[1]; } else $reg_account=-1; yours, justin

RE: [PHP] HELP , HELP ,HELP

2005-03-29 Thread Chris W. Parker
wangchq mailto:[EMAIL PROTECTED] on Tuesday, March 29, 2005 4:50 PM said: Hi; Hello. I use this regulation expression to check account(money)type, but it does not work. That's regular expression. You were close. :P if(eregi(^\$[0-9]+\,[0-9]+\.[0-9]+,$set,$account)){

FW: [PHP] HELP , HELP ,HELP

2005-03-29 Thread Chris W. Parker
Wangchq, Please send all responses to the public mailing list. What we need to know from you is what $set is and what data it contains. Otherwise there's no way to tell why it's not matching. Chris. -Original Message- From: wangchq [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 29,

[PHP] Include file

2005-03-29 Thread Marquez Design
Does anyone know how to include a variable page? The variable is a page name. Such as inluded_file.html Include ('../includes/$include'); Does not seem to work. Thanks! -- Steve -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] : [PHP] HELP , HELP ,HELP

2005-03-29 Thread wangchq
-- : Chris W. Parker [mailto:[EMAIL PROTECTED] : 2005330 9:36 : php-general@lists.php.net : FW: [PHP] HELP , HELP ,HELP Wangchq, Please send all responses to the public mailing list. What we need to know from you is what $set is and what data it contains. Otherwise there's no way to

Re: [PHP] Include file

2005-03-29 Thread Richard Davey
Hello Marquez, Wednesday, March 30, 2005, 2:41:15 AM, you wrote: MD Does anyone know how to include a variable page? The variable is a page MD name. Such as inluded_file.html MD Include ('../includes/$include'); MD Does not seem to work. You cannot use variables inside single quotes. Try

Re: [PHP] Include file

2005-03-29 Thread James Pancoast
Try it with double quotes instead: include( ../includes/$include ); That way works for me. And I also hope you're cleansing or filtering $include in some way. On Tue, 29 Mar 2005 19:41:15 -0600, Marquez Design [EMAIL PROTECTED] wrote: Does anyone know how to include a variable page? The

[PHP] URL restriction on XML file

2005-03-29 Thread Roger Thomas
I have a short script to parse my XML file. The parsing produces no error and all output looks good EXCEPT url-links were truncated IF it contain the 'amp;' characters. My XML file looks like this: --- start of XML --- ?xml version=1.0 encoding=iso-8859-1? rss version=2.0 channel titleTest News

[PHP] PHP 5 Strings are References?!

2005-03-29 Thread Richard Lynch
Aha! Okay, here's the previous session question boiled down to its simplest: ?php session_start(); if (!isset($_SESSION['name'])){ $_SESSION['name'] = 'Richard Lynch'; } else{ $name = $_SESSION['name']; } /* Assume a ton of code goes here */ $name = 'Fooey'; echo Session

Re: [PHP] HELP , HELP ,HELP

2005-03-29 Thread Richard Lynch
On Tue, March 29, 2005 4:49 pm, wangchq said: if(eregi(^\$[0-9]+\,[0-9]+\.[0-9]+,$set,$account)){ For starters: PHP use \ as an escape character for $ inside of Regex uses \ as an escape character for $ as a literal rather than line-end character. So your \$ should be \\\$, because PHP will

RE: [PHP] HTML meta tag and PHP

2005-03-29 Thread Richard Lynch
On Tue, March 29, 2005 2:51 pm, Pablo Gosse said: snip How can I write something like that? meta http-equiv=Refresh content=0;url=registration.php?step=4userId=%php echo trim($_POST[userid]); This is obviously not working as the is assumed as the closing for the meta tag. /snip

[PHP] Re: filtering uploaded files

2005-03-29 Thread Richard Lynch
On Tue, March 29, 2005 2:04 pm, A. S. Milnes said: On Tue, 2005-03-29 at 22:23, Richard Lynch wrote: //The mime type of the file, if the browser provided this information. $userfile_type=$_FILES['userfile']['type']; Nooo! Hmm - some very senior people disagree with you!

[PHP] HTTP RAW CONETNE question

2005-03-29 Thread
Dear php users, I've been working on a project which needs to get the raw post content from the http request. Unfortunately,I can't get the content with $HTTP_RAW_POST_DATA variable. My php version is 4.2.2. My OS is rh linux9.0. And I've turned the global variable tag. Any hints would be

Re: [PHP] NEWBIE: Can't Get My Loop Going. . .

2005-03-29 Thread Colin Ross
i was thinkin in more general term too, what about: $data = readfile($file); /// etc, etc, etc -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] HTTP RAW CONETNE question

2005-03-29 Thread Burhan Khalid
wrote: Dear php users, I've been working on a project which needs to get the raw post content from the http request. Unfortunately,I can't get the content with $HTTP_RAW_POST_DATA variable. My php version is 4.2.2. My OS is rh linux9.0. And I've turned the global variable tag. Any

RE: [PHP] Re: ISO encoding of subject in mail?

2005-03-29 Thread Kim Madsen
-Original Message- From: l0t3k [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 30, 2005 7:07 AM Kim, i vaguely recall some new (aka 5.04) functions added to the mbstring extension to handle this. Hmm... I´m programming on a platform with 4.3.10, so that won´t work for me.

Re: [PHP] Re: ISO encoding of subject in mail?

2005-03-29 Thread Lars B. Jensen
i vaguely recall some new (aka 5.04) functions added to the mbstring extension to handle this. Hmm... I´m programming on a platform with 4.3.10, so that won´t work for me. Might just create my own function since it´s 6 chars that needs to be converted... beware of biting dog when proceeding

RE: [PHP] Re: ISO encoding of subject in mail?

2005-03-29 Thread Kim Madsen
-Original Message- From: M. Sokolewicz [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 29, 2005 6:09 PM convert it to quoted-printable using eg. imap_8bit() That seems to be, what I want _but_ NO PHP is printed after I call this function. I turns out that we haven´t got PHP compiled

Re: [PHP] PHP 5 Strings are References?!

2005-03-29 Thread Chris
Richard Lynch wrote: On Tue, March 29, 2005 7:58 pm, Chris said: Richard Lynch wrote: Aha! Okay, here's the previous session question boiled down to its simplest: ?php session_start(); if (!isset($_SESSION['name'])){ $_SESSION['name'] = 'Richard Lynch'; } else{ $name =

[PHP] Enabling MySQL support Problemmmmm!!!!

2005-03-29 Thread wan nordiana Wan Abd Kadir
Hello, I am having problem with enabling MySQL Support. I am using PHP 5 and mysql 4.3.1 The problem is that when I start my PHP info page, PHP module gives me an error: PHP Startup: Unable to load dynamic library '...' - The specified module could not be found. BUT THEY ARE!!! A part of my