> I'm recalling this from memory, and I may not be 100% right, but it
> should put you on the right path. You will need to install the Oracle
> client libraries on the box with php (you can find these on the Oracle
> discs used to install the actual database).
Yes
> correctly, the Oracle disc
Try naming the file with a .php extension. It is also possible your server
does not support php.
Good luck,
Chris
From: "Jonathan" <[EMAIL PROTECTED]>
Reply-To: "Jonathan" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: [PHP] new to php, need help..
Date: Thu, 20 Feb 2003 01:34:12 -0600
hi a
Hey,
I'm using PHP & MySQL to generate a RTF document. I use this header:
header("Content-type: text/rtf");
Of course, the header scares the poor browser. The browser bawks and says, unknown
file type, and instructs the browser to save the file.
It tries to save a file called "export_to_rtf_te
Hi, people.
I've been trying setup dbg-2.11.5 under RedHat-7.3, but can't find
dbg-client for this OS.
Which php-debugger do you use under Linux?
Thank you.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi, people.
I've been trying setup dbg-2.11.5 under RedHat-7.3, but can't find
dbg-client for this OS.
Which php-debugger do you use under Linux?
Thank you.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Just a hunch:
""
Try using "
Do you have a URL to show us what your page does and doesn't do?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I didn't know a debugger was available? Then again, I'm no expert. However, as an
aside note, rename your file to *.PHPS
This will display your code in a readable, color-coded fashion, allowing you to
decipher possible problems yourself.
Newbie advice, but helps some.
--
PHP General Mailing Li
try this site http://www.oscommerce.com/
you might have to add additional functions to customize it.
- Original Message -
From: "Chris Knipe" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, February 20, 2003 2:06 AM
Subject: [PHP] php ecommers site
> Lo all,
>
> Is there any
I use a hardened release of Redhat called SME Server ( http://e-smith.org ) that
works very nicely as a development environment. I also use it for my production
server (40+ domains). The 5.5 release comes packaged with PHP v4.1.2 . The
newest release 5.6 I am not sure what version of PHP it comes
Of course, you'll need a separate box for SME Server!
Quoting Andrey Ivanov <[EMAIL PROTECTED]>:
### Hi, people.
###
###
### I've been trying setup dbg-2.11.5 under RedHat-7.3, but can't find
### dbg-client for this OS.
### Which php-debugger do you use under Linux?
###
###
### Thank you.
#
Greetings.
I have a member system which each user has a unique ID, username and password.
I want to secure some of my scripts with .htaccess style login, Basically I would like
to fetch the username and password from mysql database, the password is encrypt using
md5 hash.
I would like to the a
Hi guys, having trouble with my win2k install of php 4.3.0 - can't run
sessions! I have some test code:
whadda!")
?>
And it results in
Fatal error: session_start() [function.session-start]: Failed to initialize
session module in ... on line 6
My php.ini has the following set (I've tried with bo
thanks for helping guys :)
sorry i don't have a url that i can upload my files too.. all i can show is
my code.. :(
the original code that i got from is from :
http://www.linuxguruz.org/z.php?id=33
example 5:
examples 1-4 seems to work, but other examples with this line doesn't,
if you click
got it, had to change
session.save_handler = files
;session.save_handler = user
to files - my bad!
neko
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
El lun, 17-02-2003 a las 19:17, Matt Vos escribió:
> I don't care what you say, all you need is Secure-Socket-Layer
I know, but I cannot use SSL
> contrary to what you may believe, you don't need a beefy server to implement
> it. I had apache+ssl+php+mysql running quite well on a 486 DX4/100 with 6
I am having trouble using php as a script.
#!/usr/local/bin/php
using the above form creates the following cron error:
/bin/sh: /usr/local/apache/sites/domain.com/tasks/autoreport/test.php: bad
interpreter: No such file or directory
Any ideas?
Thanks in advance...
---
Outgoing mail is certi
I have a site that sells software and wants to have downloadable purchases.
Is there a way to encrypt a URL that will still work when clicked on, BUT
not show the customer where the file actually resides? Is it also possible
to have it expire after a given amount of time?
TIA
--
Mike Yrabed
Hi all,
Have simple but annoying issue, I want to display a string within an
input field. This string contains ' & so when it's being display the,
anything after the ' is being left out. Here is the code I'm using:
$string = str_replace("'", "''", $string);
$string = stri
At 12:16 20.02.2003, Brian McGarvie said:
[snip]
>I am having trouble using php as a script.
>
>#!/usr/local/bin/php
>... stuff ...
>?>
>
>using the above form creates the following cron error:
>
>/bin/sh: /usr/local/apache/sites/domain.com/tasks/autorepo
Hi,
Thursday, February 20, 2003, 9:34:03 PM, you wrote:
Rec> Hi all,
Rec> Have simple but annoying issue, I want to display a string within an
Rec> input field. This string contains ' & so when it's being display the,
Rec> anything after the ' is being left out. Here is the code I'm usin
At 13:16 20.02.2003, Tom Rogers said:
[snip]
>Rec> Have simple but annoying issue, I want to display a string
>within an
>Rec> input field. This string contains ' & so when it's being display the,
>Rec> anything after the ' is being left out. Here is
On Thursday 20 February 2003 20:26, Ernest E Vogelsinger wrote:
> At 13:16 20.02.2003, Tom Rogers said:
> [snip]
>
> >Rec> Have simple but annoying issue, I want to display a string
> >within an
> >Rec> input field. This string contains ' & so when it
Hi!
How can I pass an array parameter by reference?
I tried something similar:
function my_function($argument) {
$argument[0]="test";
}
my_function(&$array);
echo $array[0];
but the echo function returns "Array".
Can anybody help me?
Thanks!
Andrea
--
PHP General Mailing List (http:/
i am selecting company because the company i am writing this for wanted me to print
out on a web page all the company names that had gotten mail from the email system..
and i didnt know if i should do a different query for that or if i could leave it in 1
query...
so could i do this:
select com
Hi,
Thursday, February 20, 2003, 10:52:11 PM, you wrote:
A> Hi!
A> How can I pass an array parameter by reference?
A> I tried something similar:
A> function my_function($argument) {
A> $argument[0]="test";
A> }
A> my_function(&$array);
A> echo $array[0];
A> but the echo function returns "A
On Thu, 20 Feb 2003 03:42:14 -0500, you wrote:
>I'm using PHP & MySQL to generate a RTF document. I use this header:
>
>header("Content-type: text/rtf");
>
>Of course, the header scares the poor browser. The browser bawks and says, unknown
>file type, and instructs the browser to save the file.
>
> On Thursday 20 February 2003 20:26, Ernest E Vogelsinger wrote:
> > At 13:16 20.02.2003, Tom Rogers said:
> > [snip]
> >
> > >Rec> Have simple but annoying issue, I want to display a string
> > >within an
> > >Rec> input field. This string contains
Im have a "script.php" which needs to be able to tell if it has been
included in an .shtml file or not...
e.g. if included is true: do this, else: do something else
I could ofcourse do something like this:
but it would be nice to totally let the php check if it has been
included
Anyon
Thanks everyone!
-Original Message-
From: 1LT John W. Holmes [mailto:[EMAIL PROTECTED]]
Sent: 20 February 2003 13:40
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Display strings with single quotes
> On Thursday 20 February 2003 20:26, Ernest E Vogelsinger wrote:
> > At 13:16 20.02.2003, Tom
> I have a site that sells software and wants to have downloadable
purchases.
>
> Is there a way to encrypt a URL that will still work when clicked on, BUT
> not show the customer where the file actually resides? Is it also possible
> to have it expire after a given amount of time?
Sure, just have
Hi,
I have one application where the users enter a curency
value.
Unfortunately even tough I write the "correct" format
I keep receiving all kinds.
Example
1.000,00
1000.00
1,000.00
I would like to convert those to a single format
1000.00
Is there any function in php that already does that ?
Check out "sudo", with man pages or what not, you use
the command "visudo" to define who can run what commands
as root. And then in your php, you just do:
exec("sudo adduser");
With whatever parameters you need to adduser.
On Wed, 2003-02-19 at 18:37, Patrick Armour wrote:
I
> define ("DOC_HOME_PATH", "http://localhost/killerspin/web/store/";);
> define ("IMG_HOME_PATH", "http://localhost/killerspin/web/images/";);
> define ("CTL_HOME_PATH", "http://localhost/killerspin/web/control/";);
>
> Click Here
>
>
> doesn't work.
It should. The above code produces this when
PHP's max execution time has always over-ridden whatever Apache
wants for keep-alive time (in my experience anyway).
On Wed, 2003-02-19 at 22:50, Lord Loh. wrote:
Is there any conflict with the server Keep-Alice time ?
That is usually not more than a minute...
On Thu, 20 Feb 2003 06:20:26 -0500, you wrote:
>Is there a way to encrypt a URL that will still work when clicked on, BUT
>not show the customer where the file actually resides?
It's not possible to "encrypt a URL" and leave it readable. URLs are
plaintext.
>Is it also possible to have it expir
Hello
has someone done some benchmarks with Cache scripts?
I wrote a small and easy Script to cache some sites;
I have seen that the Cache needs more time to send the Data
as php alone.
I also tried it with PEAR Cache but there was the same.
On small files PHP witout Caching is faster,
On larg
On Thu, 20 Feb 2003 03:42:14 -0500, you wrote:
>I'm using PHP & MySQL to generate a RTF document. I use this header:
>
>header("Content-type: text/rtf");
Sorry, I should have mentioned
header("Content-Disposition: attachment; filename=myfile.rtf");
as well. Rather easier :)
--
PHP General Ma
I would highly recommend against doing this, this would work but it
would open you up to allowing your webserver user/php to add any user to
your system. This is beyond a bad idea.
Jason.
On Thu, 2003-02-20 at 06:46, Adam Voigt wrote:
> Check out "sudo", with man pages or what not, you use
> the
> -Original Message-
> From: Shawn McKenzie [mailto:[EMAIL PROTECTED]]
> Sent: 20 February 2003 05:55
>
> While debugging my code, that seems to work fine, I see
> hundreds of these
> notices, many different ones with different offset numbers
> same line number.
>
> Notice: Undefined of
On Thu, 20 Feb 2003 14:41:09 +0100, you wrote:
>Im have a "script.php" which needs to be able to tell if it has been
>included in an .shtml file or not...
>
>e.g. if included is true: do this, else: do something else
>
>I could ofcourse do something like this:
>
>
>
>but it would be nice to totall
> -Original Message-
> From: Steve Buehler [mailto:[EMAIL PROTECTED]]
> Sent: 20 February 2003 05:25
>
> Ahhhfinally did it with usort. Thanks to those who gave me that
> answer. Now here is a question for that. I would like to
> re-use my "cmp"
> function without having to rewri
Yeah, it's a bad idea, but he wants to be able to add email accounts to the
system, and not have to use a database for his mail users. So there you go.
On Thu, 2003-02-20 at 09:30, Jason Sheets wrote:
I would highly recommend against doing this, this would work but it
woul
> Example
>
> 1.000,00
> 1000.00
> 1,000.00
>
> I would like to convert those to a single format
> 1000.00
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
A great article on PHP and template engines can be found here:
http://phppatterns.com/index.php/article/articleview/4/1/1/
The opinon of the author is that template engines might not be worth your
time, and I'm inclined to agree. I'd rather develop a more comprehensive CMF
which limits what the u
Hi,
Thursday, February 20, 2003, 9:34:03 PM, you wrote:
Rec> Hi all,
Rec> Have simple but annoying issue, I want to display a string within an
Rec> input field. This string contains ' & so when it's being display the,
Rec> anything after the ' is being left out. Here is the code I'm usin
This is a test message. I sent a real message last night and apparently
it didn't make it to the server.
Bob
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
At 13:41 20.02.2003, Jason Wong spoke out and said:
[snip]
>On Thursday 20 February 2003 20:26, Ernest E Vogelsinger wrote:
>>
>> htmlentities won't work with single quotes, use addslashes:
>
>Actually just (only) htmlentities() will do. See manual for option
> This is a test message. I sent a real message last night and apparently
> it didn't make it to the server.
So this is not a real message? Do I exist?
---John Holmes...
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
At 16:07 20.02.2003, 1LT John W. Holmes spoke out and said:
[snip]
>> This is a test message. I sent a real message last night and apparently
>> it didn't make it to the server.
>
>So this is not a real message? Do I exist?
[snip]---
$HTTP_SERVER_VARS['REQUEST_URI'] did the trick
"Hans Prins" <[EMAIL PROTECTED]> schreef in bericht
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Im have a "script.php" which needs to be able to tell if it has been
> included in an .shtml file or not...
>
> e.g. if included is true: do this, else:
hi all
I'm trying to do the following:
a user can log in on a site where he/she can change the contents of a css-stylesheet
file with the aid of forms.
The results of the form input are used to wrie a css file on the webserver which later
will be used in the HTML files of the website.
I know h
Greetings!
I have a MySQL database of essays that contain some pretty long articles.
I'm using PHP and instead of throwing all the text up on one mile-long page,
I'd like to be able to automagically break up the article among multiple
pages.
I had thought about using multiple text areas for break
I fixed this yesterday. I'm not sure what exactly fixed it,
but I can tell the list what I did:
1.) Removed distribution directory ENTIRELY. rm config.cache
just wasn't enough I think.
2.) Configured with the following:
./configure --with-mysql=/usr/local/mysql \
--with-apxs=
> Thursday, February 20, 2003, 9:34:03 PM, you wrote:
> Rec> Hi all,
>
> Rec> Have simple but annoying issue, I want to display a string
within an
> Rec> input field. This string contains ' & so when it's being display the,
> Rec> anything after the ' is being left out. Here is the code I'm
I would like to pass the content of "./doc_test2.xml"
as an argument. How would I alter the file below to
accomplish this? Do I need to change the stylesheet as
well?
begin *.php
%s",
xslt_errno($_parser), xslt_error($_parser) );
}
ob_end_clean();
xslt_free($_parser);
e
If you use the method, you could use:
$part = explode("",$text);
to break apart the essay. Then echo $part[0] for page 1, $part[1] for page
2, etc...
I'm sure there are other ways.
---John Holmes...
- Original Message -
From: "Alan McCoy" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Se
I'm trying to get weather channel information without using their form to
submit the zip code .. the url format is :
http://oap.weather.com/fcgi-bin/oap/generate_magnet?loc_id=$ZIP&code=689861&;
destination=$ZIP
so I tried:
$weatherfile =
readfile("http://oap.weather.com/fcgi-bin/oap/generate_ma
--- Daniel Guerrier <[EMAIL PROTECTED]> wrote:
> Is there any to redirect in php with using header()
> and without the use of javascript?
Yes:
header('Location: http://www.php.net/');
If we are meant to answer your subject and not your message, then use a meta
HTML tag.
Chris
--
PHP General M
--- Sam Minnee <[EMAIL PROTECTED]> wrote:
> I'm having a couple of problems getting PHP to accept my post data.
> Specifically, the data I am sending is not with POST, put with PUT and
> PROPFIND. I'm implementing WebDAV within PHP.
>
> How to I get PHP to set $HTTP_RAW_POST_DATA for all methods
Is it possible to display the contents of a given folder, list them , and
make them links?
--
Mike Yrabedra
President
323, Inc.
Home of The MacDock and The MacSurfshop
[http://macdock.com] : [http://macsurfshop.com]
VOICE: 770.382.1195
iChat/AIM: ichatmacdock
___
> -Original Message-
> An alternative...
>
> 1. register_globals off
>
> use the command
> import_request_variables("PC","_p");
> now you can get the variables like user as $p_user.
> The get variables will be ignored!
>
> Still, If a user developes a special browser, exclusively to
>
On Thu, 20 Feb 2003 11:33:19 -0500, you wrote:
>Is it possible to display the contents of a given folder, list them , and
>make them links?
http://www.php.net/manual/en/function.readdir.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
> Is it possible to display the contents of a given folder, list them , and
> make them links?
Yes.
---John Holmes...
PS: www.php.net/readdir
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Yes it is, read the directory section in PHP Manual.
- Original Message -
From: "MIKE YRABEDRA" <[EMAIL PROTECTED]>
To: "PHP List" <[EMAIL PROTECTED]>
Sent: Thursday, February 20, 2003 4:33 PM
Subject: [PHP] List folder contents with links?
>
>
> Is it possible to display the contents
Please disregard the previous post.
I figured it out.
On Thu, Feb 20, 2003 at 04:24:00PM +0100, William S. wrote:
> I would like to pass the content of "./doc_test2.xml"
> as an argument. How would I alter the file below to
> accomplish this? Do I need to change the stylesheet as
> well?
--
Bill
on 2/20/03 11:49 AM, David Otton at [EMAIL PROTECTED] wrote:
>> Is it possible to display the contents of a given folder, list them , and
>> make them links?
>
> http://www.php.net/manual/en/function.readdir.php
Thanks :-)
--
Mike Yrabedra
President
323, Inc.
Home of The MacDock and The M
You can also take a look at:
http://www.php.net/manual/en/function.opendir.php
Hope this helps.
At 11:54 AM 2/20/2003 -0500, you wrote:
on 2/20/03 11:49 AM, David Otton at [EMAIL PROTECTED] wrote:
>> Is it possible to display the contents of a given folder, list them , and
>> make them links?
it will probely need abit of work to be used in your set up, for one i use
postgresql not mysql, but hopefully it will be a start
also if you or anybody else can suggest any improvements please say as they
will be a help
p.s. i'm not a security expert so this is probely not very secure
regards
This mail doesn't seem to have gone through first time so here it is again,
sorry if the first mail does eventually turn up.
it will probely need abit of work to be used in your set up, for one i use
postgresql not mysql, but hopefully it will be a start
also if you or anybody else can suggest an
Hi,
My provider is free.Fr
chmod is disabled
Is it possible to use Smarty on my web pages ?
thanks for your answer
Guillaume
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
When using a php script to pull recorda from a db how can I cut the records
at 1/4 of the total and arrange them alaphabetically according to a certain
field? Thanks in advance.
_
MSN 8 helps eliminate e-mail viruses. Get 2 mont
use header("Content-type: image/jpeg"); and then you can echo it's
content.
On Thu, 2003-02-20 at 17:30, Chad Day wrote:
> I'm trying to get weather channel information without using their form to
> submit the zip code .. the url format is :
>
> http://oap.weather.com/fcgi-bin/oap/generate_magnet?
So forward the ports (80,443) to a box that u can run a webserver on, then
you can user SSL.
Matt
- Original Message -
From: José León Serna <[EMAIL PROTECTED]>
To: Matt Vos <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Thursday, February 20, 2003 5:28 AM
Subject: Re: [PHP] RSA impleme
At 18:27 20.02.2003, [EMAIL PROTECTED] spoke out and said:
Please use a real email address when posting to this list, thank you.
--
>O Ernest E. Vogelsinger
(\) ICQ #13394035
^ http://www.vogelsinger.at/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: htt
On Thu, 20 Feb 2003 17:44:51 +, you wrote:
>When using a php script to pull recorda from a db how can I cut the records
>at 1/4 of the total and arrange them alaphabetically according to a certain
>field? Thanks in advance.
http://www.mysql.com/doc/en/SELECT.html
LIMIT and ORDER BY.
This
I'm starting to use sessions for my website and wanted
to know some things before I fully commit to use them.
1) How are sessions different from cookies other than
where the information is stored?
2) Does session data stored on the server
automatically delete after a certain time?
3) Is a sessio
This would work (and might still if I changed things), but the part that
calls it is in another function also.
Steve
At 02:35 PM 2/20/2003 +, you wrote:
> -Original Message-
> From: Steve Buehler [mailto:[EMAIL PROTECTED]]
> Sent: 20 February 2003 05:25
>
> Ahhhfinally did it wit
I'm not sure what you mean by cut the records at 1/4, if you mean only
bringing back 1/4 of the rows you could use the LIMIT clause in your sql
statement and give it a number of rows you want brought back.
To sort alphabetically just use the order by command in SQL
So your query would look like
In a message dated 2/19/2003 8:44:53 PM Pacific Standard Time,
[EMAIL PROTECTED] writes:
>I have a problem here in array manipulations. I need an output like this
>from the queried data :
>
>"data1","data2","data3"
>
>Any idea how? thanx in advance
$string = '"'.implode('","',$testarray).'"';
J
Hello folks,
I'd like to verify input data transferred from a form and make sure it
is numeric data or null before my program executes. I am using this
syntax, which doesn't work:
for ($i=1;$i<=3;$i++)
{
if (ereg('[0-9]+','$_POST["gamt_$i"]'))
{
continue;
}
else
{
die("Non-numeric
On Thu, 20 Feb 2003, Robert E. Harvey, M.D. wrote:
>I'd like to verify input data transferred from a form and make sure it
>is numeric data or null before my program executes. I am using this
>syntax, which doesn't work:
>
>for ($i=1;$i<=3;$i++)
>{
> if (ereg('[0-9]+','$_POST["gamt_$i"]'))
> {
Did you try this syntax yet?
The with the ^ and $search matching beginning and end
I tested out the code myself and it worked fine.
http://www.theoutersphere.com/testing/testnumbers.php
//here is the exact code that I used
echo $_POST[vari] ."";
if (eregi('^[0-9]+$',$_POST[vari]) || $_P
Change to:No, the double quotes are needed so that $i will be parsed.
The problem is the single quotes around $_POST["gamt_$i"].
if (ereg('[0-9]+',$_POST["gamt_$i"])
Greg Donald wrote:
On Thu, 20 Feb 2003, Robert E. Harvey, M.D. wrote:
I'd like to verify input data transferred from a form
--- Joseph Bannon <[EMAIL PROTECTED]> wrote:
> 1) How are sessions different from cookies other than
> where the information is stored?
Cookies are a state management mechanism. PHP's session management (depending
on how it is configured, of course) uses either cookies or URL variables for
maintai
More specifically (since I just dealt with this issue myself), use fpassthru
(and be sure not to fclose the file pointer as it's automatically done by
fpassthru)
On 02/20/03 12:47 PM, "Mincu Alexandru" <[EMAIL PROTECTED]> wrote:
> use header("Content-type: image/jpeg"); and then you can echo it's
The following "Seems" to work. But does anybody know how reliable this
might be? Baically, I have a multi-dimensional array and want to sort by
one column first, than another than another. Right now, I am using a
temporary table in MySQL, but want to speed things up if possible. The
command
This should also work, without any problems.
- Php Code --
- End PHP Code --
- Original Message -
From: Bas Jobsen [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 20, 2003 10:05 AM
To: Robert Mena; php mailing list
Subject: Re: [PHP] Correct number format (curency)
Is there an easy way to derive the bottom-most directory from a string
containing a path?
Example: $somepath = "html/testsite/templates/shopping";
Becomes: "shopping"
TIA
-Shawn
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
How do I remove the '.' and '..' from displaying with the following script?
I want just the files, not the dots.
\n";
/* This is the correct way to loop over the directory. */
while (false !== ($file = readdir($handle))) {
echo "$file\n";
}
closedir($handle);
}
?>
--
Sorry... Think I was over complicating it.
Seems the last element of $somearray from $somearray = explode("/",
$somepath); will work well.
Thanks!
Shawn
"Shawn McKenzie" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Is there an easy way to derive the botto
see the basename() function
On Thu, 20 Feb 2003, Shawn McKenzie wrote:
> Is there an easy way to derive the bottom-most directory from a string
> containing a path?
>
> Example: $somepath = "html/testsite/templates/shopping";
>
> Becomes: "shopping"
>
> TIA
> -Shawn
>
>
>
> --
> PHP General Mai
I have a question. I need to setup something so it goes through a dynamic
list, the length of the list changes, gets the contents of the list and
seperate each element with a ^ (carot), except for the last one. So it
looks like this. number=0^1^2^3
How do I make sure that it does append a ^
If the list is an array, try implode()ing it.
Didier McGillis wrote:
I have a question. I need to setup something so it goes through a
dynamic list, the length of the list changes, gets the contents of the
list and seperate each element with a ^ (carot), except for the last
one. So it looks
on 2/20/03 3:34 PM, MIKE YRABEDRA at [EMAIL PROTECTED] wrote:
> How do I remove the '.' and '..' from displaying with the following script?
> I want just the files, not the dots.
>
> if ($handle = opendir('graphics/')) {
> echo "Files:\n";
>
> /* This is the correct way to loop over the dir
Hello all. Im having a strange problem. My php outputs html correctly, and
Ive tried other builtin functions like date and that works too. But when I
try to do something as simple as passing a value from a form to a php file
and display that value, no go.
the HTML:
Enter Your Name
The field name in the is "user_name", and the echo is for "name". Are
you copying the value from $user_name to $name at some point?
Kirk
> -Original Message-
> From: ML [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, February 20, 2003 2:04 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] missing
How do I round a number to the nearest 10 or even 5. Say I have a
number like 12. Is there an easy way to round that up to 15 or 20?
Robbert van Andel
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
At 22:04 20.02.2003, ML spoke out and said:
[snip]
>the HTML:
>
>
>Enter Your Name
>
>
>
>
>
>
>
>the PHP file:
>echo "Your name is $name";
>?>
>
>I fill in my name, I click submit, and where the name should be displayed it
At 22:17 20.02.2003, Van Andel, Robbert spoke out and said:
[snip]
>How do I round a number to the nearest 10 or even 5. Say I have a
>number like 12. Is there an easy way to round that up to 15 or 20?
[snip]
functi
On Friday 21 February 2003 05:17, Van Andel, Robbert wrote:
> How do I round a number to the nearest 10 or even 5. Say I have a
> number like 12. Is there an easy way to round that up to 15 or 20?
To round to the nearest 5:
Divide by 5
Round to the nearest integer
Multiply by 5
I'll leav
1 - 100 of 139 matches
Mail list logo