-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
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
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
[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
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,
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
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
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
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 =
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
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
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 =
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'];
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
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
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
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
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']
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
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
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,
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]; //
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
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
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
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
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
[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
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
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
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
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
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
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
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'];
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
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:
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
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
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
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
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
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
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 =
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
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
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.
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
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
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.
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
//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, ...
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
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
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:
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
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
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
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
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
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
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
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
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
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
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
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
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)){
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,
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
--
: 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
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
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
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
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
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
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
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!
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
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
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
-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.
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
-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
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 =
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
86 matches
Mail list logo