php-general Digest 15 Apr 2005 05:53:48 - Issue 3398
Topics (messages 213099 through 213126):
Re: Directory perms
213099 by: Jason Wong
Getting a contract
213100 by: Ryan A
213102 by: chris
213108 by: Miles Thompson
213110 by: Brent Baisley
Reverse
This seems to be something exactly as i was looking for.. Can you pls
send me some tutorials/examples/links on how to implement it?
Regards,
Dasmeet
http://hostwindow.info
Eugene Voznesensky wrote:
Yoy can try this one:
http://pear.php.net/package/LiveUser
Hi!
I am developing an applicaton in
Matthew Weier O'Phinney wrote:
* Amir Mohammad Saied [EMAIL PROTECTED]:
I want to use mod_rewrite patterns, but i have not access to the
httpd.conf so i think i should use .htaccess, but the patterns don't
work properly there, have my admin should set any settings in the
httpd.conf?
I use
From: Rasmus Lerdorf
Chances are pretty good that you won't have to change
anything. Step 1
would be to simply try running your existing code under PHP5 and see
what breaks. Unless you have complicated OO code or you are
using the
domxml extension, you likely won't need to change
I have a page where i place an image but i want when i show the image
delete it. How can i do this?
--
Mario de Frutos Dieguez
División de Ingeniería del Software
y Comunicaciones
CARTIF -Parque Tecnológico Boecillo
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
...and trying to re-assign $this inside a class.
which is perverse and shouldn't have been allowed in the first place =)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Richard Lynch wrote:
There aren't a whole lot of shared servers that are running a different
pool of httpd for each user, nor using only CGI with different user ids,
nor...
I daresay that unless you are setting up a shared server yourself, rather
than renting space on one, you'll be hard-pressed
Ryan A wrote:
Can anyone recommend a host for dedicated hosting? Hopefully one that you
have used. Please reply offlist so as not to disturb anyone else.
This doesn't seem entirely off-topic to me.
I use and can happily recommend these guys:
http://aspextra.net/
This is for fully-managed hosting
On Thursday 14 April 2005 10:06, Mario de Frutos Dieguez wrote:
I have a page where i place an image but i want when i show the image
delete it. How can i do this?
You want to delete it from the clients machine or what?
--
Mario de Frutos Dieguez
División de Ingeniería del Software
y
Petar Nedyalkov escribió:
On Thursday 14 April 2005 10:06, Mario de Frutos Dieguez wrote:
I have a page where i place an image but i want when i show the image
delete it. How can i do this?
You want to delete it from the clients machine or what?
--
Mario de Frutos Dieguez
División de
Dan:
My apologies for any negitive psychological effects my reply to the
password sharing thread, may have had on you. It was not a case of
mistaken identity, but rather a case of replying to the last poster,
instead of to the list. gmail has this quick reply box on the bottom,
and I clicked on
Hi!
I am trying to unserialize a serialized array stored in cookie...
I am using following code :
echo(Welcome to Members Areabr);
echo(br$loginbr);
$m_l_d=unserialize($login);
echo $m_l_d;
echo($m_l_d[0], $m_l_d[1], $m_l_d[2]);
However the output is:
Welcome to Members Area
On Wed, 13 Apr 2005, Richard Lynch wrote:
On Wed, April 13, 2005 2:01 pm, Robert Janeczek said:
I can't claim a detailed understanding of what you are doing, and,
frankly, it sounds like you are creating a BUNCH of over-engineered
headache-inducing code without a good, proven need for it. YMVV.
Mario de Frutos Dieguez wrote:
Petar Nedyalkov escribió:
On Thursday 14 April 2005 10:06, Mario de Frutos Dieguez wrote:
I have a page where i place an image but i want when i show the image
delete it. How can i do this?
You want to delete it from the clients machine or what?
--
Mario de
I have installed tomcat and added php-support with help of the php-servlet
but it seem like php cant find any of the extensions installed. Like
mysql. I have the php4-mysql package installed.
If i run php -i from the commandline its telling me that I have
mysql-support and a small php-script
Dasmeet Singh wrote:
Hi!
I am trying to unserialize a serialized array stored in cookie...
I am using following code :
echo(Welcome to Members Areabr);
echo(br$loginbr);
$m_l_d=unserialize($login);
echo $m_l_d;
echo($m_l_d[0], $m_l_d[1], $m_l_d[2]);
However the output is:
Welcome to Members Area
Dasmeet Singh wrote:
Hi!
I am trying to unserialize a serialized array stored in cookie...
I am using following code :
echo(Welcome to Members Areabr);
echo(br$loginbr);
$m_l_d=unserialize($login);
echo $m_l_d;
echo($m_l_d[0], $m_l_d[1], $m_l_d[2]);
However the output is:
Welcome to Members Area
Hi Mario
you can use something like
img src=blabla.jpg ONLOAD=delete_pic.php?fn=blabla.jpg
And in delete_pic.php write something like:
unlink ($_GET['fn']);
-Original Message-
From: Mario de Frutos Dieguez [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 14, 2005 10:53 AM
To: [EMAIL
Marek Kilimajer wrote:
Dasmeet Singh wrote:
Hi!
I am trying to unserialize a serialized array stored in cookie...
I am using following code :
echo(Welcome to Members Areabr);
echo(br$loginbr);
$m_l_d=unserialize($login);
echo $m_l_d;
echo($m_l_d[0], $m_l_d[1], $m_l_d[2]);
However the output is:
Correction :
u need to use a hidden frame or iframe using style=display:none let call the
hidden frame myhframe now in you code write
img src=blabla.jpg onload = myhframe.location =
'delete_pic.php?fn=blabla.jpg'
-Original Message-
From:
Sent: Thursday, April 14, 2005 1:20 PM
To:
On Wed, Apr 13, 2005 at 06:54:25PM -0700, dan wrote:
Hello, all -
I had some questions regarding the creation of intelligent forms -
forms that take data, and then parse it for errors, real data, etc etc.
The first idea I had was to make a function to display the form. When
the form is
I've been messing about with this for a while to no avail.. so help
would be appreciates
I'm new to regular expressions and tried this with preg_replace, now I'm
using eregi_replace !
here's the text
$txt = 'span style=font-size: 10pt; font-family: Times New
Roman;Itbr /
blahh blahhh blahhh
pete M wrote:
I've been messing about with this for a while to no avail.. so help
would be appreciates
I'm new to regular expressions and tried this with preg_replace, now I'm
using eregi_replace !
here's the text
$txt = 'span style=font-size: 10pt; font-family: Times New
Roman;Itbr /
blahh
I have created (adapted) the follow function:
function imageresize($new_width, $new_height, $filename) {
// Content type
header('Content-type: image/jpeg');
// Get new dimensions
list($width, $height) = getimagesize($filename);
// Resample
$image_p = imagecreatetruecolor($new_width, $new_height);
The pattern
$pattern = 'font\-size:.*?\;';
throwns the error
eregi_replace(): REG_BADRPT
Erwin Kerk wrote:
pete M wrote:
I've been messing about with this for a while to no avail.. so help
would be appreciates
I'm new to regular expressions and tried this with preg_replace, now
I'm using
pete M wrote:
The pattern
$pattern = 'font\-size:.*?\;';
throwns the error
eregi_replace(): REG_BADRPT
Well, this should work (tested and all )
$pattern=|font\-size:.*?;|si;
$txt = preg_replace( $pattern, , $txt );
Erwin
--
Thankyou
Diolch
danka
There seems to be a big difference between eregi_replace() and preg_replace
Am reding teh Sams - Regular Expressions in 10 mins bu the syntax seems
ot be different. !!
regards
pete
Erwin Kerk wrote:
pete M wrote:
The pattern
$pattern = 'font\-size:.*?\;';
throwns the error
Hi All,
I've installed phpmyadmin and have a snort database in mysql, but, it
doesn't appear in phpmyadmin. I know it's there, because base is using
it to display info from snort on the machine. Why wouldn't it appear in
phpmyadmin. It appears with the same set up on my work test machine.
What
I wanted to create a regex that force a PHP form text field to meet the
following requirements:
a. Must contain an 1 uppercase letter. [A-Z]
b. Must contain 1 digit. [0-9]
c. Must be a minimum of 7 characters in length. {7}
I'm not sure of how to build the correct syntax for using all 3
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 14, 2005 3:04 PM
I get my image resized. (functions.php is where all my fuctions are
stored) However if I place anything after the imageresize it doesnt
show that. Eg echohello'; does nothing. If anything goes before it
Hi all,
I was wondering if anyone has any experience with building large
scale multi-language websites with PHP/MySQL? The plan is to have
the core site created in English and then translators can login to
create the various language versions (we'll have 6 languages to
start with
Mark Sargent wrote:
Hi All,
I've installed phpmyadmin and have a snort database in mysql, but, it
doesn't appear in phpmyadmin. I know it's there, because base is using
it to display info from snort on the machine. Why wouldn't it appear
in phpmyadmin. It appears with the same set up on my work
-Original Message-
From: Richard Davey [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 14, 2005 3:46 PM
To: php-general@lists.php.net
Subject: [PHP] Any experience with multi-language PHP sites?
Hi all,
I was wondering if anyone has any experience with building large
On Thu, 14 Apr 2005, Bosky, Dave wrote:
I wanted to create a regex that force a PHP form text field to meet the
following requirements:
a. Must contain an 1 uppercase letter. [A-Z]
b. Must contain 1 digit. [0-9]
c. Must be a minimum of 7 characters in length. {7}
if ( ereg([A-Z0-9], $field)
I have a page where i place an image but i want when i show
the image delete it. How can i do this?
What I would probably do is create a cleanup function/class in the script
that gets a list of all the images in the directory in question and deletes
anything that more then, say, an hour
--- Mario de Frutos Dieguez [EMAIL PROTECTED] wrote:
I have a page where i place an image but i want when
i show the image delete it. How can i do this?
Some good suggestions so far but to be a little more
explicit this is how you would do it. Essentially you
want to have your image tag point
Hi,
First of all, - Thank you!
Many of you have replied with links and hosts that you recommend and some
that you actually own or resell,
most valuable was your experience with them and advise you gave me.
I've narrowed it down to just 4 hosts, I have one additional question if you
dont mind;
On Apr 14, 2005, at 14:46, Kim Madsen wrote:
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 14, 2005 3:04 PM
I get my image resized. (functions.php is where all my fuctions are
stored) However if I place anything after the imageresize it doesnt
show that. Eg echohello';
Hello Kim,
Thursday, April 14, 2005, 2:59:05 PM, you wrote:
KM Look in the archives, it´s less than 2 weeks since this was
KM discussed (again :-)
If you're referring to the subject Multilingual Web application - how
to? (the only multi-language thread in this mailing list since the
start of
Philip Hallstrom wrote:
On Thu, 14 Apr 2005, Bosky, Dave wrote:
I wanted to create a regex that force a PHP form text field to meet the
following requirements:
a. Must contain an 1 uppercase letter. [A-Z]
b. Must contain 1 digit. [0-9]
c. Must be a minimum of 7 characters in length. {7}
if (
Hello Jochem,
Thursday, April 14, 2005, 3:37:07 PM, you wrote:
JM step 1: get a thorough understanding of unicode UTF(8)
JM step 2: get familiar with the mb_*() functions and the iconv extension
JM step 3: step up your scripts and DB to output/store UTF
JM step 4: rinse/repeat.
Thanks, I have
Hi,
Thursday, April 14, 2005, 11:47:13 PM, you wrote:
BD I wanted to create a regex that force a PHP form text field to meet the
BD following requirements:
BD a. Must contain an 1 uppercase letter. [A-Z]
BD b. Must contain 1 digit. [0-9]
BD c. Must be a minimum of 7 characters in length. {7}
James Kaufman wrote:
On Wed, Apr 13, 2005 at 06:54:25PM -0700, dan wrote:
Hello, all -
I had some questions regarding the creation of intelligent forms -
forms that take data, and then parse it for errors, real data, etc etc.
The first idea I had was to make a function to display the form. When
How I can obtain directory perms and how I know if they are RW on Win32
plattforms? I find into PHP Manual but I only obtain function fileperms wich
have only for files and not for directories
Regards
Reynier Pérez Mira
3ero. Ing. Informática
Entre más inteligente me siento, más me doy
Richard Davey wrote:
Hello Kim,
Thursday, April 14, 2005, 2:59:05 PM, you wrote:
KM Look in the archives, it´s less than 2 weeks since this was
KM discussed (again :-)
If you're referring to the subject Multilingual Web application - how
to? (the only multi-language thread in this mailing list
I'm having a bit of a problem understanding how the header() sends the HTTP
headers.
Here's what I want to do:
1) Send a PDF file which will be printed in the client (the client will read
it and print it if he wants to.
2) Redirect to the main page of the aplication.
Now, what happens to me
* Martín Marqués martin@bugs.unl.edu.ar:
I'm having a bit of a problem understanding how the header() sends the HTTP
headers.
Here's what I want to do:
1) Send a PDF file which will be printed in the client (the client will read
it and print it if he wants to.
2) Redirect to the main
I wanted to create a regex that force a PHP form text field to meet the
following requirements:
a. Must contain an 1 uppercase letter. [A-Z]
b. Must contain 1 digit. [0-9]
c. Must be a minimum of 7 characters in length. {7}
if ( ereg([A-Z0-9], $field) strlen($field) = 7 ) {
print(We have a
On Thursday 14 April 2005 22:25, Reynier Perez Mira wrote:
How I can obtain directory perms and how I know if they are RW on Win32
plattforms? I find into PHP Manual but I only obtain function fileperms
wich have only for files and not for directories
fileperms() works on files AND directories
Hey,
There was some discussion before this on how much to charge to make a site /
set of scripts,
which also turned into advise from the more experienced members of this
list...good advise I
might add.
Note:
This thread is not directly a php thread but related in a big way to what
most of us do,
I'm trying to reverse plural forms to singular ones
and use the result for search [in database].
Is there any third party product to integrate with
PHP, or some reliable algorithm?
Thank you,
Eu.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Ryan,
Write the contract to state the targets as they exist now, the estimated
hours and how you will be paid(i.e. - by the hour, milestone, etc...)
then when a change is made to the design, simply make an addendum to the
original contract and list the changes that are to be done, estimated
But you can design the script to redirect to a page with a JavaScript to
open a file(PDF) by using the target=_new and then it redirects to the
home page.
CJ
Matthew Weier O'Phinney [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
* Martín Marqués martin@bugs.unl.edu.ar:
I'm having
Hello,
I have a variable that contains a filename, I want to be able to insert the
date and time just before for the .jpg
for example if my filename is 'pic.jpg' I want it to read 'pic_Monday 15th of
January 2003 05:51:38 AM.jpg (or if anyone else knowshow to write the time and
time all in
On 15 Apr 2005 Tom Rogers wrote:
BD a. Must contain an 1 uppercase letter. [A-Z]
BD b. Must contain 1 digit. [0-9]
BD c. Must be a minimum of 7 characters in length. {7}
BD I'm not sure of how to build the correct syntax for using all 3
BD requirements together.
easier done seperately I
From: PartyPosters [mailto:[EMAIL PROTECTED]
Hello,
I have a variable that contains a filename, I want to be able
to insert the date and time just before for the .jpg
for example if my filename is 'pic.jpg' I want it to read
'pic_Monday 15th of January 2003 05:51:38 AM.jpg (or if
anyone
From: Mike Johnson [mailto:[EMAIL PROTECTED]
From: PartyPosters [mailto:[EMAIL PROTECTED]
Hello,
I have a variable that contains a filename, I want to be able
to insert the date and time just before for the .jpg
for example if my filename is 'pic.jpg' I want it to read
Keep this in mind - I'll repeat it: WE ARE DOING INTELLECTUAL WORK, not
painting walls. The simplest request can have unknown ramifications.
I was lucky - in hindsight - got burned that way after I'd been in
business about 6 weeks.
Wrote up one of those beautiful proposals which outline
Hi:
I'm try to change de value for the PHP config var upload_tmp_dir with objetive
to make an file upload an access more easy to superglobal array
$_FILES['fichero']['tmp_name']. Into my php file just in the start I have this:
ini_set(upload_tmp_dir,C:\\PHP5\\tmp\\);
The directory exists
For larger projects, I always charged a contingency fee, maybe
$100-$500, depending on the scope. This money basically pays you to
write up a project document. After all, you are spending your valuable
time on something for them. If they accept your proposal to write the
application, the money
Reynier Perez Mira wrote:
Hi:
I'm try to change de value for the PHP config var upload_tmp_dir with objetive
to make an file upload an access more easy to superglobal array
$_FILES['fichero']['tmp_name']. Into my php file just in the start I have this:
ini_set(upload_tmp_dir,C:\\PHP5\\tmp\\);
On Friday 15 April 2005 02:11, Reynier Perez Mira wrote:
I'm try to change de value for the PHP config var upload_tmp_dir with
objetive to make an file upload an access more easy to superglobal
array $_FILES['fichero']['tmp_name']. Into my php file just in the
start I have this:
I have a case where video files (mov, flv, etc) have
been stored in a MySQL database as blobs.
I'm loading them into a flash video player and
everything works fine except it takes longer it seems
and it doesn't allow streaming the actual video.
If I load the same videos with a direct link to the
[EMAIL PROTECTED] wrote:
I have created (adapted) the follow function:
function imageresize($new_width, $new_height, $filename) {
// Content type
header('Content-type: image/jpeg');
// Get new dimensions
list($width, $height) = getimagesize($filename);
// Resample
$image_p =
On 13 Apr 2005 Richard Lynch wrote:
I have what I consider a MINIMUM standard level of security for any site
that asks for a password.
That would include:
Not storing the password *ANYWHERE* in clear-text.
Not in database.
Not in $_SESSION
Not in COOKIES
Agreed. I see less risk
On 14 Apr 2005 Chris Shiflett wrote:
When a user enters a credit card number, there may likely be a
verification step before the actual purchase is made. It's better to
keep this number on the server (in the session data store) than to
unnecessarily expose it over the Internet again (SSL
Hey all,
trying to dynamically size cell widths; what I need is a formula to measure
pixels per character for an arbitrary font (in this case 10pt verdana). A
simple function f(x) = strlen(x) * SOMECONSTANT just doesn't seem to cut it,
as returned widths are to small are long. Any ideas?
Does anyone have suggestions/ideas about best practices for writing
set/get methods in PHP5? There are two basic ways I've seen this done,
which I've provided examples of below. Method #2 is obviously the easier
way, but that doesn't mean it may be the best way.
I'm curious to read people's
Christian Calloway mailto:[EMAIL PROTECTED]
on Thursday, April 14, 2005 1:59 PM said:
trying to dynamically size cell widths; what I need is a formula to
measure pixels per character for an arbitrary font (in this case 10pt
verdana). A simple function f(x) = strlen(x) * SOMECONSTANT just
On 4/14/05, Christian Calloway [EMAIL PROTECTED] wrote:
trying to dynamically size cell widths; what I need is a formula to measure
pixels per character for an arbitrary font (in this case 10pt verdana). A
simple function f(x) = strlen(x) * SOMECONSTANT just doesn't seem to cut it,
as returned
On 4/14/05, Tim Boring [EMAIL PROTECTED] wrote:
Does anyone have suggestions/ideas about best practices for writing
set/get methods in PHP5? There are two basic ways I've seen this done,
which I've provided examples of below. Method #2 is obviously the easier
way, but that doesn't mean it may
Tim Boring wrote:
Does anyone have suggestions/ideas about best practices for writing
set/get methods in PHP5? There are two basic ways I've seen this done,
which I've provided examples of below. Method #2 is obviously the easier
way, but that doesn't mean it may be the best way.
I'm curious to
On Apr 14, 2005, at 21:37, Marek Kilimajer wrote:
[EMAIL PROTECTED] wrote:
I have created (adapted) the follow function:
function imageresize($new_width, $new_height, $filename) {
// Content type
header('Content-type: image/jpeg');
// Get new dimensions
list($width, $height) =
Hi there!
I have built my site into frames.
I want to transfer a session-variable from my left frame to my right
frame... How do I do this best? Thoughts?
/G
@varupiraten.se
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Gustav Wiberg mailto:[EMAIL PROTECTED]
on Thursday, April 14, 2005 4:00 PM said:
I have built my site into frames.
I want to transfer a session-variable from my left frame to my right
frame... How do I do this best? Thoughts?
You do this best by setting some session data on one page
We have to kinds of fonts,
One the fonts that size of all thier characters are equal such as
Courier, but in the other fonts etc. (Verdana) all of characters haven't
an equal width
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
76 matches
Mail list logo