Hi,
Can someone help me on how i could generate or create a pdf file an fill contents
Rgds
Krushna Kumar
I'm having a wierd problem with mySQL query.
$Query = "SELECT UCASE(Company), Icons, ID, LogoD FROM feComps";
returns right amount of rows, but field Company is empty.
$Query = "SELECT Company, Icons, ID, LogoD FROM feComps.";
works fine.
First query works great when I run it
I'm still running 4.0.5 because that is what my web host is running.
Methinks there may be a problem here.
In the meantime I've tried storing the dates in the array in the original
format in lieu of the fully converted format.
I then reformat the original from the array as required for each page
Hi Justin,
That man page is pretty descriptive and contains many examples. It's
sorta like a tutorial :) If there is information you (or anyone) feels is
missing, please say so and it'll be looked into and perhaps added.
Regards,
Philip Olson
On Fri, 2 Nov 2001, Justin French wrote:
> Ummm
Matt,
It sounds like you have a process where the user does this:
page1.php ->
fills out and submits form ->
page2.php which builds a frameset ->
menu.php and editor.php as the frames, you want menu.php to
know what the submitted form values were.
If you've got sessions go
Great. :)
I've got PHP 4.0.6 on linux. You?
I think you should break the dates manually, it would be the most sure
way to do it.
Niklas
-Original Message-
From: John Clarke [mailto:[EMAIL PROTECTED]]
Sent: 2. marraskuuta 2001 9:11
To: [EMAIL PROTECTED]
Subject: Re: [PHP] year 2002 s
On Fri, 2 Nov 2001 15:09, Adrian D'Costa wrote:
> On Thu, 1 Nov 2001, Jason Murray wrote:
> > > > You'll also need to compile php as a standalone, and put as
> > > > the first line of your php script
> > > >
> > > > #!/path/to/php -q
> > >
> > > What if we need both version??
> >
> > There's noth
On Thu, 1 Nov 2001, Jason Murray wrote:
> > > You'll also need to compile php as a standalone, and put as
> > > the first line of your php script
> > >
> > > #!/path/to/php -q
> >
> > What if we need both version??
>
> There's nothing stopping you running both.
How do you compile it for both
Even more funny...
I cut and pasted your code and I got;
Wed Dec 12 2001
Sat Mar 1 2003
2001-12-12
2001-03-01
What version of Php and OS are you using??
John
"Niklas lampén" <[EMAIL PROTECTED]> wrote in message
000301c16369$6817a320$ba93c5c3@Niklas">news:000301c16369$6817a320$ba93c5c3@Niklas.
Funny, I quickly tried this:
";
print $date2."";
print date("Y-m-d", strtotime($date1))."";
print date("Y-m-d", strtotime($date2))."";
?>
And the result was this:
"
Wed Dec 12 2001
Sat Mar 1 2003
2001-12-12
2003-03-01
"
Niklas
-Original Message-
From: John Clarke [mailto:[EMAIL PROT
I have this problem with Php 4.0.5 on both Win ME and Linus boxes, where my
year 2002 dates are converted back to 2001 when formating with 'strtotime'.
First I post the following variables from an html page to a php page
$date1='12/12/2001'
$date2='15/01/2002'
I then use date("D M j Y", strtot
U, I now how to use the manual, I was after a *tutorial*.
Liz posted a VERY good link/tutorial though -- many thanks!!!
Justin
Jack Dempsey wrote:
>
> http://www.php.net/manual/en/language.types.array.php
>
> start with that
>
> -Original Message-
> From: Justin French [mailto
Regarding your mysql_insert_id() function:
I believe that it works on a connection by connection basis. Therefore, if
you execute an insert, and then call that function, you are guarenteed to
have the correct ID. Look up the LAST_INSERT_ID() function in the MySQL
manual on www.mysql.com for
Just a thought...
Check out crescent internet toolkit by Progress Software. It has a control
for VB that lets you post data to a script, rather than relying on an HTML
form...
Can you just use a query string? you may have to code your own urlencode()
function in VB, but that may be an optio
http://www.php.net/manual/en/language.types.array.php
start with that
-Original Message-
From: Justin French [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 02, 2001 12:33 AM
To: php
Subject: [PHP] simple array tutorial wanted
Hi all,
I really want to get me head around arrays, becu
http://www.onlamp.com/pub/a/php/2001/06/07/php_foundations.html
"Justin French" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi all,
>
> I really want to get me head around arrays, becuase
> I KNOW there's a better way to do some of the stuff
> i'm doing
Hi all,
I really want to get me head around arrays, becuase
I KNOW there's a better way to do some of the stuff
i'm doing right now.
I could mess with stuff for a few hours and probably
get it, but i'd rather have a decent tutorial if
anyone knows of one...
Thanks,
Justin French
--
PHP
I am uploading .Jpegs and GIFS but they end up being all messed up when
I try to view them after a file transfer.
However, txt file transfers work ok. Someone told me this is because
images need to be transfered as binary files, not ascii files (like
txt).
Is this true, and if so, how do I corr
sure there is, get it at php.net goto download section and choose the cgi
version. there you are. php.exe
--
Chris Lee
[EMAIL PROTECTED]
"John A. Grant" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I've installed ActivePerl, which gives me a way to r
put the mysql_db_query in an if() statement, more likley then not your
select statement isnt returning any results.
--
Chris Lee
[EMAIL PROTECTED]
"Sc" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi;
>
> i keep getting an error of: Warning: Supplied
date() shoudl give you the time in your timezone, gmdate() should give you
the time in the GMT timezone. I would check your server and make sure the
timezone is correctly set.
--
Chris Lee
[EMAIL PROTECTED]
"Steve Tsai" <[EMAIL PROTECTED]> wrote in message news:none...
> For reference:
>
I dont worry about it. why are you?
--
Chris Lee
[EMAIL PROTECTED]
"Luis Corea" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hello,
> I want to Know how can I save information on a Data Bse that will be
access
> for many persons at the same time.
>
you dont need any unctions in php todo this. you need to install openssl and
compile it into apache.
port 80 = http (non-secure)
port 443 = https (secure)
http://www.somesite.com/index.php unsecure
https://www.somesite.com/index.php same page, now everything is secure
have fun.
--
Chris Lee
Actually I have had a couple people respond about the code order that I
wrote, so I am going to try and see if that works.
You're right I do store the username/passwd in the session, and I do encrypt
both the session password and the database password. I am trying to make
this very secure :) Yo
why? if your thinking the db may give the wrong answer, postgres does a bery
good job of this. if your super worried, well use mysql, they lock the table
when a field is being inserted, updated, or deleted. if you want todo this
for some other strange reason, do it the easy way.
--
Chris Lee
javascript
javascript = client side
php = server side
unless you want to print on a printer on the server, your goign to need to
use javascript. not only are you asking in the wrong forum, real answer is
'I dont know' sorry cant help ya bud.
--
Chris Lee
[EMAIL PROTECTED]
"Luz Lopez" <[
if your using mod_auth then mod_auth will be called not mod_php. if you want
mod_php to be called, dont use .htaccess (they are apart of mod_auth).
sorry...
--
Chris Lee
[EMAIL PROTECTED]
"Zhu George-Czz010" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
destroying session vars never worked for me either. it hasnt for quite some
time. now why its important you destoy them other then cleanup, I dont know
your reasons. Im going to guess.
- you store username/passwd in sessions and because httpd runs as nobody,
anyone on the server can read them. an
this '/' method looks kinda neet, but some vars get messed, ie $PHP_SELF,
just be carefull using it.
Chris Lee
[EMAIL PROTECTED]
"OòkóöårzòËèkó" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Sveiki, php-general,
>
> I have a file index.php . I
Rodrigo Peres wrote:
> Hi list,
>
> I'm in a big trouble. I'm brazilian, so I've made a script to clean up the
> special caracters from our language in order to not mess up my publisher,
> but this script don't work in Macintosh (macos 9.1, IE 5, all in american
> english).
>
> This is my code
Sorry! I had a senior moment.! I have it.
--
Gaylen
[EMAIL PROTECTED]
Home http://www.gaylenandmargie.com
PHP KISGB v2.21 Guestbook http://64.133.20.82/phpwebsite
"Meir Kriheli" <[EMAIL PROTECTED]> wrote in message
20011101233857.HRNC958.fep2@there">news:20011101233857.HRNC958.fep2@there...
> O
session_destroy() works fine for me - it deletes the session file after the
script finishes. I have never used the session_name() function. I am
wondering if it is possible that the server is confused about what session
needs to be destroyed because of the way session_name() is being used
here
7.2 and I compiled PHP 4.0.6 myself. When I run phpinfo, it shows the
configuration file path = /usr/local/lib/php.ini . there is no php.ini in
the file.
--
Gaylen
[EMAIL PROTECTED]
Home http://www.gaylenandmargie.com
PHP KISGB v2.21 Guestbook http://64.133.20.82/phpwebsite
"Jim Lucas" <[EMAIL
On Friday 02 November 2001 01:16, Gaylen Fraley wrote:
> Ok. I've installed php on linux and all is well! Been running for weeks
> now. Problem is, I never had to set up my php.ini . Got curious and am
> wondering where it is. Locate php.ini yields one in the pear/tests
> directory, but that'
The simplest way is to use sessions to hold the values, or you can loop
through the post vars and add them to the menu.php line like
src=menu.php?var1=&var2=xxx... which will get messy if you have a
lot of fields.
Tom
At 09:08 AM 2/11/01, Matt Fair wrote:
>I have 2 pages page1.php and
Sveiki, php-general,
I have a file index.php . I include file menu.php in index.php ( I
write include('menu.php'); in index.php ) . I want to do like this:
index.php/menu.php . That means, that index.php has to include menu.php
index.php/second.php . That means, that index.php has to incl
most of my installs, Redhat linux 7.0 and 7.1, have placed the php.ini file
in the /etc/php.ini location. what version of linux are you using?
Jim
- Original Message -
From: "Gaylen Fraley" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, November 01, 2001 3:16 PM
Subject: [P
Ok. I've installed php on linux and all is well! Been running for weeks
now. Problem is, I never had to set up my php.ini . Got curious and am
wondering where it is. Locate php.ini yields one in the pear/tests
directory, but that's not it. Suggestions?
--
Gaylen
[EMAIL PROTECTED]
Home http:
try using the $GLOBALS[variable_name] array.
Jim
- Original Message -
From: "Matt Fair" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, November 01, 2001 3:08 PM
Subject: [PHP] submitting form to a page with frames
> I have 2 pages page1.php and page2.php. I want to submi
I have 2 pages page1.php and page2.php. I want to submit the form and
its values to page2.php. page2.php has frames:
How can I get the variables that were submitted from page1.php into the
menuFrame? When I do this it doesn't get any php variables, but if I
take it out of the frame it wo
Unusual that I didnt even get one response, so I shall try again! :)
Ok why does this not work?
session_name(adminid);
session_start();
unset($sess);
session_unset();
session_destroy();
session_write_close();
$sess = 0;
etc etc etc etc etc etc..
After all that is executed I take a look at the
Somewhere on my travels around the many PHP/script sites, I'm sure that at one time I
noticed a date-display
utility. I cannot find it again. Please would someone point the way...
What I'm looking for:
displays a form with a variety of date/time fields, user enters a date/time into
various fiel
> I am trying to ad extra headers to email's I am sending through php. I
> want to ad Reply-To: and Bounse-To: addresses. But when add them useing
> the forth feild of the mail() funtion.
> mail($recipient,$msubject,$message,"Reply-To: $sender");
> but for some reason when I send this e-mail i
SELECT Main.title, Replies.date FROM (Main LEFT JOIN Replies ON Main.id
= Replies.main_id) ORDER BY Replies.date
That should do it.
Mike
BlueBytes wrote:
>http://paa.fragland.net/hosted/myquestion/
>
>here you find my question, thx
>
--
PHP General Mailing List (http://www.php.net/)
To un
Sounds like $HTTP_POST_VARS is not a valid array (to check do
if(is_array($HTTP_POST_VARS)) { print "YUP"; } else { print "NOPE"; })
Check to make sure that track_vars is turned on in the PHP.ini.
"Lic. Carlos A. Triana Torres" <[EMAIL PROTECTED]> wrote in message
005901c16324$1cf252e0$0301a8c0
http://paa.fragland.net/hosted/myquestion/
here you find my question, thx
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
> I have mssql extensions working with the .dll in the extensions
> directory of my PHP4 folder.
>
> I am trying to get curl to work but when I try to run php it says that
> php_curl.dll was not found, But it is in the same dir as the mssql and
> mssql is working great.
I've never used curl, but
Hello,
I have mssql extensions working with the .dll in the extensions
directory of my PHP4 folder.
I am trying to get curl to work but when I try to run php it says that
php_curl.dll was not found, But it is in the same dir as the mssql and
mssql is working great.
Any IDEAS?
Thanks
Bra
> -Original Message-
> From: Lic. Carlos A. Triana Torres [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, November 01, 2001 4:25 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Help with an error I can't find!
>
>
> Can some one help fix this error?
>
> Warning: Variable passed to each() is n
hi,
i know it is very ungrateful but i am trying to stop
my subscription to this list. I cannot confirm the
unsubscribe because my ISP changes my email on the go
and so the confirmation mail is not accepted, even if
i try to mess with the sender address.
The php-general-owner@ does not seem t
Can some one help fix this error?
Warning: Variable passed to each() is not an array or object in
/usr/local/.test.php on line 14
Here is the line:
while(list ($key, $mid) = each ($HTTP_POST_VARS)) {
--
Lic. Carlos A. Triana Torres.
Webmaster. Centro de Informacion y Gestion Tecnologica
Sa
Hi list,
I'm in a big trouble. I'm brazilian, so I've made a script to clean up the
special caracters from our language in order to not mess up my publisher,
but this script don't work in Macintosh (macos 9.1, IE 5, all in american
english).
This is my code
What happens is if i try for examp
Hello,
I am trying to ad extra headers to email's I am sending through php. I
want to ad Reply-To: and Bounse-To: addresses. But when add them useing
the forth feild of the mail() funtion.
mail($recipient,$msubject,$message,"Reply-To: $sender");
but for some reason when I send this e-mail it
Homepage:
http://www.phpinsider.com/php/code/Smarty/
Version 1.4.6
-
- fixed bug with {assign ...} when passing an empty value. (Monte)
- add more warning message fixes. (Monte, Tara Johnson)
- documentation updates. (Monte)
- update fetch function to give proper warning when fetching
[EMAIL PROTECTED] (Kraa De Simon) wrote:
> Hello,
>
> I want to send a weekly report to a mailinglist.
>
> I would like to automate the process and use a cron job to execute 'php.exe
> weekly.php' or something.
>
> I could gather the information, put it in a string and pass the string to
Probably a permissions problem. Can't open a file if you don't have
permission to do so.
Mike
"Marek Wysmulek" <[EMAIL PROTECTED]> wrote in message
03b201c16308$6b6d54e0$0201a8c0@dom">news:03b201c16308$6b6d54e0$0201a8c0@dom...
> Hi all.
>
> I have searched almost everything on the net regardin
Hello,
I want to send a weekly report to a mailinglist.
I would like to automate the process and use a cron job to execute 'php.exe
weekly.php' or something.
I could gather the information, put it in a string and pass the string to
mail().
But...is it also possible to "grab" the html output
Valentin,
first, let us know exactly how you tested.
second, i think it may have to do with the way the direct extension is
written. the direct extension does batch fetches every time it does a
physical read of the database. if all you're trying to get is a value from
the first row in a m
Check out UltraEdit for Windows it's great. Text highlighting for
around 10 programming languages, auto-tabbing for brackets, all kinda
things. www.ultraedit.com it's even got built in FTP functions so you can
open a file from a server, and when you save it automatically uploads.
great prog
Hi all.
I have searched almost everything on the net regarding php and windows
focusing on one thing.
How to include to php script started on apache on w2k external sript placed
on some URL.
Source of test script (http://mylocalhost/marek.php)
http://hermes.com.pl/test.php");
?>
and answer viewe
if (!isset ($PHP_AUTH_USER)) {
header ("Location: http://mydomain.com/mypage";);
}
would probably do the trick
Cheers
Jon
-Original Message-
From: Zhu George-CZZ010 [mailto:[EMAIL PROTECTED]]
Sent: 01 November 2001 17:51
To: Jon Haworth; [EMAIL PROTECTED]
Subject: RE: [PHP] Is
I use Nedit, which for me works well. It's no (x)emacs, but it also
doesn't have a vertical learning "curve", you can easily just start
working in it with little chance of shooting your foot clean off. It's
got syntax highlighting for PHP and other languages, it's small-ish
(doesn't take 30 seco
Thanks for the suggestion. I think I didn't explain it clearly, what I really want to
do is: whenever someone types any of the secured URL (it might be any secured php page
or other files), how can we configure the server to automatically redirect to a
customized PHP login page instead of popp
Yep. Design your own form, and feed the data from that to $PHP_AUTH_USER and
$PHP_AUTH_PW. Don't send the header() for the 403.
Cheers
Jon
-Original Message-
From: Zhu George-CZZ010 [mailto:[EMAIL PROTECTED]]
Sent: 01 November 2001 17:18
To: [EMAIL PROTECTED]
Subject: [PHP] Is there a w
Hello everyone!
Here i'm not going to ask community about smth.
I would like to present results of one test speed.
i perform the same query to MsSQL directly (using mssql_...) and through
ODBC (odbc_...)
In first case (direct connection) php works SLOWER than through ODBC.
My server is on NT 5.1
If we are using the default Apache/PHP authentication, it will always pop up the
default login window for login user ID /password. Is there a method to redirect to a
customized PHP login page instead of the default pop up window?
Thanks ahead.
--
PHP General Mailing List (http://www.ph
Mike,
> We have PHP installed as an ISAP module on our W2K IIS5 server and
> its operational with no problems - phpinfo() runs just fine.
>
> But - When I uncomment the php_mssql.dll extension in php.ini I get an error
> when PHP starts up saying it cannot find the .dll file.
>
> The extension di
Check the list archives, this topic gets covered almost weekly.
But, for Linux (and various others):
- Visual SlickEdit is awesome, but commercial (the cost is absolutely worth
it, I'm extremely satisfied). It has function name completion, parameter
completion (for PHP and many other langs), and
> -Original Message-
> From: Daniel Bergqvist [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, November 01, 2001 9:57 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Problem with fopen() when php is in safe_mode
>
>
> if($dir = @opendir("/home/d5051/public_html/test")){
You're getting fi
Hi!
I'm having trouble with a script who should attach files to a mail. The script
looks like this:
from = $email;
$mail -> to = $to_email;
$mail -> subject = "Testing";
$mail -> body = "Testing";
if($dir = @opendir("/home/d5051/public_html/test")){
wh
Thank you Jim, Mike, CC and Philip.
Geez! I thought I did a search, but maybe I imagined that...
LOL
Kirk
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail:
Hey All!
I hit a snag yesterday on something I've done a million times before.
Perhaps one of you might be able to lend a hand.
Situation:
I use a Dell Latitude laptop for development. It's got pretty much
everything I need for my day to day needs. NT Workstation, mysql, mssql,
EditPlus (http://www.editplus.com) on windows
HTML-Kit (http://www.chami.com/html-kit/)
- Original Message -
From: "Eugene Mah" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, November 01, 2001 3:32 PM
Subject: Re: [PHP] Text Editor with Highlighting
> At 10:02 PM 11/01/2001
Wow, there are some long and curly ways to use RegExp-s aren't there? I'm not very
good at them (and I hear that
they can be expensively inefficient) so I tend to look elsewhere.
Check out pathinfo -- Returns information about a file path
array pathinfo (string path)
pathinfo() returns an associ
At 10:02 PM 11/01/2001 +0100, TD - Sales International Holland B.V. wrote:
>Hey there,
>
>I looked on the site for this but couldn't find anything about it. I'd like a
>list of your favorite text editors (preferable for Linux/XFree) with
>highlighting.
emacs!
:)
Eugene
--
To put my contact inf
> -Original Message-
> From: Jeff Lewis [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, November 01, 2001 7:21 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Problem writing to file, can't find the error
>
>
> I have this code in my program but I fail to find the error,
> does anyone see it
> -Original Message-
> From: Ryan Fischer [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, November 01, 2001 5:37 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Problem with date_format() in indirect MySQL query...
>
>
> $res = $this->query("select *, date_format(thedate, 'M d, Y') as dt,
> da
For Windows, hands down Homesite is the best
Td - Sales International Holland B.V. wrote:
> Hey there,
>
> I looked on the site for this but couldn't find anything about it. I'd like a
> list of your favorite text editors (preferable for Linux/XFree) with
> highlighting. I'm using beaver now,
Hey there,
I looked on the site for this but couldn't find anything about it. I'd like a
list of your favorite text editors (preferable for Linux/XFree) with
highlighting. I'm using beaver now, I tried cooledit but it's not me... too
much functions and looks like it came from an old 386 :-). I
Hey there,
part of my old question can be ignored since I just found out (stupid.)
there can be only 1 auto_increment column in a table and by testing with PHP
I also found out the position of the column doesn't matter nor it's name.
I'd still like an answer on the rest tho'
regards
--
"Stefan Rusterholz" <[EMAIL PROTECTED]> wrote in message
001001c162af$1fd842f0$3c01a8c0@quasimodo">news:001001c162af$1fd842f0$3c01a8c0@quasimodo...
[...]
> As you see, for PHP is some HTML-Code in the php-code-zone. To avoid this,
> do it that way:
> function somefunc($text,$n)
> {
>
php-general Digest 1 Nov 2001 13:28:22 - Issue 969
Topics (messages 73103 through 73150):
Re: Text DB's & bbs lists
73103 by: Jack Dempsey
paypal instant notification
73104 by: Sondra Russell
73110 by: CC Zona
text into web db interface
73105 by: AAustin
Hey list, i'm new to php so bare with me...
got some questions on mysql commands. I'd like to know how the
mysql_insert_id() function works exactly.
First of all how reliable is it? What happens this happens:
Table: (ID int unsigned primary key auto_increment, Stuff text, MoreStuff
text)
(my s
I have this code in my program but I fail to find the error, does anyone see it after
a quick glance?
"Tommy Gildseth" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> "Arcadius A." <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > How to detect the language setting of the the visitor's PC in order to
> > redirect him to a s
"Arcadius A." <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> HEllo !
> I have a website designed in several languages (En , Fr , Cz)
> My question is :
> How to detect the language setting of the the visitor's PC in order to
> redirect him to a specified
On Thursday 01 November 2001 10:39, Galkov Vladimir wrote:
> Need to remove all "../" "/.." from user inputing string to prevent
> him walking and creating files&directories where I don't whant see
> them/him...
>
> The string:
>
> $path =
> eregi_replace('([..]{2,})|([./]{2})|([../]{3,})|([/
> Whooops,
>
> Pasted wrong line. This should do it:
>
> $string = preg_replace("/(\.*\/)+(.*?\.*\/)?/s", "", $string);
Gah... Not.. enough... caffeine: Modification:
$string = preg_replace("/(\.*\/)+(.*?\.*\/)?(\.*)?/s", "", $string);
--
PHP General Mailing List (http://www.php.net/)
To un
Whooops,
Pasted wrong line. This should do it:
$string = preg_replace("/(\.*\/)+(.*?\.*\/)?/s", "", $string);
James
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrat
Hello! :)
First off, please respond to me directly as I am not subscribed to the
list. Thanks! :)
Now then, I have a quick question I'm hoping someone can help me with.
I have this class method:
function query($sql, $type = 'obj')
{
if(!$result = @mysql_query($this->masl($sql))){
ec
Hello,
"Galkov Vladimir" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Need to remove all "../" "/.." from user inputing string to prevent him
> walking and creating files&directories where I don't whant see them/him...
>
> The string:
>
> $path =
> eregi
Ummm... Like that where's me PHP editor. will let you know how it goes
after I have had breakfast.
Thanks
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-ma
Yes you can...
Ifif I rightly understand you only well... you whant submit
information without clicking submit button? .. well then you have to imagine
any suported event or use meta tag.. One problrm I don't use VB
script
Way one... ( this is example of 100% stupid code ... only
Like the "heredoc" thanx for that...
The way that I am using VB will not support the VBscript option
unfortunately but a good suggestion.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact t
Well seeing as Monday of this week was the 29th of October is this week the
first of November or the last of October? I think the United Nations set out
a specification for determining the week number of the year but not sure if
they have a spec for the week of the month.
Regards
Jon
--
Jon Far
Hello,
I would like suggestions about the best PHP solution, and possibly
some code examples, to set up a web site which:
allows to its managers to add articles through the web
supports threaded discussions on such articles
includes User forum on any topic
has internal (always
Please find attached a very good date class.
I can't remeber where I got it from and who wrote it but it's pretty good.
M:
> --
> > Is there any way to find out the week of the month. Today is in
> the first
> > week of month.
> >
> > That is, a function like weekofmonth() which displays 1 toda
Must have been a missing semi-colon it works now. Thanks.
<%
echo $Action;
if ($Action == "Submit")
{ echo " Process form"; }
else
{ echo " Do Nothing"; }
%>
Cc Zona wrote:
> In article <[EMAIL PROTECTED]>,
> [EMAIL PROTECTED] (Phantom) wrote:
>
> > In PHP I have tried
> >
> > i
In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] (Arf) wrote:
> $form_block = "
>
>
>
> User Name:
> SIZE=30>
>
> Your E-Mail Address:
> SIZE=30>
>
> Message/Problem:
> WRAP=virtual>$message
>
>
>
>
>
>
>
> ";
FWIW, you can save yourself all that PITA backslashing by using hered
Ok why does this not work?
session_name(adminid);
session_start();
unset($sess);
session_unset();
session_destroy();
session_write_close();
$sess = 0;
etc etc etc etc etc etc..
After all that is executed I take a look at the session file and what do I
see? All the session variables still there
1 - 100 of 109 matches
Mail list logo