Victor wrote:
> Why not unregistered the session variables first, destroy the session
> second and redirect the user with a header location to a plain html
> page that includes a one line JavaScript in the body tag like
> onload+thiswindow cloase or something like that, and a message that
> "pleas
Raphael Hamzagic wrote:
> Thanks,
>
> But, if the client don't accept cookies?
> And if the user open a new browser window with the same url, the new
> window will use the same opened session.
If the user opens a new window, without closing the old one first, then it
will use the same session.
hi Markus
thanks for your reply. what is the compatible version of mcrypt lib and php in
win32? also for linux?
terence
Markus Fischer wrote:
> You're mixing an older library with a newer php version (or
> the other way around). Please clean up your system first.
>
> Please ask on
You're mixing an older library with a newer php version (or
the other way around). Please clean up your system first.
Please ask on [EMAIL PROTECTED] next time.
(Reply-To set).
- Markus
On Fri, Sep 06, 2002 at 09:56:59AM +0800, Terence Lee wrote :
> Hello
>
> i've uncommen
You can either use global keyword or put the variable into $GLOBALS[]
array..
See: http://www.php.net/manual/en/language.variables.scope.php
Gurhan
On Thu, 2002-09-05 at 23:52, Justin French wrote:
> Hi,
>
> I'd like to be able to define multiple variables within a function, and have
> it avai
Justin French wrote:
> function foo()
> {
> $foo = "aaa";
> $bar = "bbb";
> }
>
> foo();
>
> echo $foo;
> echo $bar;
>
> ?>
>
> How to I specify that $foo and $bar (defined in the func) are to be set
> globally (ie, outside the function)?
Why not use an include instead of a f
Hi,
I'd like to be able to define multiple variables within a function, and have
it available outside the function from the point the function is called...
eg:
How to I specify that $foo and $bar (defined in the func) are to be set
globally (ie, outside the function)?
I'm aware I could return
i've soughted out a solution with flash :)
http://electroteque.dyndns.org:1023/demo/uploader/
except it adds the html output above the html do most browsers support this
?
"Richard Lynch" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
> >hi there i have created a script to regen
Ok, I'm having the same problem, see I use a form to upload but I guess
that it puts the file in temporary file, so with copy or something it
figures automatically where to take th file from how do I get the $
source and ft_put to figure out where to take this file from, or can I
get it to take it
>I am new to Linux and is trying to install PHP/MySQL/SSL.
>
>I used the instruction found on this link:
>http://www.brtnet.org/linux/lampssl.htm
>
>Everything seemed to install OK; on the last step, open httpd.conf and
>uncomment the lines:
>
>AddType application/x-httdp-php .php
>AddType applica
>hi,
>
>In a form i have several text area.when i submit the form, I need to
>send a email at a particular id which contains the text entered in the text
>area.
>Can someone gimme a script which gives me and idea about how to do that...or
>some link where i can find that.
http://php.net/m
>I have tried things like this:
>php_value WSERVER red2.office.com
I think this is only going to "work" for stuff that's pre-defined in
php.ini...
But I could be very very wrong...
>and this:
>SetEnv WSERVER red2.office.com
I think this is supposed to work.
Are you sure you are doing i
>I think that it has started recently, when SF upgraded all their system.
>There is an error code that says that it cannot load module 'mm' at line
>0, or something like that.
'mm' is a memory-mapping library that needs to be compiled into a module for
the OS and/or PHP to use...
I'm not smart
>I am having problems getting the ftp_put command to upload a file to an
>apache server
>i get this error
>Warning: error opening C:\\WINDOWS\\Desktop\\Jason\\jjmckay\\testaudio.mp3
>in /home/virtual/site31/fst/var/www/html/clientadmin/mp3upload.php on line
>32
>
>here is the code
>
>$dest = "/var
>Hi, im wondering how in popular forum software, those 'BB codes' are done in
>PHP, like, [B] and stuff. I just cant figure it out.
http://php.net/str_replace
http://php.net/ereg_replace
--
Like Music? http://l-i-e.com/artists.htm
--
PHP General Mailing List (http://www.php.net/)
To unsubsc
>I'm using this script to insert picture into database:
> $data = addslashes( fread( fopen( $arrayUploadedSomething['tmp_name'],
>"r"), filesize($arrayUploadedSomething['tmp_name'] ) ) );
>
>And then i use ordinary mysql_query to insert it into database (BLOB field).
>When i print image on screen
>Post data makes Netscape REFUSE to show the underlying source code! It's
>virtually impossible to design form handling stuff when I can't see the
>code that's generated when i send post data. Is this a bug and how do you fix it??
That's just Netscape being stupid.
You can't fix it.
PHP isn
>Are there any rules as to how information from outside a class can be
>moved into it.
>What Ive been doing so far is
>1. Through the constructor
>2. defining a constant
>3. Create a method whose sole purpose is to move data from the outside
>into the class.
> i.e.
>class foo ()
>{
>.
>really simple one -
>
>does someone have a bit of code that will variously display 'good morning',
>'good afternoon', 'good evening' based on the current time?
>
>good morning from london,
My time or your time?
If you want it to be "server" time, use this:
\n";
?>
If you want it based on *TH
>hi there i have created a script to regenerate thumbnails for a photo
>gallery , i have changed my code to use gd true color although it takes
>forever now , i have it generating 20 at a time then doing the rest but
>still takes forever , i know its impossible to generate a true progress bar
>for
>I would like to know how many PHP page apache generates in one thread at the
>same time.
>
>For example, two clients share the same thread of the apache web server.
>they request at the same time a php page. Does apache process them one by
>one?
As I understand it:
Each child processes one (1)
>hi there i was wondering if there was a way to limit the ammount of items in
>a loop to execute sleep then execute the rest of the items to prevent server
>load ?
http://php.net/sleep
Note that "sleep" time doesn't count, but that if your program uses up *TOO*
much time, it will be killed by PH
>$ID_arr[] = explode(',', $pictures); # make db data into array
>
>This is the string:
>
>15,16,17,18,19
>
>why does it echo as Array?
Because you have a "two-dimensional" array:
ID_arr = array(
array(15, 16, 17, 18, 19)
);
The reason you have a 2-D array is that you have [
>setcookie("cookiename1","$domin","timeset()+1800");
You're being "quote" "happy" and using "way" too "many" "quotes" "" "" :-)
$domin is a variable. You don't need to use "$domin"
It won't "hurt" anything, since you're just forcing PHP to build *another*
string with the same exact content in
>Printing works fine, however 2 problems:
>
>1. linefeed ("\n") doesn't work
>
>2. escape sequences to print BOLD, ITALIC, UNDERLINE,
>NARROW don't work
Probably the same problem, really.
>$lp = popen("lpr -Plp1", "w");
I'm guessing that popen uses the shell or something, and it's "eating"
>if ($REQUEST_METHOD=='POST') {
> $name = escapeshellcmd($name);
> $group = escapeshellcmd($group);
> $to = "[EMAIL PROTECTED]";
> $from = "FROM: $name, $group";
> $subject = "The subject of this mail\n\n";
> $body = "Name: $name\t";
> $body .= "Group: $group\n";
> $body .= "\n\n$comments\
>Hi,
>
>
>I am new to PHP. I am running the module version 4.2.2 from Marc
>Lyanage (entropy.ch) on OS X 10.1 and noticed that my
>/usr/local/lib/php.ini is empty!?
>
>Is there a way
Just copy the php.ini-dist from the PHP source tarball or wherever you can
find it into there.
--
Like Music?
>" Fatal error: Call to undefined function: snmpwalk() ..." ... and this
>for all snmp functions.
This means that the --with-snmp part of ./configure didn't really work.
Go back and do the ./configure again, only like this:
./configure --with-snmp ... 2>&1 > configure.output &
You can use:
>I'm getting multiple backslashes in data I get out of a mysql database.
That's crazy...
You'd have to be adding an awful lot of backslashes *before* you put it in
there.
MySQL "eats" up one (1) set of \s when it "reads" data.
>1. $string = stripslashes($string); - Doesn't do anything
Sure
>
>$str = 'hi my friend! this message uses html entities href="http://www.trini0.org";>test!';
>$str = preg_replace('/(.*<\/a>)/',
>htmlspecialchars("$1"), $str);
Maybe I'm missing something here, but can't you just do:
$str = htmlspecialchars($str);
--
Like Music? http://l-i-e.com/artists.
>PHP will not allow me to do this because safe_mode is on. I've been trying for
>the past two weeks to turn it off. Nothing I do changes it. I've changed,
You'll have to re-compile without safe mode in the ./configure
--
Like Music? http://l-i-e.com/artists.htm
--
PHP General Mailing Lis
hello
i've tried to read a line from a text file by fgets($fp,8192). it work
fine. however, there is a line over 8192 char and i tried to increase
the 2nd parameter (e.g. 8193, 16384, 88192) still only 8192 char are
read to my string variables.
is it a limit of fgets or length of a string? any
using exec() or system() will only be able to execute commands on the
machine php is installed on. I sometimes wonder how universities and
broadband isp's do this. I'd be interested in seeing how it works.
Sorry, I'm not much help anymore.
tyler
On Fri, 6 Sep 2002 01:24:07 +0200
<[EMAIL PROTE
Why not unregistered the session variables first, destroy the session
second and redirect the user with a header location to a plain html page
that includes a one line JavaScript in the body tag like
onload+thiswindow cloase or something like that, and a message that
"please closes this window for
Hi,
I'm trying to use Pear stuff but don't know if I should post to that list as just a
user.
I'm lost when it comes to "Auto Building". It has an example of that and I tried
to do it on a local linux box where I'm root but it failed
> all to undefined function: getstaticproperty
and I fou
I´m quite a newbie in making php, but I managed to run the test you
suggested,
but nothin happened. This time it was propably the code I did:
first I added the "or die("Invalid query: $sql");" part and ran the form,
but everything happened just like when refreshing a page.
Then I did this:
$re
The best way IMHO, to debug problems like this is to echo out your
insert query to the screen and not actually run the query, or run it and
make sure you use:
$sql = "INSERT INTO employees (first,last,address,position) VALUES
('$first','$last','$address','$position')";
$result = mysql_query($sql
Hi,
I´m having a weird problem with getting my forms work within
php. I have a running MySQL server, php installed on a apache server
and I can make SQL queries through php, but I´m unable to insert
any data into it through forms.
This is an example file that I´m using
(it´s from
http://hotwired.
Hi,
The best way I think is to use exec() or system() to ask that to the system.
May be someone knows something better too.
--
Nicos - CHAILLAN Nicolas
[EMAIL PROTECTED]
www.WorldAKT.com - Hébergement de sites Internet
"Chris Cook" <[EMAIL PROTECTED]> a écrit dans le message de news:
[EMAIL PR
Hello all,
I am working on a LAN application and am interested in obtaining the user's
network card address to limit usage of the program. Is there a way to do
this in PHP?
I am on a network that uses DHCP so using the IP address probably wont work
and I am also worried about IP spoofing.
Th
Agreed,
This is quite a good engine.
I don't have very big log files as I just rolled them over a couple of weeks
ago, but you gan view sample live stats here:
http://www.nudenurd.com/stats/
Cheers,
Liam
- Original Message -
From: "olinux" <[EMAIL PROTECTED]>
To: "tomba" <[EMAIL PROTECT
A little addition/clarification,
I mean in the main page, have the javascript open up a new window with
logout.php file when the user closes the browser.
Gurhan
On Thu, 2002-09-05 at 18:04, Gurhan Ozen wrote:
> Ohhh, I see what you are looking for..
> You have to play around with some javascrip
Ohhh, I see what you are looking for..
You have to play around with some javascript to do it.
Have a logout.php file, and destroy session in that file ...
And in the main page, have the javascript to open up a new window with
logout.php page.
Makes sense?
I hope this helps.
Gurhan
On Thu, 2002-0
Of course Gurhan,
I have read all the php manual.
How can I send a message when the user closes the browser to destroy the
session?
Thanks in advance
Raphael
"Gurhan Ozen" <[EMAIL PROTECTED]> wrote in message
1031261344.5091.266.camel@LOCALHOST">news:1031261344.5091.266.camel@LOCALHOST...
> Y
Thanks,
But, if the client don't accept cookies?
And if the user open a new browser window with the same url, the new window
will use the same opened session.
I'm having trouble with this
Thanks,
Raphael
"Rasmus Lerdorf" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PRO
You can end the session by using function session_destroy().
See:
http://www.php.net/manual/en/function.session-destroy.php
For general information on how PHP handles sessions see:
http://www.php.net/manual/en/ref.session.php
Hope this helps.
Gurhan
On Thu, 2002-09-05 at 17:17, Raphael Hamzag
Because there is absolutely no way for PHP to know that the user has
closed the browser window. Nothing is sent from the browser to the server
on a window close. By using session cookies (cookies without a specified
expiry time) the session is effectively ended since the cookie is gone
once the
Hi,
I'm just wanna know why the session doesn't end when the user closes the
browser window and how can i make it.
Thanks
Raphael
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi Jason,
have a look at Richard Lynchs reply posted at Sat, 31. Aug.
2002 03:08:39 Europe/Berlin with subject "[PHP] Re: performing
searches with random entries"
Timo
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi Mitja,
If I understand this right, the SWF file has to be a SWF file.
To make it work like you want, you need a script that
- writes the SWF from the db to a SWF file on the server,
- returns HTML with object/embed tags and the path to the SWF file.
Timo
--
PHP General Mailing List (htt
On Thu, 5 Sep 2002, Devin Atencio wrote:
> I am trying to find out a way I can pass a variable that is basically
> an XML document to xslt_process and make it all work. My script
$xmldata = "";
$xsltArgs = array( '/_xml' => $xmlStr );
$xp = xslt_create();
$result = xslt_process( $xp, 'arg:/_xml'
Hi:
I am attempting to calculate a mortgage payment using the following code.
which produces: 630.40515566726
What I am looking for is 632.65 (rounded to 2 places).
(I am not looking for a rounding mechanism, just a more accurate result)
The manual states that the pow function attempts to ret
You should put the content into a file.
--
Nicos - CHAILLAN Nicolas
[EMAIL PROTECTED]
www.WorldAKT.com - Hébergement de sites Internet
"Devin Atencio" <[EMAIL PROTECTED]> a écrit dans le message de news:
067301c25516$ff18c4d0$[EMAIL PROTECTED]
>
> I am trying to find out a way I can pass a vari
Hi,
I have Marc Robards article on XML Parsing with PHP
(wirelessdevnet.com).. which talks about parsing an XML FILE. My XML is
from a remote server (used curl to get it back to PHP as a variable).
How do I change the following while to read from variable instead of
file without getting thes
I am trying to find out a way I can pass a variable that is basically
an XML document to xslt_process and make it all work. My script
works if I have:
$xp = xslt_create();
$result = xslt_process($xp, 'test.xml', 'test.xsl');
however, if I try to do:
$xp = xslt_create();
$result = xslt_
You have to use recursive functions for this. You can write one..
function linkchecker($id)
{
$query="SELECT COUNT(*) AS mycount FROM tablename WHERE id=".$id."";
$result=mysql_query($query);
$row=mysql_fetch_array($result);
$nextid = $id + 1;
if (($row["mycount"]) > 0 )
Take a look at
http://www.php.net/manual/sv/printwn/features.file-upload.php, your pages
should be named .php and not .php3 if you support PHP4.
--
Nicos - CHAILLAN Nicolas
[EMAIL PROTECTED]
www.WorldAKT.com - Hébergement de sites Internet
"Ram K" <[EMAIL PROTECTED]> a écrit dans le message de
Hey
I have a prob with my php file upload. i am using windows
my html file looks like
Upload the datafile here
my php file looks like
";
echo $file."";
@copy($file, $newfile) or $endresult = "Couldn't Copy File To
Server";
echo $endresult;
?>
when i run i get an
I haven't had any problems with mysql like you are having. I would
recommand you recompile the source rpm to the binary rpms and then install
them.
Adam
On Thu, 5 Sep 2002, Boaz Yahav wrote:
> I'm using 3.23.52-log
>
> -Original Message-
> From: Adam Williams [m
I'm using 3.23.52-log
-Original Message-
From: Adam Williams [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 05, 2002 3:22 PM
To: Boaz Yahav
Cc: PHP General (E-mail)
Subject: Re: [PHP] PHP & MySQL & Apache on Linux vs. Solaris
Go to www.mysql.com and make sure you are using the la
Ereg() would be an excellent choice.
To move a step further, although it is a little more complex to become
familiar with, the perl regular expressions are considerably faster and
more efficient for anything with an expression, and str_replace() is
faster yet, if replacing a simple string.
Thus
Thanks. As you can prolbably tell, I am quite the beginner. Thanks for the
help!!!
--
Dion Munk
[EMAIL PROTECTED]
"Jay Blanchard" <[EMAIL PROTECTED]> wrote in message
003701c254f2$f3e5aed0$8102a8c0@000347D72515">news:003701c254f2$f3e5aed0$8102a8c0@000347D72515...
> [snip]
> I'm running Apache 1
On Thu, 5 Sep 2002, Javier Montserat wrote:
> i want to format the filename of an uploaded file as follows :-
> -- replace blankspace with "_"
> -- remove any illegal characters.
> Which string functions should I use to do this?
http://www.php.net/manual/en/function.ereg.php
http://www.php.net/m
Hello,
I just started to use some PEAR classes, by now, I'm dealing with PEAR::DB
that has a lot of examples and documentation but I can't find anything
similar for PEAR::HTML_QuickForm.
Where can I find documentation about this class ? I'm trying to learn it
just by trial and error but a list o
If the variable is within a form you could do:
This would pass to the next page, otherwise the ?name_of_var=$err_code mau be
the way to go?
-Brad
> hi there i am trying to pass error code vars within a page say i post to a
> query string like ?action=upload i would like to be able to send an
Shouldn't be possible, as it would be a security risk.
electroteque wrote:
>yeh i was getting too deep into automation scripts on windoze but became
>system intensive thanks
>
>"Justin French" <[EMAIL PROTECTED]> wrote in message
>[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>
>
>>I seriously
The answer is compression - the image with text is more complicated, so
the compression ration is lower
Rodrigo Peres wrote:
>Hi,
>
>I'm using GD to put a dinamic text in some buttons. The problem is that the
>original image that I use has 8k and after i put a black text it jumps to
>20K. What
yeh i was getting too deep into automation scripts on windoze but became
system intensive thanks
"Justin French" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I seriously doubt it, because really, what you want to capture is how the
> *browser* renders the HT
[snip]
I'm running Apache 1.3.26 and PHP 4.2.2 on a windows NT system. I've been
having problems with some scripts I got from a friend off the net. The
script runs an initial setup process and asks for a username and password
and e-mail address.. you submit the info and it will set up an admin a
I'm running Apache 1.3.26 and PHP 4.2.2 on a windows NT system. I've been
having problems with some scripts I got from a friend off the net. The
script runs an initial setup process and asks for a username and password
and e-mail address.. you submit the info and it will set up an admin account
I seriously doubt it, because really, what you want to capture is how the
*browser* renders the HTML code... GC is not a browser, nor a parser of HTML
code.
This topic has been discussed a few times in various shapes and forms in the
archive... it'd be worth doing a search for screen grab and scr
Attach the two GIFs (pre and post text) in an email to me...
Justin
on 06/09/02 1:26 AM, Rodrigo Peres ([EMAIL PROTECTED]) wrote:
> Hi,
>
> I'm using GD to put a dinamic text in some buttons. The problem is that the
> original image that I use has 8k and after i put a black text it jumps to
Rodrigo Peres wrote:
>Hi,
>
>I have a resume system that put a rank in it resume at runtime. example: If
>you do a serach for each match that it finds it atribute 1 point, now I need
>to sort the generated list based in this rank, how can i do this, since this
>rank is dinamic and isn't in databa
stick the values in an array and use asort() to sort it.
-Original Message-
From: Rodrigo Peres [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 05, 2002 8:30 AM
To: PHP
Subject: [PHP] sort dinamic generated table
Hi,
I have a resume system that put a rank in it resume at runtime.
Hi,
I have a resume system that put a rank in it resume at runtime. example: If
you do a serach for each match that it finds it atribute 1 point, now I need
to sort the generated list based in this rank, how can i do this, since this
rank is dinamic and isn't in database??
Thank's
--
PHP Gene
Hi,
I'm using GD to put a dinamic text in some buttons. The problem is that the
original image that I use has 8k and after i put a black text it jumps to
20K. What I'm doing wrong? there's a way to compact this?
Thank's
--
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, vi
I'm using version 6 of IE and Netscape
I'm allowing the user to open/dowload a file from a secure locaiton on our
server. Under Netscape it works great! Under IE, it doesn't work at all.
IE complains about not being able to read from the server.
Anyone know of any workarounds?
here's the comm
is there a way to do a dynamic screen capture of a website using gd ?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
$filename = strtolower (eregi_replace ("[^A-Za-z0-9_.]", "_", $filename));
seems to be what I want.
thanks to everyone for the help
Javier
_
Send and receive Hotmail on your mobile device: http://mobile.msn.com
--
PHP General
Hello,
I am looking for usefull pointers on how to install GD graphing libraries with PHP 4.0
on a windows 2000 system.
Thanks,
Adnane.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
hi there i am trying to pass error code vars within a page say i post to a
query string like ?action=upload i would like to be able to send an error
code if any back to the page and then it can bring it up the only way i can
think of it when i redirect back to the previous page is adding a
?errorc
oanda www.oanda.com had a service where you could socket into it , that is
now not free but they still have a free email service which i parse the
information out of the email and add it to a currency table in the database
which is run via a daily cron job
"Justin French" <[EMAIL PROTECTED]> wrot
[snip]
> Did you put a closing form tag?
you are right, the closeing tag was missing, well, it still doesnt
work/stays emty ;/
[/snip]
Does this form refer to itself, or another page? Also, like Justin said,
echo the variable before writing to a directory to see what is getting
written, if anyth
> From: Jay Blanchard [mailto:[EMAIL PROTECTED]]
>
>
> Did you put a closing form tag?
you are right, the closeing tag was missing, well, it still doesnt
work/stays emty ;/
// Theme
echo '
';
for($i=0;$i".$theme_name[$i]."\n";
}
echo ' ';
echo ''; //i tried it here
$var_from_dropdown = $_
hi,
thanks for your help again.
i've noticed that file function have two different behaviors.
i tested file function with the url and it seems that the file is
interpreted. But i tried the code u give me and without the
"http://myurl.com/"; at the beginning, a warning is raised :
Warning: file(
Why don't you take the guesswork out of it a bit, and NOT write to a file
just yet... instead, just echo the var to the screen. IF that works, then
we know it's not your form that is the problem, it's the exec().
Justin
on 06/09/02 12:08 AM, Mario Ohnewald ([EMAIL PROTECTED]) wrote:
> Well,
I use this, it includes also national characters
$name=strtr( $name,
"`O}ao~¾YYµAÁÂAÄAAÇEÉEËIÍÎI?NOÓÔOÖOUÚUÜÝßaáâaäaaçeéeëiíîi?noóôoöouúuüýy
*!@#$%^&()+=",
"SOZsozlYYuAAACDNOOYsaaaconooyy_");
Javier Montserat wrote:
> i want to format the file
[snip]
Well, this is my original Code:
// Theme
echo '
';
for($i=0;$i".$theme_name[$i]."\n";
}
echo ' ';
$var_from_dropdown = $_POST['theme'];
exec("echo $var_from_dropdown > /tmp/varfromdropdown");
The file /tmp/varfromdropdown is still emty. (the dropdown field is NOT emty
by
the time i p
Well, this is my original Code:
--
// Theme
echo '
';
for($i=0;$i".$theme_name[$i]."\n";
}
echo ' ';
$var_from_dropdown = $_POST['theme'];
exec("echo $var_from_dropdown > /tmp/varfromdropdown");
The file /tmp/varfromdropdown is still emty. (the dropdown f
You shouldn't use str_replace as he said, but preg_replace() or
ereg_replace(), ereg are easier to use. take a look at
www.php.net/ereg_replace .
--
Nicos - CHAILLAN Nicolas
[EMAIL PROTECTED]
www.WorldAKT.com - Hébergement de sites Internet
"Javier Montserat" <[EMAIL PROTECTED]> a écrit dans le
[snip]
i want to format the filename of an uploaded file as follows :-
-- replace blankspace with "_"
-- remove any illegal characters.
Which string functions should I use to do this?
[/snip]
http://www.php.net/manual/en/function.eregi-replace.php
HTH!
Jay
--
PHP General Mailing List (h
[snip]
Hey,
Thanks for your help dude,
even appreciate the sarcasm :-)
[/snip]
I am glad, as many others are, that you do appreciate the sarcasm. The crap
of that deal is that none of should have to be sarcastic. I am on the list
to help and be helped as the case calls for. And I was a newbie at
check out preg replace in the manual... particularly example 3 of this page:
http://www.php.net/manual/en/function.preg-replace.php
personally, i'd replace anything other than a-zA-z0-9 with _
Justin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/
Here is a function that is used in the My_eGallery modules for PHP nuke.
function find_nom_dif($nom)
{
$nom=stripslashes($nom);
$nom=str_replace("'","",$nom);
$nom=str_replace("\"","",$nom);
$nom=str_replace("\"","",$nom);
$nom=str_replace("&","",$n
$date = '04.09.2002';
$date = preg_replace('/(\d{2}).(\d{2}).(\d{4})/', '\\3.\\2.\\1', $date);
echo $date;
Output:
2002.09.04
Read up for more info.
http://www.php.net/manual/en/ref.pcre.php
regards
alan
Bård tommy nilsen wrote:
> I want to sort text strings, but how could i do this ?
>
> Exa
i want to format the filename of an uploaded file as follows :-
-- replace blankspace with "_"
-- remove any illegal characters.
Which string functions should I use to do this?
Thanks,
Javier
_
Join the worlds largest e-mail
Hey,
Thanks for your help dude,
even appreciate the sarcasm :-)
Cheers,
-Ryan.
- Original Message -
From: "Jay Blanchard" <[EMAIL PROTECTED]>
To: "'Ryan A'" <[EMAIL PROTECTED]>; <:[EMAIL PROTECTED]>
Sent: Thursday, September 05, 2002 3:10 PM
Subject: RE: [PHP] cURL,libPNG,libJPG downloa
Go to www.mysql.com and make sure you are using the latest version of
MySQL.
Adam
On Thu, 5 Sep 2002, Boaz Yahav wrote:
> Hi
>
> Since i moved from a Sun / Solaris Machine to a Compaq / Linux machine
> I'm having weird problems with MySQL crashing while running reports w
[snip]
RA>I want to add cURL,
http://www.google.com/search?hl=en&lr=&ie=UTF-8&oe=UTF-8&q=cURL
RA>libJPG
http://www.google.com/search?hl=en&lr=&ie=UTF-8&oe=UTF-8&q=libJPG
RA>and libPNG
http://www.google.com/search?hl=en&ie=UTF-8&oe=UTF-8&q=libPNG
RA>what version?
The latest one, of course.
[/snip]
Hi,
guys,
Just a short question,
I want to add cURL,libJPG and libPNG for my site and my hostscan you tell me where
you downloaded it if you used it and what version?
Thanks,
-Ryan.
1 - 100 of 124 matches
Mail list logo