If you've installed php as a module, set it to "0" if as a cgi, "1"
"Ryan Conover" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> What do I set cgi_redirect var in the php.ini if I install php 4.2.1 under
> win2k/iis5.
>
> Ryan Conover
> [EMAIL PROTECTED]
> [E
This is what you must do.
Copy Part
^^
copy php4ts.dll to c:\winnt\system32\
copy php4sapi.dll to c:\winnt\system32\
if you want any extensions, copy them to to c:\winnt\system32\
configuration part
^^^
in php.ini
¨
edit doc_root like : c:/Inetpub/wwwroot
ed
Read this section of the manual...
http://www.php.net/manual/en/features.file-upload.php
Assuming your form input looks like this:
then you'll want to use:
$_FILES['userfile']['name']
The original name of the file on the client machine.
$_FILES['userfile']['type']
The mime type of the file,
Thanks,
That seems to work.
-Original Message-
From: Miguel Cruz [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 22, 2002 2:33 PM
To: [EMAIL PROTECTED]
Subject: RE: [PHP] Using the pdf tags.
That's why I suggested using PDF_save and PDF_restore.
PDF_save saves all sorts of attributes
Has anyone devised a good solution for handling large blocks of text when
creating pdfs?
We want to convert otherwise web displayed reports into text keeping in
mind that they span multiple pages (10-1000), and will contain control
characters (\n, or arbitrary indention tags - ie, it's not just
I am about ready to use the hammer. I know almost nill about IIS. I do
know for sure that the PHP interpretter is working. Does anybody who knows
about IIS have any advice for me to test if IIS is really working?
-frustrated josh
"Sqlcoders.Com Programming Dept" <[EMAIL PROTECTED]>:
> Ho hum
And this is why I'm not an expert!
I have a counter script on my page now that uses a flatfile to store
IP's, but it also stores a timestamp. When someone visits the page, the
current time is compared to the stored timestamp for that IP + whatever
timeout period I set. If it's less, then that
Another consdieration with using files written to disk
automatically. if there's any chance that the user could
get some arbitrary value written to disk, then access the
file thru the web-browser, it's a HUGE security risk.
aside from all the file-locking and mucking about with
permissions and m
Well done that man!
"Rasmus Lerdorf" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I think you guys are making this way more complicated than it needs to be.
> Anytime you start talking about locking files, you need to apply a huge
> reality check to yoursel
I see some real genious in this solution. This would be a great function
addition to PHP, anybody?
Warren Vail
Tools, Metrics & Quality Processes
(415) 667-7814
Pager (877) 774-9891
215 Fremont 02-658
-Original Message-
From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, M
I even tried adding the mime type for php (application/x-httpd-php). Argh.
Thanks for all the help that you guys have provided thus far.
-josh
> Hey all,
> I have a problem, that I can't seem to find the answer to. I have
> checked the archives and the website, but to no avail. I have ins
file_append($file, $text); ??
---
Scott Hurring
Systems Programmer
EAC Corporation
[EMAIL PROTECTED]
Voice: 201-462-2149
Fax: 201-288-1515
> -Original Message-
> From: Vail, Warren [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, May 22, 2002 3:46 PM
> To: 'Rasmus Lerdorf'; 1LT John W. Hol
Hi all,
I' m searching how to write in a file on a new line each times whith
fputs().
Because i want read the file whith file() and so ,have one line per indice
in a table.
So i need to write on a new line each time.
TIA.
arnaud.
--
PHP General Mailing List (http://www.php.n
How about this:
fputs($fic,"on a new line\n");
This works in c.
> Hi all,
> I' m searching how to write in a file on a new line each times whith
> fputs().
> Because i want read the file whith file() and so ,have one line per indice
> in a table.
> So i need to write on a new line each time.
>
Use \n for newline. \r\n for Windows.
fputs($fp,"value\n");
---John Holmes...
- Original Message -
From: "arnaud gonzales" <[EMAIL PROTECTED]>
To: "Php-General" <[EMAIL PROTECTED]>
Sent: Wednesday, May 22, 2002 3:56 PM
Subject: [PHP] fputs() pblm how write on a new line each time ?
> H
Hi,
I'm getting errors when trying to install PHP 4.2.1 on Solaris 2.8 with as
a Dynamic module and as a Static module.
The error for the Static Module creation is:
configure: error: Invalid Apache directory - unable to find httpd.h under
/usr/l
ocal/apache/include
The thing is, it does exist
Someone saw the value of turning the function you cite into
error_log($msg, $type, $dest, $hdr) because it encapsulated a lot of
features and approaches into one function.
why not functions to initialize/reset polls, log votes, produce counts of
votes, and stratify the vote choices (perhaps retu
Here are the errors I am recieving:
Warning: fopen("Resource id #4","wb") - Permission denied in
/path/to/asciiartist.php on line 295
Warning: Supplied argument is not a valid File-Handle resource in
/path/to/asciiartist.php on line 296
Warning: Supplied argument is not a valid File-Handle resou
I'd check the owner of the directory you are trying to write to. It needs to be
owned by the same user as the httpd process runs as.
James
-Original Message-
From: Jas [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 22, 2002 4:18 PM
To: [EMAIL PROTECTED]
Subject: [PHP] tmpfile() errors?
Update, I can see the errors if I make a fatal error. but not if it's a
parse error. in the php.ini I'm using the default error_reporting:
E_ALL & ~E_NOTICE
I sill have no explanation as to why.
On Wed, 2002-05-22 at 11:24, Jeff Bearer wrote:
> I have the following in my php.ini file:
>
> dis
You're not even trying to open a file. You're trying to open a Resource,
which makes me think that fopen() is being called twice or something. You
obviously have something very wrong.
Can you show the code around these lines where you're trying to open the
file? All of the errors are because of t
Hi Johan,
The globals that PHP sets up have changed since since PHP 4.2.x
See: http://www.php.net/release_4_2_0.php
You can turn on register_globals in the php.ini file but it is
recommended to use the more secure $_GET['test'] type variables.
Best Regards,
Patrick Lynch.
Optip Ltd, Internet &
On Thursday 23 May 2002 04:46, Jeff Bearer wrote:
> Update, I can see the errors if I make a fatal error. but not if it's a
> parse error. in the php.ini I'm using the default error_reporting:
> E_ALL & ~E_NOTICE
>
> I sill have no explanation as to why.
The error reporting is for catching run-t
On Thursday 23 May 2002 03:03, Seth Northrop wrote:
> Has anyone devised a good solution for handling large blocks of text when
> creating pdfs?
>
> We want to convert otherwise web displayed reports into text keeping in
> mind that they span multiple pages (10-1000), and will contain control
> ch
You're right- this is getting interesting ;)
http://www.packetfactory.net/libnet/manual/4.html#s4.1.5
Unless I'm mistaken, you don't need to actually hijack the socket- you merely
need to write to the network. Check out section 3.1 of RFC 793. There is
source and destination port- that is how
Um, it hasn't been proven as the best algorithm. It merely hasn't been
broken... yet. Actually, many people think IDEA is better. According to Bruce
Schneier (creator of blowfish and twofish), "...it is the best and most
secure block algorithm available to the public at this time..." (Applied
Ah, when was twofish broken??? That's news to me if it's true.
http://www.counterpane.com/twofish.html
http://www.counterpane.com/about-twofish.html
On Wednesday 22 May 2002 00:43 am, John Horton wrote:
> Hi,
> I believe that twofish has been successfully broken, so use blowfish
> instead.
Ah it would be a good idea to use the hash as a checksum- especially if you
encrypt in ECB
On Wednesday 22 May 2002 01:30 am, Jimmy Lantz wrote:
> >I believe that twofish has been successfully broken, so use blowfish
> >instead. Typically, for encrypting files you will use an algorithm like
> >
I have an array containing data from a search engine index. The array contains only
two values.. "word" and "pages" which will be stored in a MySQL table.
$index[$i]['word'] //contains the keyword.
$index[$i]['pages'] // contains a comma delimited list of pages the keyword exists on.
If you
I am trying to define a function that is *like* the standard PHP "include()"
function but is slightly different, but I am running into trouble with
varible scoping. The idea is this:
I want to mimic "include()" in a way such that when I include a file, it can
then include files relative to itsel
Ok I am going to put the entire class here for review... I am not the
original author, simply trying to get it to work because I think its pretty
neat: Here is the file, asciiartist.php:
If you scroll down the page I have commented where the error occurs using
* ERRORS *
* @version 1.1 2
Nevermind. Three hours after embarking on my voyage to insanity I finally
figured it out. If I type cast the variables as strings the error
dissapears. I've never had this problem before though.. so its still a bit
of a mystery since the data stored in the variables are most certainly
strings a
hi ppl i am learning PHP and was wondering if there is a good book or web
site that i could learn ALOT from. Not PHP.net coz the documentation is
just too complex there for a beginner.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Greetings people,
Special greetings to all of you who have helped me, sorry I have not written
your names but this list is so helpful that if I wrote all the names down
you would have to scroll 2 pages I guess.
Anyway, I am changing residence and computers soon, I once read a few days
back on the
Hey,
Welcome to PHP.
I too am a newbie, I agree, php.net is too damn complex for a newbie, I
would suggest starting off on webmonkey as its really easy and has some
great examples for the beginner, then you can try to download the PHP manual
from php.net.
Nearly everyone I spoke to swears by the
How could I have a function create variables that can be used in other
functions?
_Example_:
makevars() {
list($md5,$pusername,$pproject,$pfile) = explode(":",$authok);
$user = $pusername;
$project = $pproject;
$file = $pfile;
}
function display () {
makevars();
echo "$user,$project,$file";
}
I
I am having trouble getting Apache to process php files through the PHP
interpreter. When I view a *.php file in a browser, I see my PHP source.
I am running Apache 1.3.20 on a RAQ4. The web server was installed before I
became involved in this project.
I have successfully installed PHP 4.1.2 a
Hi, I have a form using the post method that outputs a dynamic number of
fields each time with the same name but different values - this is required.
For example ...
filename[]
filename[]
filename[]
filename[]
On the next page I try to access the array using ...
for($i=0; $ihttp://www.php.net/)
The manual is excellent, once you ask the right question, or know where to
look. It is a bit daunting as a newbie resource. However, the search
engine does help in finding a specific function.
The best way to get to that point is to work on some tutorials (even for
things you don't need immedia
"John Kelly" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi, I have a form using the post method that outputs a dynamic number of
> fields each time with the same name but different values - this is
required.
> For example ...
>
> filename[]
> filename[]
> f
Sqlcoders.com Dynamic data driven web solutions
- Original Message -
From: "David Duong" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: May 22 2002 04:21 PM
Subject: [PHP] Making varibles (more than one) with a function.
> I am aware that return can return strings but is their a set
Too Many HOURS!!!
Too Little M&Ms!!
Forgot... Brain... Ouch!
Someone please remind me, what the hell the syntax for the short hand of the PHP "IF
THEN" statement is where multiple variables need to be checked
if($foo == "Panda" and $bar == "bear){
doWhatever();
}
Thanks gang!
- Shane
--
PHP
"John Kelly" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> "John Kelly" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > Hi, I have a form using the post method that outputs a dynamic number of
> > fields each time with
On Wed, 22 May 2002, Shane wrote:
> Too Many HOURS!!!
> Too Little M&Ms!!
> Forgot... Brain... Ouch!
>
> Someone please remind me, what the hell the syntax for the short hand of the PHP "IF
>THEN" statement is where multiple variables need to be checked
>
> if($foo == "Panda" and $bar == "bear
Hi there!,
I'm looking for a way to loop through the symbol table.
In other words I want to be able to loop through every variable defined in
the local scope.
I've looked through the manual, but either I couldn't find a function which
can do this or I wasn't looking in the right place.
If anyon
To help clear things up for a few:
> The globals that PHP sets up have changed since since PHP 4.2.x
> See: http://www.php.net/release_4_2_0.php
Note, this is only the default value for the fully
configurable PHP directive register_globals. Please
read:
http://www.php.net/manual/en/securit
Thanks gang
echo("mm".$moreChocolate)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
See:
http://www.php.net/get_defined_vars
Regards,
Philip Olson
On Thu, 23 May 2002, William_dw -- Sqlcoders wrote:
> Hi there!,
> I'm looking for a way to loop through the symbol table.
>
> In other words I want to be able to loop through every variable defined in
> the local scope.
>
>
Hi,
I am writing an Email blast program. (100 emails at a time). I believe it
will take quiet some time. Whether there is any time limit set internally
for executing script ?
Last time ASP had given some problem - used to come out saying Execution
time exceeds - I want know what about PHP ?
http://www.php.net/manual/en/function.set-time-limit.php
Something many people seem to overlook is this phrase in that page:
"When called, *set_time_limit()* restarts the timeout counter from zero.
In other words, if the timeout is the default 30 seconds, and 25 seconds
into script execution a
cant seem to get it to work
say this is the string
"
"
replace with "hello".
problem is, i cant even get other functions to get the position of the
string.
No problems finding or matching replacing
" "
or
""
but together no luck. strstr,
can we have a looky at ur actual code for this? might help us to let you
know where exactly the problem is with ur code...
-Original Message-
From: Aaron [mailto:[EMAIL PROTECTED]]
Sent: Thursday, 23 May 2002 7:41 PM
To: [EMAIL PROTECTED]
Subject: [PHP] multi line string replace
cant
Hi,
I have one file with following format
No. | Name | Email | status
1 | Manisha | [EMAIL PROTECTED] | Pending
2 | Neha | [EMAIL PROTECTED] | Reject
3 | Aish | [EMAIL PROTECTED] | Pending
...
I want to update status change against that line. e.g For sr no 1 - I want
to change the status
Get a database working! That's definitely worth investing some time in -
apart from the obvious speed avdantages, you'd learn a lot.
About your question, AFAIK you can only do it by reading from one file
and writing to a temp file, then moving the temp over the original -
pretty clumsy, if you
It is not possible to get the database as client is not ready for that
(Can't help it - you know).
I am thinking - I will take the data in an array first - change it and
flush back to file again. Is there any command to flush back the whole
array in to file (each array element will become one
Implode() the array into a single string and write that string.
Use file() to read your file, find the line in the array you need to
change, change it, and re-write the file.
Be aware of simultaneous access and the possible problems of two people
trying to write the file at the same time. You m
> I am thinking - I will take the data in an array first - change it and
> flush back to file again. Is there any command to flush back the whole
> array in to file (each array element will become one line) or do I need to
> write one by one line ?
see file() and implode() where you'll implod
Kinda solved it. Basically wanted to do a mass replace on html stored in
db. They are all the same.
I Just got strpos of a page from the db. and used that string as $match.
works fine.
must be some character in there that means I cant match it. But then I
would expect not being able to match
Thanks to all to give me good start. I will try out now.
Manisha
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Alliteration at its finest...
This is slightly off-topic, so please reply offlist. It's a MySQL question
that I'm hoping someone can help me with. I figure since a large portion of
PHP programmers also use MySQL, this is a valid question to at least -post-
here. If I'm completely off about this,
On Thursday 23 May 2002 20:01, r wrote:
> Greetings people,
> Special greetings to all of you who have helped me, sorry I have not
> written your names but this list is so helpful that if I wrote all the
> names down you would have to scroll 2 pages I guess.
>
> Anyway, I am changing residence and
Is there any way before PHP4 to read:
magic_quotes_xxx
settings so that I know what is happening to data escaping?
--
-
Joy is just a thing (to be).. raised on,
Love is just the way to Live and Die,
J
On Thursday 23 May 2002 11:49, Dennis Gearon wrote:
> Is there any way before PHP4 to read:
> magic_quotes_xxx
> settings so that I know what is happening to data escaping?
get_magic_quotes_gpc() & get_magic_quotes_runtime() seems to run on most
versions of php.
--
Jason Wong -> Gremlins
I think I'm a little more embarrassed than anything - I don't get upset!
Thanks for letting me know, though.
BTW, did you know that www.gremlins.com.hk doesn't turn up anything? I get a
"Cannot find server or DNS error"
-Original Message-
From: Jason Wong [mailto:[EMAIL PROTECTED]]
Sent:
Well it just keeps getting better. I hit reply-to and the response went
here.
I apologize for this and my earlier off-topic post. I made a blatant mistake
in judgement.
Jason Soza
-Original Message-
From: Jason Soza [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 22, 2002 9:21 PM
To: [E
Why not simply define a set of variables for root dir and the other
directories,
and use full paths in your includes?
$root = "/wwwroot/mydomain/public/";
$homepageroot = "/";
$mydir = "subdir/";
now you can do:
include $rootpath.$mydir."inc.php";
and
">Link
or
">Link
Regards Michael
"Dav
if only there were, 'get_magic_quotes_sysbase();'
Jason Wong wrote:
>On Thursday 23 May 2002 11:49, Dennis Gearon wrote:
>> Is there any way before PHP4 to read:
>> magic_quotes_xxx
>> settings so that I know what is happening to data escaping?
>
>get_magic_quotes_gpc() & get_magic_quotes_r
What version was magic_quotes_sybase added?
--
-
Joy is just a thing (to be).. raised on,
Love is just the way to Live and Die,
John Denver.
-
He
Hi All,
I am unable to call Sybase_affected_rows() function.
As I know this function is defined in Sybase CT libraries.
So I have installed Sybase via RPM and then configured php with following command
./configure --with-apxs=/the/path/you/like/to/install/apache/bin/apxs
--with-sybase-ct=/opt
has anyone tried to eval() php info to prevent it from being displayed
so it could be processed for config checking, instead?
Since what version have the 'subsections' of phpinfo() been available,
like
phpinfo(INFO_CONFIGURATION); ?
--
Hi all.
I have aproblem with php >= 4.2.I'm working on graphics but when i install
php4.2, i get an error that it doesn't support GD library.
Is there anybody who has any idea as to how it can be possible to use the
above versions and still run my scripts successfully?
Currently i'm using phpdev4
On Thursday 23 May 2002 14:23, Dennis Gearon wrote:
> has anyone tried to eval() php info to prevent it from being displayed
> so it could be processed for config checking, instead?
Try:
ob_start();
phpinfo();
$doo = ob_get_contents(); # $doo holds the output of phpinfo()
ob_end_clean();
101 - 172 of 172 matches
Mail list logo