php-general Digest 6 Mar 2006 08:20:37 - Issue 4000
Topics (messages 231475 through 231494):
Re: output Today's date
231475 by: jblanchard.pocket.com
231484 by: Curt Zirzow
Re: Mysql Rows
231476 by: jblanchard.pocket.com
231480 by: Curt Zirzow
231492
The only way I could work around this was to put empty ?? at the
Beginning of the text and now highlight_string() highlights only what
Is inside ? ?
You can see an example of the problematic text in the example
Area of this page : http://www.weberdev.com/get_example-4345.html
Notice the empty ?
On 3/6/06, Weber Sites LTD [EMAIL PROTECTED] wrote:
The only way I could work around this was to put empty ?? at the
Beginning of the text and now highlight_string() highlights only what
Is inside ? ?
You can see an example of the problematic text in the example
Area of this page :
The only way I could work around this was to put empty ?? at the
Beginning of the text and now highlight_string() highlights only what
Is inside ? ?
You can see an example of the problematic text in the example
Area of this page : http://www.weberdev.com/get_example-4345.html
Notice the
I was afraid of that...
I need to do HTML manipulations on the text that is outside the ??.
After I run highlight_string the original text is messed up.
If I run the manipulations before then they will look like HTML
And not act as HTML...
Any ideas?
-Original Message-
From: chris smith
On Sat, Mar 04, 2006 at 07:01:55PM -0700, Paul Goepfert wrote:
Hi all,
ls there anyway I can set the date to the timezone of the clients
timezone? For example, if a person opens the web page at 3/6 12:01
EST and another person opens the same page at 3/5 10:01 MST I would
like
Does anyone know of a Php funtion that can do this:
http://golem.ph.utexas.edu/~distler/blog/NumericEntities.html
Thanks,
Jacob
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi there!
http://se.php.net/manual/en/function.htmlentities.php
?
Best regards
Gustav Wiberg
Does anyone know of a Php funtion that can do this:
http://golem.ph.utexas.edu/~distler/blog/NumericEntities.html
Thanks,
Jacob
--
PHP General Mailing List (http://www.php.net/)
To
On Sat, Mar 04, 2006 at 07:01:55PM -0700, Paul Goepfert wrote:
Hi all,
ls there anyway I can set the date to the timezone of the clients
timezone? For example, if a person opens the web page at 3/6 12:01
EST and another person opens the same page at 3/5 10:01 MST I would
like the
[EMAIL PROTECTED] wrote:
On Sat, Mar 04, 2006 at 07:01:55PM -0700, Paul Goepfert wrote:
Hi all,
ls there anyway I can set the date to the timezone of the clients
timezone? For example, if a person opens the web page at 3/6 12:01
EST and another person opens the same page at 3/5 10:01 MST I
Andreas Korthaus wrote:
I think this should be OK, or shouldn't I do it this way?
Both ways are perfectly acceptable and all up to personal preference. In
fact, to support the way you are doing it was one of the reasons why DOM
classes were allowed to be extended.
Perhaps you have seen that
Andreas Korthaus wrote:
Hi!
The XML-Code I have to create (http://news.php.net/php.general/231486),
needs a root-element, with xmlns and XML schema link, something like that:
Test xmlns=http://example.com/test;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
[snip]
You must have a column that is sequential in some way. An
auto-incremented column, timestamp, or some other device that will
allow
you to step through regardless of gaps in sequence. If you do not have
such a column then you could add one.
You see, now that's the problem. If you have a
Hi,
I haven't yet worked with namespaces in XML before when it comes to DOM
related methods. My source is an Office 2003 Excel XML and it contains
XML like:
?xml version=1.0?
?mso-application progid=Excel.Sheet?
Workbook xmlns=urn:schemas-microsoft-com:office:spreadsheet
Mark wrote:
Can anyone tell me why i am getting this message when trying to login to the
admin section, i am running the script off my local machine.
Warning: session_register() [function.session-register]: Cannot send session
cookie - headers already sent by (output started at
As such, if you don't renumber, then the only thing left is to use a
timestamp, I guess.
[/snip]
No, if you have gaps you can still step through sequentially, like 14,
15, 18, 19, 20...
It's the gaps that are the problem.
I have no problem understanding why there are gaps in a dB and
dealing
On Monday 06 March 2006 07:56, tedd wrote:
So, I'm still trying to find a simple way around this problem. Either
I renumber the id field OR provide an external counter to present
to the user. I don't see any other solutions, does anyone?
Thanks.
tedd
I haven't followed this thread very
tedd wrote:
As such, if you don't renumber, then the only thing left is to use a
timestamp, I guess.
[/snip]
No, if you have gaps you can still step through sequentially, like 14,
15, 18, 19, 20...
It's the gaps that are the problem.
I have no problem understanding why there are gaps in a
Markus Fischer wrote:
Hi,
I haven't yet worked with namespaces in XML before when it comes to DOM
related methods. My source is an Office 2003 Excel XML and it contains
XML like:
?xml version=1.0?
?mso-application progid=Excel.Sheet?
Workbook xmlns=urn:schemas-microsoft-com:office:spreadsheet
Thanks Rob, that's it!
I really appreciate your help, because I know that my initial question
had very little to do with PHP but with XML ..
again, thank you!
- Markus
Rob wrote:
Markus Fischer wrote:
Hi,
I haven't yet worked with namespaces in XML before when it comes to DOM
related
Does anyone know of a Php funtion that can do this:
http://golem.ph.utexas.edu/~distler/blog/NumericEntities.html
Hi there!
http://se.php.net/manual/en/function.htmlentities.php
?
htmlentities converts to named entitites. I want it to numeric entities.
--
PHP General Mailing List
Hello John,
Wednesday, March 1, 2006, 11:38:15 AM, you wrote:
Outside of being a major spam flag, and possibly reaching the limits
of your smtp server.
Agreed... Sending mass mail via BCC is going to be nothing but
headaches. I've been down that road a number of times.
--
Jacob Friis Saxberg wrote:
Does anyone know of a Php funtion that can do this:
http://golem.ph.utexas.edu/~distler/blog/NumericEntities.html
Hi there!
http://se.php.net/manual/en/function.htmlentities.php
?
htmlentities converts to named entitites. I want it to numeric
I was wondering if there was a way I can see where people are linking
to me from. Can I find this in php?
--Ben
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Benjamin Adams wrote:
I was wondering if there was a way I can see where people are linking
to me from. Can I find this in php?
--Ben
$_SERVER[HTTP_REFERER];
It's an Apache server variable.
--
Smileys rule (cX.x)C --o(^_^o)
Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o)
--
PHP General
[snip]
I was wondering if there was a way I can see where people are linking
to me from. Can I find this in php?
[/snip]
HTTP_REFERRER is good to see where people are coming from, if it is set.
Are you wanting to see if people have links to your site? If so, you're
going to need a spider.
--
If you want to find out who is actually linking to you altogether (such as
for search engine optimization, etc.) you are going to want to use the
following search query in Yahoo...
linksite:yoursite.com -site:yoursite.com
This will tell you everyone who is linking to you minus the links coming
I have banners on other websites.
I'm trying to detect who is clicking on what banners.
I can have the company that has the banners throw a ?
bannercompany='companyname'
and do a query on that but I would like to do it just by auto detecting
Ben
On Mar 6, 2006, at 11:21 AM, [EMAIL PROTECTED]
Hi,
I really don't think this is possible from what I know of php, but I
thought I would as the experts.
Is it possible to have php create directories and move files on a local
machine. I have created a web portal for a
Well it seems you output it via PHP so count it extern in PHP.
And changing ID values is a no-go!
You will never have any relation possibilities if you alter the ID fields.
In short. You mess everthing up with it.
There are count functions in MySQL that gives you the counted rows
or output it
Currently I have
an ini file that has the list of banner websites
I can make it count
problem is:
$_SERVER['REFERER'] will give me the full link
http://www.domain.com/dir/location/file.php
where I just want the
http://www.domain.com/
Ben
On Mar 6, 2006, at 11:39 AM, Benjamin Adams wrote:
I
Hi,
Im getting the following: Warning: mysql_connect(): Can't connect to
local MySQL server through socket...etc.
NOTES:
1.) MySQL 5 is running fine.
2.) Im able to connect to it via Navicat.
3.) I run Lasso on the same host, I know that I can pull and post
data to and from MySQL. So its
Miles Thompson wrote:
I hope the following will be helpful, and it is a bit of a rant ..
thank god someone ranted on this already :-)
I wasn't feeling up to it but it's also one of those cases that you can't
help but speak out. ;-)
--
PHP General Mailing List (http://www.php.net/)
To
[snip]
That's the reason when I started this thread I made it clear that I
was NOT talking about a relational dB but rather a simple flat file.
What I find interesting in all of this exchange -- however -- is that
everyone agree's renumbering the id of a dB is something you don't
do, but no
Benjamin Adams wrote:
Currently I have
an ini file that has the list of banner websites
I can make it count
problem is:
$_SERVER['REFERER'] will give me the full link
http://www.domain.com/dir/location/file.php
where I just want the
http://www.domain.com/
Look at http://php.net/parse_url
Got it Thanks!!
Ben
On Mar 6, 2006, at 12:13 PM, Stut wrote:
Benjamin Adams wrote:
Currently I have
an ini file that has the list of banner websites
I can make it count
problem is:
$_SERVER['REFERER'] will give me the full link
http://www.domain.com/dir/location/file.php
where I just want
tedd wrote:
Well it seems you output it via PHP so count it extern in PHP.
And changing ID values is a no-go!
You will never have any relation possibilities if you alter the ID
fields.
In short. You mess everthing up with it.
There are count functions in MySQL that gives you the counted rows
Jacob Friis Saxberg wrote:
Does anyone know of a Php funtion that can do this:
http://golem.ph.utexas.edu/~distler/blog/NumericEntities.html
http://se.php.net/manual/en/function.htmlentities.php
htmlentities converts to named entitites. I want it to numeric entities.
Yes; 'tis true.
Hi,
Figured it out:
Apple wiped out the location of the socket.
they wanted '/var/mysql/mysql.sock'
it should be: '/tmp/mysql.sock'
Problem solved.
M i l e s.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Another point to consider, is that Tedds method of renumbering the rows,
*may* not preserve the original sequence. I have not checked the mysql
source, but if some delete activity has occurred in the table, then
there will be holes in the data, in some circumstances, inserting
further records to
On 3/6/06, Dusty Bin [EMAIL PROTECTED] wrote:
Another point to consider, is that Tedds method of renumbering the rows,
*may* not preserve the original sequence. I have not checked the mysql
source, but if some delete activity has occurred in the table, then
there will be holes in the data, in
Here is an example for you.
First make an array like this:
$translate_array= array(
' ' = ' amp; ',
'' = 'amp;',
'WOD' = 'Wamp;OD',
'O'= 'amp;O',
'MF' = 'Mamp;F',
);
Then use:
$find_array= array_keys($translate_array);
$replace_array=
Mace Eliason wrote:
Hi,
I really don't think this is possible from what I know of php, but I
thought I would as the experts.
Is it possible to have php create directories and move files on a local
machine. I have
Hi Al,
Thank you for your reply. I have changed my code to the following:
---CODE---
?php
$text = $_REQUEST['text'];
echo 'br /br /';
$translate_array = array(
'strong' = '[b]',
'/strong' = '[/b]',
'b' = '[b]',
'/b' = '[/b]',
'em' = '[i]',
'/em' = '[/i]',
'i' = '[i]',
'/i' = '[/i]',
What I find interesting in all of this exchange -- however -- is that
everyone agree's renumbering the id of a dB is something you don't
do, but no one can come up with a concrete (other than relational)
reason why.
If you don't care that a given record may have a different,
Hello everyone.
I'm trying to use my php4 conecting to a mysql5 server, and then executing
some command lines to create a stored procedure but it's not working.
When a tried to execute delimiter |, my php gets de follow error:
You have an error in your SQL syntax; check the manual that
At 10:56 AM 3/6/2006, tedd wrote:
As such, if you don't renumber, then the only thing left is to use a
timestamp, I guess.
[/snip]
No, if you have gaps you can still step through sequentially, like 14,
15, 18, 19, 20...
It's the gaps that are the problem.
I have no problem understanding why
On 3/6/06, Jim Moseby [EMAIL PROTECTED] wrote:
What I find interesting in all of this exchange -- however -- is that
everyone agree's renumbering the id of a dB is something you don't
do, but no one can come up with a concrete (other than relational)
reason why.
If you don't care
Hi.
I want to have a script that when run backs up all emails in a pop3
mailbox that are from email addresses not in a database. The person who
has sent the email will receive an email that asks them to verify the
email by clicking a link and then the email is sent.
I need to know how to
At 08:57 AM 3/6/2006, tedd wrote:
What I find interesting in all of this exchange -- however -- is
that everyone agree's renumbering the id of a dB is something you
don't do, but no one can come up with a concrete (other than
relational) reason why.
It's simply -- concretely -- inefficient
(Re-sending as I accidentally sent my original post directly to Al)
Al wrote:
Mace Eliason wrote:
I really don't think this is possible from what I know of php, but I
thought I would as the experts.
Is it possible to have php create directories and move files on a
local machine. I have
PHP don't do this.
The user must select a file to upload and then the PHP can work with this.
PHP has no access to local files, think with me, how can PHP discover which
machine in internet he has to access to get files.
Mace Eliason wrote:
PHP can do this, but you'd need it set up on each of the client
computers and periodically run to check the temp folder and perform the
upload. That's what any other application that can do similar does.
Cheers,
Rob.
On Mon, 2006-03-06 at 15:30, João Cândido de Souza Neto wrote:
PHP don't do
Ok, but you're telling that the client will be doing upload to server. Not
the server doing a dounload from client. I was understood as a wrong way.
I'm sorry.
Robert Cummings wrote:
PHP can do this, but you'd need it set up on each of the client
computers and periodically run to check the
Yeah, you can't do the local computer file moving and all that with the same
script as your server side component, but if you'd rather not learn C# or
another language like that, but you're comfortable with PHP, I'd highly
recommend checking out Winbinder (http://www.winbinder.com). Assuming
Curt Zirzow wrote:
I assume your loop is something like:
while(condition) {
$auction_parts['id'] = 'some value';
$auction_parts['name'] = 'some value';
...
$insert-execute();
}
Yes, thats it.
My first guess would be, if not aleady done, initialize
$auction_parts
I am trying to simplify an SQL query that is pretty much like below:
$sql = SELECT * FROM table WHERE keyword RLIKE '$expression1' OR
keyword RLIKE '$expression2' ;
The different terms '$expression1' and '$expression1' come from an array.
Is there any way to within one regular expression to
[snip]
I am trying to simplify an SQL query that is pretty much like below:
$sql = SELECT * FROM table WHERE keyword RLIKE '$expression1' OR
keyword RLIKE '$expression2' ;
The different terms '$expression1' and '$expression1' come from an
array.
Is there any way to within one regular
Hello everyone.
I'm trying to use my php4 conecting to a mysql5 server, and then executing
some command lines to create a stored procedure but it's not working.
When a tried to execute delimiter |, my php gets de follow error:
You have an error in your SQL syntax; check the manual that
I receive aa answer by e-mail in order this telling me that i must upgrade
my php4 to php5.
It means that a php4 server don't works fine with mysql5 server?
João Cândido de Souza Neto wrote:
Hello everyone.
I'm trying to use my php4 conecting to a mysql5 server, and then executing
some
[snip]
I receive aa answer by e-mail in order this telling me that i must upgrade
my php4 to php5.
It means that a php4 server don't works fine with mysql5 server?
[/snip]
http://www.php.net/mysqli is designed to work with versions of MySQL 4.1.n and
above. It requires PHP5
--
PHP General
IN ( exp1, exp2) didn't seem to work for me. I've seen that used
before for including a subquery, but somehow it didn't like the comma
separated list.
I think this below is doing it for me.
$separated = implode(|, (explode( ,
(AddSlashes($_REQUEST['terms']);
Rob wrote:
That's how namespaced attributes, which is nothing more than you are
creating, are supposed to be created in DOM.
OK, thank you!
best regards
Andreas
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Barry:
I realize that relational dB's are out if one does this -- and -- I
fully understand why.
That's the reason when I started this thread I made it clear that I was
NOT talking about a relational dB but rather a simple flat file.
What I find interesting in all of this exchange --
Brian Anderson wrote:
IN ( exp1, exp2) didn't seem to work for me. I've seen that used
before for including a subquery, but somehow it didn't like the comma
separated list.
I think this below is doing it for me.
$separated = implode(|, (explode( ,
(AddSlashes($_REQUEST['terms']);
João Cândido de Souza Neto wrote:
I receive aa answer by e-mail in order this telling me that i must upgrade
my php4 to php5.
It means that a php4 server don't works fine with mysql5 server?
João Cândido de Souza Neto wrote:
Hello everyone.
I'm trying to use my php4 conecting to a mysql5
_-=MealstroM=-_ wrote:
Hello php-general,
Hi. I ve got some trabl with this commands
ftp_pwd() and ftp_chdir()
They work correctly with some ftp servers,
but i ve got some problems with warftp server.
This server doesn't recognize them.
If the server doesn't recognise them we can't do much.
Rob Richards wrote:
You can also look at using xmlwriter, when creating serialized trees,
that automatically does escaping for you.
Hm, AFAIK latest xmlwriter versions provide an OO API. Do you know about
any documentation for it?
The only code I've seen so far is:
it does, you need the updated mysql library that comes with the php 5 files
(libmysql.dll for windows)
bastien
From: João Cândido de Souza Neto [EMAIL PROTECTED]
To: php-db@lists.php.net,php-general@lists.php.net
Subject: [PHP-DB] Re: PHP4 with MYSQL5
Date: Mon, 06 Mar 2006 18:38:56 -0300
I
Hi gang:
?php
echo str_repeat(Okay, I give up! , 100);
?
Miles said:
Why are we still chasing this thread?
No need to pursue this thread anymore -- I'll just address the
statements put to me.
Why does he even have to see gaps? Just present the info, unless he
wants to see the ID.
Weber Sites LTD wrote:
I was afraid of that...
I need to do HTML manipulations on the text that is outside the ??.
After I run highlight_string the original text is messed up.
If I run the manipulations before then they will look like HTML
And not act as HTML...
Any ideas?
You could get the
I am looking for some PHP code that will allow me to do something like take
a string name, an expiration date, and a 16-byte key and generate an 8-byte
license code in the form of
---
I have some Windows code that I've used for years, and I successfully ported
it to PHP, only to
_-=MealstroM=-_ wrote:
Hello Chris,
Tuesday, March 7, 2006, 1:36:54 AM, you wrote:
_-=MealstroM=-_ wrote:
Hello php-general,
Hi. I ve got some trabl with this commands
ftp_pwd() and ftp_chdir()
They work correctly with some ftp servers,
but i ve got some problems with warftp server.
This
I copied and pasted the example found here:
http://www.php.net/openssl_csr_new
And this one too:
http://www.php.net/manual/en/function.openssl-pkey-new.php
And I get the output that looks like valid 'gibberish' for all three (CSR,
Cert, PK), except what concerns me is that I get fifteen of the
Want to load balance a server and send image uploads to a different box with
PHP installed. What would the correct method to authenticate on the second
machine and send without ruining user experience by sending them to a second
page?
Initial thought was to keep the box address inside of the
Robert Sandie wrote:
Want to load balance a server and send image uploads to a different box with
PHP installed. What would the correct method to authenticate on the second
machine and send without ruining user experience by sending them to a second
page?
For what purpose are you sending the
Is there a pear package or class for PHP?
--
Louie Miranda ([EMAIL PROTECTED])
http://www.axishift.com
//JSM-W
For what purpose are you sending the uploads to a different box?
There will also be Video uploads as well so I had to nix the database idea.
Am running a media server as well of this box so there is considerable
processing already going on. Now I may be looking at this from the wrong
perspective
First of all, the back-slashes added before a character is probably
because of the gpc_magic_quotes directive in PHP, wich tries to escape
the quotes (pretty stupid, if you ask me), so you must have to use
strip_slashes() on the string you received, e.g:
$text = '';
if (
79 matches
Mail list logo