Greetings,
Have been working with Windows for many years, I'm planning to *migrate* to
Linux.
Googled Debian vs. Redhat. Found that more commercial software vendors
support Redhat rather than Debian. Why does this happen?
Also, Debian contains more than 8000 packages, which is much more than the
-Edit the php.ini file
GET THE DLLs:
The Dlls for mssql and others (oracle, sybase, etc.) are NOT included in the
installation (Install Shield Wizard) in the root folder.
Get the other package for windows systems (NO Install shield!). Just plain
files. After unzipping the file, look for the su
[EMAIL PROTECTED] wrote:
Hello mailing list, I want to use Oracle function in PHP parser in Win32
OS,
but I don't know how to install it, in the official documentation tell
this:
Installation
You have to compile PHP with the option --with-oracle[=DIR], where DIR
defaults to your environmment vari
* Thus wrote Ray Hunter ([EMAIL PROTECTED]):
> So what is your questions concerning php?
I think he's lost.
Curt
--
"My PHP key is worn out"
PHP List stats since 1997:
http://zirzow.dyndns.org/html/mlists/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
hi all
i've been given the task of writing an app with a login mechanism that authenticates
against the active directory users list on a windows 2000 domain controller.
i have an apache 1.3.28 webserver running on FreeBSD 4.8-RELEASE, with php4.3.1
nstalled
i don't have openldap support compil
So what is your questions concerning php?
---
BigDog
On Fri, 2003-10-10 at 23:28, [EMAIL PROTECTED] wrote:
>
> > Hello mailing list, I have a question about the use of XML / XLS
> > application, I am introducing myself in this technology, What is useful
> XML
> > / XLS for? , I need a basic exa
> > Hello mailing list, I want to use Oracle function in PHP parser in Win32
> OS,
> > but I don't know how to install it, in the official documentation tell
> this:
> >
> > Installation
> > You have to compile PHP with the option --with-oracle[=DIR], where DIR
> > defaults to your environmment va
> Hello mailing list, I have a question about the use of XML / XLS
> application, I am introducing myself in this technology, What is useful
XML
> / XLS for? , I need a basic example, basic application of it, because I
> don't find the use of it. I know that XML is used to interchange data
> bet
> Hello mailing list, I want to use Oracle function in PHP parser in Win32
OS,
> but I don't know how to install it, in the official documentation tell
this:
>
> Installation
> You have to compile PHP with the option --with-oracle[=DIR], where DIR
> defaults to your environmment variable ORACLE_HO
* Thus wrote Robert Cummings ([EMAIL PROTECTED]):
> On Fri, 2003-10-10 at 12:12, Jason Wong wrote:
> > On Friday 10 October 2003 22:44, Robert Cummings wrote:
> >
> > > > *Most* bottom posters are savvy enough to trim posts adequately to ensure
> > > > that there is no crap to wade through whilst
* Thus wrote Daevid Vincent ([EMAIL PROTECTED]):
> Yeah, that is the 'hack' solution I came up with too. LOL.
>
> I guess I was hoping for something more elegant...
>
> Is there a reason that PHP doesn't handle the & properly? I mean, it seems
> as though you'd have to go out of your way to force
I think it all falls under the "cryptography" category, but you're right -
it doesn't fall into the encryption/decryption scheme since it is only
one-way.
-M
-Original Message-
From: Brad Pauly [mailto:[EMAIL PROTECTED]
Sent: Friday, October 10, 2003 10:43 PM
To: php-gen
Subject: Re: [PH
On Fri, 2003-10-10 at 20:31, Ryan Thompson wrote:
> I know this is an opinion thing but what's the best functions or function set
> for password encryption?
>
> Currently my project uses md5 but I thinks it's more for checksums isn't it?
> Also, is mcrypt used for passwords? I looks like it's a t
Sorry. Just stumbled on crypt()
On Friday 10 October 2003 22:31, Ryan Thompson wrote:
> I know this is an opinion thing but what's the best functions or function
> set for password encryption?
>
> Currently my project uses md5 but I thinks it's more for checksums isn't
> it? Also, is mcrypt used
I know this is an opinion thing but what's the best functions or function set
for password encryption?
Currently my project uses md5 but I thinks it's more for checksums isn't it?
Also, is mcrypt used for passwords? I looks like it's a two-way encryption.
--
Ryan Thompson
[EMAIL PROTECTED]
http
stripslashes();
Edward Dudlik
Becoming Digital
www.becomingdigital.com
- Original Message -
From: "James Johnson" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, 10 October, 2003 13:07
Subject: [PHP] Echoing string with single quote from $_POST
Hi,
I'm building a form wher
Hi,
Saturday, October 11, 2003, 6:26:01 AM, you wrote:
DA> I do not understand why this line does not work :
DA> $info[$element] = $content;
DA> but yet this works: echo $content;
DA> why? what is the trick?
DA> --
DA> $xml_comment_file = basename($svg_file, '.svg.xml') .'.info.xml';
DA> if
Hi,
Saturday, October 11, 2003, 3:33:05 AM, you wrote:
CZ> On Fri, 10 Oct 2003 13:09:16 -0400, Scott Fletcher <[EMAIL PROTECTED]> wrote:
>> Hi Fellas!
>>
>> Did anyone have success with making the required function work if using
>> this sample code. It didn't work for me.
>>
>> --snip--
>> requi
> I'm trying to track down some issues with my site, and am trying to decide
> if it's a session variable issue. On a random basis, it appears that session
> vars are being dumped, deleted, or unset, as the site will break. Queries
> based on session vars don't work, session vars not being displaye
Yeah, that is the 'hack' solution I came up with too. LOL.
I guess I was hoping for something more elegant...
Is there a reason that PHP doesn't handle the & properly? I mean, it seems
as though you'd have to go out of your way to force it NOT to spawn the task
in the background. If PHP was just
err... sorry, the second line should be
$array = explode(':', $string);
Cristian
Cristian Lavaque wrote:
> yup
>
> you could do something like this
>
> $string = 'field_value1:field_value2:field_value3';
> $array = explode(':', $str);
> foreach($array as $substring){
> list($field, $value) =
So I should break it up my two queries?
$sql = 'insert into '.$db2.'.'.$table2.'(KW,AUS,GEO,AN,RB,CO,RR)
select KW,AUS,GEO,AN,RB,CO,RR FROM '.$db.'.'.$table.'
WHERE id='.$id.';';
mysql_query($sql);
$sql = 'DELETE FROM '.$db.'.'.$table.' WHERE id='.$id.' LIMIT 1;';
mysql_query($sql);
Any sugges
Where are you expecting gedit to appear? try with -display argument
Also, try other commands, such as ls first.
Mohamed~
On Fri, 2003-10-10 at 17:18, steve wrote:
> Curt Zirzow wrote:
> > What is gedit? it looks like the gnu text editor command. most X
> > applications
> > wont run from the web
Thanks Khalid... but that still does not help :)
The problem does not reproduce systematically, at all.. here is another
example I just found in a new log of my script:
Here is my code first:
$table="client_package";
$sql = "INSERT INTO `$table`
(`cp_id`,`client_id`,`pack_id`,`pack_price`,`paren
yup
you could do something like this
$string = 'field_value1:field_value2:field_value3';
$array = explode(':', $str);
foreach($array as $substring){
list($field, $value) = explode('_', $substr);
$$field = $value;
}
hope this helps
Cristian
Mehdi Achour wrote:
> Hi,
>
> Check this : php.net/e
>> If you've used it before, I can write more about how it can be used in
>> specific circumstances. I never start a project without starting a
>> repository someplace, and a combination of CVS and Make have really
>> helped me out with a lot of projects.
>
>hmm.. i'm interested in seeing your appr
On Fri, 10 Oct 2003 16:07:54 -0700, Daevid Vincent <[EMAIL PROTECTED]>
wrote:
How can I cause PHP to fire off a unix program and NOT wait for a reply.
Basically I want to use the "&" love the unix provides, but it seems that
exec, passthrough, system and even ` ` all wait for a return despite my
Put a ";" [no quotes] after such as: echo $PHP_SELF;
Jeff McKeon wrote:
I've just published a new website and something is wrong. I suspect the
PHP.ini on the server but I can't seem to find anything.
The line:
Doesn't seem to work. If I look at the "view source" from the web
browser I
How can I cause PHP to fire off a unix program and NOT wait for a reply.
Basically I want to use the "&" love the unix provides, but it seems that
exec, passthrough, system and even ` ` all wait for a return despite my
putting something like exec("/bin/scan &"); or `/bin/scan &`
*sigh*
The sitch
Hi,
I'm trying to track down some issues with my site, and am trying to decide
if it's a session variable issue. On a random basis, it appears that session
vars are being dumped, deleted, or unset, as the site will break. Queries
based on session vars don't work, session vars not being displayed,
On Fri, 10 Oct 2003 18:09:18 -0400, <[EMAIL PROTECTED]> wrote:
Hello mailing list, I have a question about the use of XML / XLS
application, I am introducing myself in this technology, What is useful
XML
/ XLS for?
XML - data storage
XLS - language to display define how to display XML.
HTML - XML
Hello,
I'm trying to login to a cvs repository and upload/download files from a
php script utilizing the 'cvs' command. I'm trying to avoid the use of
external libraries, etc...
Is it possible to do this with popen, or more likely with proc_open?
I'd prefer to do it with the former so as to
On Fri, 10 Oct 2003 18:09:14 -0400, Dan Anderson <[EMAIL PROTECTED]>
wrote:
while ($line = mysql_fetch_array($result))
{
if ($first)
{ foreach ($line as $key => $value)
{ if ($first)
{ fwrite($file_handle, $key); $first = FALSE; }
else
{ fwrite($file_handle, ", $key"); }
}
fwrite ($file_handle
As an apache module it runs as the apache user.
On Friday 10 October 2003 17:44, Grant Rutherford wrote:
> Hi,
>
> Just a quick question... What user does php run as on linux? Is it the
> Apache user? Is there some way to tell? I need to be able to set a
> directory so that only PHP can access
On Fri, 10 Oct 2003 16:44:37 -0500, Grant Rutherford <[EMAIL PROTECTED]>
wrote:
Hi,
Just a quick question... What user does php run as on linux? Is it the
Apache user? Is there some way to tell? I need to be able to set a
directory so that only PHP can access it.
You can figure who apache/
> Just a quick question... What user does php run as on linux?
It all depends on how PHP is set up. Do something like:
$fff = fopen ("./temp","w");
fwrite($fff,"testing");
fclose($fff);
in a directory chmod 777. Look at the user id.
(For what it's worth on my system its UID 518).
-Dan
-
You could do something like:
$result = mysql_query($query) or die(mysql_error()); // don't display
errors on production machines
$first = TRUE;
while ($line = mysql_fetch_array($result))
{
if ($first)
{
foreach ($line as $key => $value)
{
if ($first)
{ fwrite($f
Hello mailing list, I want to use Oracle function in PHP parser in Win32 OS,
but I don't know how to install it, in the official documentation tell this:
Installation
You have to compile PHP with the option --with-oracle[=DIR], where DIR
defaults to your environmment variable ORACLE_HOME.
I th
On Fri, 10 Oct 2003 18:38:04 -0300, Cesar Aracena <[EMAIL PROTECTED]>
wrote:
Hi all,
Does anybody knows how to make a CSV (comma separated values) file with
PHP based on results fetched from MySQL? I need it to import it with
Microsoft Outlook Express.
csv file format as follows:
value,"value\
Hello mailing list, I have a question about the use of XML / XLS
application, I am introducing myself in this technology, What is useful XML
/ XLS for? , I need a basic example, basic application of it, because I
don't find the use of it. I know that XML is used to interchange data
between every sy
I a newbie to cvs itself. I'll take a look at the link Thanks!
> -Original Message-
> From: Mike Migurski [mailto:[EMAIL PROTECTED]
> Sent: Friday, October 10, 2003 2:41 PM
> To: Jeremy Russell
> Cc: [EMAIL PROTECTED]
> Subject: Re: [PHP] Need advice, hopefully on topic.
>
> > I got
Hi,
Just a quick question... What user does php run as on linux? Is it the
Apache user? Is there some way to tell? I need to be able to set a
directory so that only PHP can access it.
Thanks,
Grant
--
Grant Rutherford
Iders Incorporated
600A Clifton Street
Winnipeg, MB
R3G 2X6
http://www.id
Hi all,
Does anybody knows how to make a CSV (comma separated values) file with
PHP based on results fetched from MySQL? I need it to import it with
Microsoft Outlook Express.
Thanks in advanced,
Cesar Aracena
www.icaam.com.ar
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, v
Curt Zirzow wrote:
What is gedit? it looks like the gnu text editor command. most X
applications
wont run from the webserver in most cases.
gedit is a simple text editor - I think it stands for Gnome Edit
echo shell_exec("sudo gedit");
might give some answers,
Curt.
Tried echo shell_exec("sudo
Hi,
does anyone know how to handle file and directory paths on a IIS 5.0
server? Problem is that the server has multi-domain and each domain has
an
associated 'root' dir below e:\webspaces.
So if one uses relative path strings, an opendir() for example will fail.
One has to use "e:\\webspaces
On Fri, 10 Oct 2003 13:24:49 -0700, Steve <[EMAIL PROTECTED]> wrote:
I want to start up a program through a php page. For example, gedit.
I found that the user is apache by running this:
- passthru('whoami');
since apache might not have access to run a certain command, I'll use
sudo. I
On Fri, 10 Oct 2003 13:27:59 -0700, James Johnson <[EMAIL PROTECTED]>
wrote:
I have a page that hits the database to display the records. One of the
columns is 'startDate'. I format this for display like this:
The page returns the following error:
[ERROR][8][Undefined index:
startDate][/home/.p
I want to start up a program through a php page. For example, gedit.
I found that the user is apache by running this:
- passthru('whoami');
since apache might not have access to run a certain command, I'll use
sudo. I edited the sudoers file in /etc/sudoers and underneath the
line: #
Hi,
I'm getting so frustrated with this.
I have put some error trapping code in my site with the following code (an
included file):
I have a page that hits the database to display the records. One of the
columns is 'startDate'. I format this for display like this:
The page returns the f
On Fri, 2003-10-10 at 16:18, Curt Zirzow wrote:
> On Fri, 10 Oct 2003 14:01:00 -0400 (EDT), Lists <[EMAIL PROTECTED]> wrote:
>
> > I do not know if this is the right list, but if someone could help me
> > with the following
>
> Sure, I'll be glad to help.
>
>
> > I need a function that does th
On Fri, 10 Oct 2003 12:40:30 -0700 (PDT), Mike Migurski <[EMAIL PROTECTED]>
wrote:
I got this project, I'm writing it in PHP of course. What I would
like to do is create a simple an efficient way to work on it from a
couple different locations/workstations. I'm throwing around the idea
of
a C
On Fri, 10 Oct 2003 14:01:00 -0400 (EDT), Lists <[EMAIL PROTECTED]> wrote:
I do not know if this is the right list, but if someone could help me
with the following
Sure, I'll be glad to help.
I need a function that does this:
I'm not sure if you want me to write the code that does this for you,
I do not understand why this line does not work :
$info[$element] = $content;
but yet this works: echo $content;
why? what is the trick?
--
$xml_comment_file = basename($svg_file, '.svg.xml') .'.info.xml';
if (file_exists($xml_comment_file)) {
$file = $xml_comment_file;
$info = array
Try using the function view_source(string filename)
That's off the top of my head. Might be wrong. It's in the documentation
On Friday 10 October 2003 15:41, Lists wrote:
> When I used apache 1.3 I could call a file with an extension of .phps and
> it would display formatted source.
>
> In apache
Mohamed Lrhazi wrote:
I am using a PHP application called modernbill, which uses iocube
encoder... PHP very frequently dies with SIG fault... 4.3 dies
systematically
While working on this problem I stumbled on this behavior :
In my code, I have something like this:
$table_customer="customer";
$s
When I used apache 1.3 I could call a file with an extension of .phps and
it would display formatted source.
In apache 2.0 it does not do this
Here is my config from apache 2.0
LoadModule php4_module modules/libphp4.so
#
# Cause the PHP interpreter handle files with a .php extension.
#
S
> I got this project, I'm writing it in PHP of course. What I would
>like to do is create a simple an efficient way to work on it from a
>couple different locations/workstations. I'm throwing around the idea of
>a CVS repository, but am not sure if this is the best way. Does anyone
>have s
Hello list,
I got this project, I'm writing it in PHP of course. What I
would like to do is create a simple an efficient way to work on it from
a couple different locations/workstations. I'm throwing around the idea
of a CVS repository, but am not sure if this is the best way. Does
anyon
Hello all,
I am using a PHP application called modernbill, which uses iocube
encoder... PHP very frequently dies with SIG fault... 4.3 dies
systematically
While working on this problem I stumbled on this behavior :
In my code, I have something like this:
$table_customer="customer";
$sql="select
Delete the line with header("Content-disposition: ... "). Just set the content type
and output the file.
-Kevin
"Pushpinder Singh Garcha" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]
Hello Everyone,
I am trying to display a JPG image to a use, who has logged in. Some
resear
Hi-
I *finally* got imagepsloadfont() to work on my Mac OS X box (it
helps if you actually have a .pfb file). Now I'm having problems
with another aspect of imagepsloadfont(). The docs say it should
return an int, however it's returning a resource.
I'm guessing this is why imagestring and im
Untested:
function fixhisnumber($str){
//remove all but numbers
$str = preg_replace("/[^0-9]/","",$str);
//append 1, unless it's already there
$str = $str[0] == '1'? $str:"1".$str;
if (strlen($str) == 10) return $str;
else return -1;
}
Mohamed~
On Fri, 2003-10-10 at 14:01, Lists wrote:
> I
On Fri, 10 Oct 2003, MIKE YRABEDRA wrote:
> Is there a way to let PHP generate the necessary AuthUserFiles for use with
> .htaccess?
http://pear.php.net/package/File_HtAccess
http://pear.php.net/package/File_Passwd
--
Mika Tuupola http://www.appelsiini.net/~
I do not know if this is the right list, but if someone could help me with
the following
I need a function that does this:
function phone($num) {
take num and remove anything that is not a number
ex: () - /
If there is not 1 at the start, add a one to the start of the number.
make sure that
[snip]
Is there a simple way (a built in function) to get the elapsed time
between two given timestamps (-MM-DD HH:MM:SS)?
[/snip]
http://www.php.net/strtotime
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Fri, 10 Oct 2003 13:09:16 -0400, Scott Fletcher <[EMAIL PROTECTED]> wrote:
Hi Fellas!
Did anyone have success with making the required function work if using
this sample code. It didn't work for me.
--snip--
require("$_REQUEST['PDF_LIB_PATH']");
--snip--
When you access an array inside of a s
On Fri, 10 Oct 2003, Bertrand Moulard wrote:
> try image/jpeg
>
> cheers
>
> .b
>
>
--
http://jon.shoberg.net
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Is there a simple way (a built in function) to get the elapsed time
between two given timestamps (-MM-DD HH:MM:SS)?
Thanks,
Jeff
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi,
More of a general HTML question, but thought I'd ask here:
I'm doing form validation and if something needs to be corrected, then the
user is informed and allowed to make changes. So, they don't have to retype
what they entered in the , I'm displaying it again with:
But, when the form is r
Hi,
I'm building a form where a user can enter text. When the form is submitted
I'm doing some validation before continuing. If the form isn't filled
correctly, then the user has to correct it before continuing. However, I
want to save the data that has been entered (some of it may be lengthy), so
On Friday 10 October 2003 23:16, Omar wrote:
> In this line
> preg_match("/[^a-z0-9'\?!-]", $item)
>
> i cant find de way to add vowels with accent (���,,,� and other
> characters to the preg_match function.
> Can anyone help me?
> The documentation of this function is not very clear (or complete)
Hi Fellas!
Did anyone have success with making the required function work if using
this sample code. It didn't work for me.
--snip--
require("$_REQUEST['PDF_LIB_PATH']");
--snip--
But I have success if I do this instead...
--snip--
$PDF_LIB_PATH = $_REQUEST['PDF_LIB_PATH'];
Unless you do an extract($_POST); in a main include somewhere before your
form.
For $PHP_SELF just do $PHP_SELF = $_SERVER['PHP_SELF']; or to get all of the
$_SERVER vars, do extract($_SERVER);
-Shawn
"Jeff McKeon" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
So you're saying I h
On Saturday 11 October 2003 00:01, Phil Ewington - 43 Plc wrote:
> A script that has been running successfully for over 18 months has suddenly
> stopped working due to ftp_connect() failing. I have been assured that
> nothing has changed on the ftp server so now need to try and find out why
> this
from php manual str_pad function
pete
Diana Castillo wrote:
is there a function to convert a number that has less than two digits into a
number with a leading zero?
for instance, to convert a "5" to "05" but to leave a "11" as "11"
thanks,
Diana
--
PHP General Mailing List (http://www.php.net/)
try image/jpeg
cheers
.b
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
-Original Message-
From: Pushpinder Singh Garcha [mailto:[EMAIL PROTECTED]
Sent: 10 October 2003 17:06
To: [EMAIL PROTECTED]
Subject: [PHP] Display a JPG Image
Hello Everyone,
I am trying to display a JPG image to a use, who has logged in. Some
research on google revealed a way to
On Fri, 2003-10-10 at 12:12, Jason Wong wrote:
> On Friday 10 October 2003 22:44, Robert Cummings wrote:
>
> > > *Most* bottom posters are savvy enough to trim posts adequately to ensure
> > > that there is no crap to wade through whilst maintaining some kind of
> > > continuity within a thread.
>
[EMAIL PROTECTED] (Phil Ewington - 43 Plc) wrote
> A script that has been running successfully for over 18 months has
> suddenly stopped working due to ftp_connect() failing. I have been
> assured that nothing has changed on the ftp server so now need to try
> and find out why this is happening. ft
On Friday 10 October 2003 22:44, Robert Cummings wrote:
> > *Most* bottom posters are savvy enough to trim posts adequately to ensure
> > that there is no crap to wade through whilst maintaining some kind of
> > continuity within a thread.
>
> I'll call this premise one, which is by no means a tau
Hello Everyone,
I am trying to display a JPG image to a use, who has logged in. Some
research on google revealed a way to do this. I am using the following
code to display it.
if (session_is_registered("valid_user")){
if(session_is_registered("cmi")){
Hi All,
A script that has been running successfully for over 18 months has suddenly
stopped working due to ftp_connect() failing. I have been assured that
nothing has changed on the ftp server so now need to try and find out why
this is happening. ftp_connect seems to only return true or false, no
"Ben Duffy" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>
> "Shawn McKenzie" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> > I have a var:
> > $test = 'echo \'test\';';
> >
> > If I display this in a textearea like so:
> > echo " > name=\"action\">\n"
> > .$test
>
"Shawn McKenzie" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I have a var:
> $test = 'echo \'test\';';
>
> If I display this in a textearea like so:
> echo " name=\"action\">\n"
> .$test
> ."\n";
>
> In the browser and in the HTML source I see (no slashes):
> echo 'test';
>
> Eve
I have a var:
$test = 'echo \'test\';';
If I display this in a textearea like so:
echo "\n"
.$test
."\n";
In the browser and in the HTML source I see (no slashes):
echo 'test';
Even if I do an htmlentities($test); I see no slashes and the single-quotes
are not shown in the HTML source as "
Is t
Hello everyone.
In this line
preg_match("/[^a-z0-9'\?!-]", $item)
i can´t find de way to add vowels with accent (á,é,í,ó,ú,ñ,Ñ) and other
characters to the preg_match function.
Can anyone help me?
The documentation of this function is not very clear (or complete) to me.
Thank you.
--
PHP Gener
Sorry,
it should be
$dd = sprintf("%02d", $d);
will generate $dd = "05";
If you want 005;
use
$dd =sprintf("%03d", $d);
if you want XXX5;
use
$dd = sprintf("%X4d", $d);
- Original Message -
From: "Diana Castillo" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, October 10, 2003
$d = 5;
$dd = sprintf("%0d", $d);
will do -- $dd = "05";
- Original Message -
From: "Diana Castillo" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, October 10, 2003 10:44 AM
Subject: [PHP] pad numbers
> is there a function to convert a number that has less than two digits int
str_pad -- Pad a string to a certain length with another string
Diana Castillo wrote:
is there a function to convert a number that has less than two digits into a
number with a leading zero?
for instance, to convert a "5" to "05" but to leave a "11" as "11"
thanks,
Diana
--
PHP General Mailing L
Hi,
Saturday, October 11, 2003, 12:44:38 AM, you wrote:
DC> is there a function to convert a number that has less than two digits into a
DC> number with a leading zero?
DC> for instance, to convert a "5" to "05" but to leave a "11" as "11"
DC> thanks,
DC> Diana
$num = sprintf("%02d",$num); is wh
The way I have done it is to check the length of the number and if it is 1
then add the 0 myself.
my $len = length($mm);
if ($len eq 1) { $mm = "0$mm"; }
Susan
-Original Message-
From: Diana Castillo [mailto:[EMAIL PROTECTED]
Sent: Friday, October 10, 2003 10:45 AM
To: [EMAIL PROTECTED]
On Fri, 2003-10-10 at 03:43, Jason Wong wrote:
> On Friday 10 October 2003 11:02, Robert Cummings wrote:
> > If you've been following a thread then you'll have read everything
> > anyways. If you bottom post I gotta scan through all the crap I've
> > already read, and that often involves employing
is there a function to convert a number that has less than two digits into a
number with a leading zero?
for instance, to convert a "5" to "05" but to leave a "11" as "11"
thanks,
Diana
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
> If I have a form that POSTS a textarea that contains PHP
> code. Say some
> code that contains legitimate escapes \ like:
>
> echo "http://somewhere.com\";>Click";
>
> When the data is posted and received in the destination
> script, additional
> escapes \ are added. So how do I get to the
Gregory Kornblum wrote:
function URLString2Array($url_string_in) {
$ser1 = stripslashes($url_string_in);
// $arr1 = urldecode($ser1);
urldecoding is done by php.
$arr1 = unserialize($arr1);
return $arr1;
}
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, vis
On Fri, 2003-10-10 at 07:41, Donaldson Sgt Michael J wrote:
> $s_array1 = serialize($results);
>
> echo "";
>
> What's the problem with this code? I am trying to pass an array to create
> graph but instead of the pic i get this in my browser. Probably do to bad
> HTML syntax. Can I urlencode in a
echo "";
Also here's some functions to help.
function Array2URLString($array_in) {
$ser = serialize($array_in);
$ser = urlencode($ser);
return $ser;
}
function URLString2Array($url_string_in) {
$ser1 = stripslashes($url_string_in);
$arr1 = urldecode($ser1);
$arr1
$s_array1 = serialize($results);
echo "";
What's the problem with this code? I am trying to pass an array to create
graph but instead of the pic i get this in my browser. Probably do to bad
HTML syntax. Can I urlencode in a get or does it have to be a hidden
variable in a post?
try to use $_SERVER['PHP_SELF'] instead of.
-Original Message-
From: Jeff McKeon [mailto:[EMAIL PROTECTED]
Sent: viernes, 10 de octubre de 2003 14:09
To: php
Subject: [PHP] Echo $PHP_SELF not working
I've just published a new website and something is wrong. I suspect the
PHP.ini on the
Then you have codepage problem. How did you get the files there in the
(Bfirst place?
(B
(BYou can try to set the codepage of the html page to each possible
(Bjapanese coding and find out which one is used.
(B
(Bumesh wrote:
(B
(B> Hi,
(B>
(B> If I list out all filkes in the directory us
1 - 100 of 127 matches
Mail list logo