Hi
I had downloaded new PHP 4.2.1 from www.php.net and add its modules in
Apache
Now It is working very fine.
But Same Problem in SSL and Perl, So can any one tell me where can i get
modules for this
Thanks in Advance
Prachait
Phpgeek <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">new
Quick soln. is to put a "@" symbol in front of the error generating line.
E.g.@$i++;
actual soln. would be to do some initialization like
$i = 0; outside your while loop and $last_name="";
> I'm just curious if there's a way to restructure my code so as to avoid
> getting "Undefined Variable" erro
I'm just curious if there's a way to restructure my code so as to avoid
getting "Undefined Variable" errors. I keep getting them and I know they're
nothing to worry about for the most part, I'd like to get rid of them
without turning off error reporting if possible. In the following code, I
get an
I've recently been learning about cookies myself, and had the same problem
with "" vs. 0 (PHP Fast&Easy Web Development showed the "" in their book).
I know that setting the expire parameter to 0 is supposed to kill the cookie
when browser is closed, but I can't seem to make that happen. I've c
Hi Ian,
I don't know if I'm getting the hole idea of what you're looking for,
but here's something. I'm using a schema that was written by Ying Zhang
for the "myMarket" PHP application which is like this:
a) One "main file" which holds all the site's configurations, like DB
settings and golbals
It does work: jwynia.myvnc.com/phpinfo.php. Is experimental, but it does
work on Windows.
Chris Garaffa wrote:
> Prachait,
> If I recall correctly, PHP 4.x doesn't work with Apache 2... Actually, no
> Apache 1.x modules do, because of the new apxs architechture. Apache 2
> support is planned for
Hi,
Does anyboy know how to pass values between 2 Flash movies.
Thanks.
JS
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
> 403 -770 -4904 ,CALGARY,AB,CAN,T2,Y,Y,Apr 29 2002
> 12:00:00:000AM,I,GMT-0700,,
Untested, off the top of my head, code...
$pointer = fopen('./file.csv', 'r');
while ( $Data = fgetcsv($pointer, 500) ) {
# Do what you need, for example...
echo 'Their city is: ' . $Data[1];
}
--Dan
--
Zac:
> foreach($kywrd as $val) {
> $fndWrds .= "wrd = '$val' OR ";
> }
FYI, a simpler way to do that...
$fndWrds = "wrd IN ('" . implode("','", $kywrd) . "')";
That aside, w/o completely analyzing your entire set of code, it sounds
like John is on the right track with putting a unique index
You'll need a combination of date() and mktime().
I'm too lazy to write the exact code right now, but date('w') will
return the day of the week, 0 = Sunday, 6 = Saturday. Then use mktime()
to subtract the number returned from date('w') from the days component,
and you'll have the start of the wee
Hi Lance:
On Sun, Jun 16, 2002 at 01:31:45AM +0800, Lance wrote:
>
> i was developing an application that will read in the content of a html
> file. and within this html file contains php variables which will be
> replaced using the eval() function with its required value. and within
> this h
on 16/06/02 10:42 AM, Frank Kicenko ([EMAIL PROTECTED]) wrote:
> I have a couple of questions if you don't mind... the PHP
> help files seem to be very vague with respect to html issues.
>
> Questions: How can I get the "selected" info from a selectbox that is in
> another form on the same page.
On Sunday 16 June 2002 1:13 am, Gerard Samuel wrote:
> check to see if $bar is an array and
> feed the array to vprintf()
Wow, didn't even know that one existed! Might come in handy though :)
Danny.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net
Hi,
Hopefully I didn't send this to the wrong list...:-)
I have a couple of questions if you don't mind... the PHP
help files seem to be very vague with respect to html issues.
Questions: How can I get the "selected" info from a selectbox that is in
another form on the same page... I've tried e
Well I figured out a solution. Using a combination of explode() to
create an array from $bar,
check to see if $bar is an array and
feed the array to vprintf()
Gerard Samuel wrote:
> Im trying to make a dynamic printf().
> By that I mean ->
>
> function this($foo, $bar)
> {
>if (strlen(
On Sunday 16 June 2002 12:46 am, Gerard Samuel wrote:
> Im trying to make a dynamic printf().
> By that I mean ->
>
> function this($foo, $bar)
> {
> if (strlen($bar) == '0')
> {
> print($foo);
> }
> else
> {
> printf($foo, $bar);
> }
> }
>
> Now it works i
Hi,
how can I determine dates (start & end ) in one week.
I.e. 30th week is between 22.07.2002 and 28.07.2002 .
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Im trying to make a dynamic printf().
By that I mean ->
function this($foo, $bar)
{
if (strlen($bar) == '0')
{
print($foo);
}
else
{
printf($foo, $bar);
}
}
Now it works if there is one argument passed, but it doesn't when there
is more than one.
$str =
Just how much can the php name be used in applications?
The license says
3. The name "PHP" must not be used to endorse or promote products
derived from this software without prior permission from the
PHP Group. This does not apply to add-on libraries or tools
that work in co
On Saturday, June 15, 2002 at 9:05:40 PM, Nathan Taylor wrote:
> $open = fopen("file.txt","r+");
> while($contents = fgets($open)) {
> $line_array[$x] = $contents;
> $x++;
> }
?>>
This wheel exists: http://www.php.net/file
--
Stuart
--
PHP General Mailing List (http://www.php.net/)
To
This is all really straight forward stuff. Here's some code that will get the file
parsed to an array, what you do from there is up to you.
Note: if you have a precise structure for your lines you can say to read from point a
to b using substr(). For example, let's say the first name is exa
php-general Digest 15 Jun 2002 19:41:07 - Issue 1407
Topics (messages 102319 through 102358):
Re: Evaluation. Easy Question but I need some help
102319 by: Jason Morehouse
Re: php server on Windows
102320 by: Stuart Dallas
Downside to using login sessions?
102321
Hi All, Hope you are all well.
I am coding a website for a client and they involve a series of files:
logobanner.php
navbar.php
leftmenu.php
main.php
rightmenu.php
copyright.php
These are all just simple HTML files which are placed in a Global dir apart
from main.php which is in the same dir as
On Saturday, June 15, 2002 at 11:58:44 AM, Kim Bauters wrote:
> My IIS version is 5.0
Hmm, same as mine. Have a look in the master properties of the server. If it's
not there then I suggest you search the MS site for help.
--
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubs
hi,
i was developing an application that will read in the content of a html
file. and within this html file contains php variables which will be
replaced using the eval() function with its required value. and within
this html, i want to be able to run php functions. however, due to the
fact t
I am trying to input data from a text file into a MySQL database and would
like to be able to input the data using a single script. What's the easiest
way to parse a line, such as below, and turn it into variables to be placed
in the database. While I can simply place the data in by importing fr
Funny. I asked a very similar question the other day. Jason Morehouse was
nice enough to offer this advice:
If you use fulltext search (assuming you are using MySQL), it deals with
stop
words on its own as well as some additional search logic.
http://www.mysql.com/doc/F/u/Fulltext_Search.html
Thanks for your help Everyone =)
I needed the 3rd parameter set in order to specify the fourth "/", because
the cookie is being set by a script located in a sub-directory. One of the
old documents I read said "" would work as the third parameter - and it did
on my old servers. Setting the thir
Hey all,
I am in the middle of writing a script to allow users to search through
news archives on my website. Anyhow I am just wondering which logic you
believe best suits a search.
i.e. say a user types in 'games AND playstation' then only results
containing both those words will be returned
Yeah, do it all with regular queries. You shouldn't have to do any
replacing in PHP. You can even use the MySQL regular expressions in your
query for some more complex matching and replacing...
It's all in the manual...
---John Holmes...
> -Original Message-
> From: Julie Meloni [mailto
On Sat, Jun 15, 2002 at 06:02:58PM +0200, Daniel Tryba wrote:
> This works for me:
Hmmm, one while(!feof()) to many not that it really matters :)
--
Daniel Tryba
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Sat, Jun 15, 2002 at 11:15:42AM -0400, Jeff Bearer wrote:
> I'm trying to read it with fsockopen and writing it with fopen to the
> file but the file is no good when it's saved, I saw that it saved the
> http headers in there so I cut those out but still, the image wan't
> viewable.
Are you u
The 3rd parameter is an optional time to expire parameter, if you don't want to set
it, leave it out. setcookie(cookiename,"value"); works fine
- Original Message -
From: Lazor, Ed
Sent: Saturday, June 15, 2002 11:48 AM
To: php-general
Subject: [PHP] Can't set a cookie?
Hi Everyone,
LE> Any idea why I'm getting this error?
LE> Warning: setcookie() expects parameter 3 to be long, string given in *my
LE> script* on line 2
LE> setcookie("mytest", 1, "", "/");
It needs the time to be something not null. If you mean to set 0, use
"0" instead of "". Or, time()+somenum (not in
Hi Everyone,
Any idea why I'm getting this error?
Warning: setcookie() expects parameter 3 to be long, string given in *my
script* on line 2
Here's the entire script generating the error:
The script doesn't work on a new hosting service I subscribed to, but it
works on two other servers - 1
Perhaps you could try a cURL or some other FTP approach?
- Original Message -
From: Jeff Bearer
Sent: Saturday, June 15, 2002 11:16 AM
To: [EMAIL PROTECTED]
Subject: [PHP] saving a jpeg via HTTP
What is the best way using only PHP to grab a image file off a website a
d save it locally?
Hi Lance:
On Sat, Jun 15, 2002 at 06:54:24PM +0800, Lance wrote:
> hi, thanks for the code. i tried. it only worked if the string is simply
> the one i wanna convert. but that particular string is in the middle of
> a long text, and there are multiple occurance, it won't.
Strange. It should w
On Saturday, June 15, 2002 at 3:34:06 PM, Chris Garaffa wrote:
> If I recall correctly, PHP 4.x doesn't work with Apache 2
There is a module specifically for Apache 2 in PHP 4.2.0 onwards. I'm not sure
what error using the module for Apache 1.3.x would produce. This could be the
problem. The Apac
Saturday, June 15, 2002, 11:11:49 AM, Julie wrote:
JM> update tablename set fieldwithcrap = replace(fieldwithcrap,
JM> 'oldstring', 'newstring');
Julie, lovely solution and shockingly fast. Thanks.
Steve
--
[EMAIL PROTECTED] ** http://mrclay.org
--
PHP General Mailing List (http://www.php.
What is the best way using only PHP to grab a image file off a website a
d save it locally? I know I can use wget and this would be a piece of
cake, but in this case I don't want to rely on external programs.
I'm trying to read it with fsockopen and writing it with fopen to the
file but the fil
SC> I've inherited a MySQL db (4MB on disk) that's riddled with
SC> inconsistent storage of character entities from being pasted from
SC> Word. At very least I hope to convert all quotes "‘" - "”"
SC> to HTML's """ and "'".
For each entity you wanted to replace, you could:
update tablename set
Hello,
I've inherited a MySQL db (4MB on disk) that's riddled with
inconsistent storage of character entities from being pasted from
Word. At very least I hope to convert all quotes "‘" - "”"
to HTML's """ and "'".
I imagine I'll run a big query, save the id's needing edit in a file
than have a
Prachait,
If I recall correctly, PHP 4.x doesn't work with Apache 2... Actually, no
Apache 1.x modules do, because of the new apxs architechture. Apache 2
support is planned for the 4.3 release (someone correct me if I'm wrong).
On UNIX, I compiled with a -apxs2=[path] option to the configure scri
Stuart Dallas wrote:
> On Friday, June 14, 2002 at 10:01:24 PM, Sridhar Moparthy wrote:
>> Does any one know how to make mail() function to send mail to 'CC'
>> and 'BCC' address. I have tried to keep 'CC' and BCC' in header, but
>> it is not working. Mail function is sending the message to 'To'
>
Hello !!!
I am using Apache/2.0.36 (Win32) DAV/2 on Win98.
my server is running very fine when i use PHP4 as a interpreter.
but as i use " LoadModule " to use PHP4 as a modules i am getting the
error as
(31) A device attached to the system is not functioning:
This error also come when i try to
http://stutter.screwdriver.net is a good clean example.
-J
On Thu, 13 Jun 2002 12:02:12 +1200, Phil Powell wrote:
> I am intrested in creating a chatroom entirely in PHP involving
> streaming text. Where can someone help me to find such a means of doing
> so?
>
> Thanx
> Phil
> http://valsig
No practical way I know of w/ PHP...
Try (Perl):
http://search.cpan.org/doc/SSNODGRA/Unix-ConfigFile-0.06/PasswdFile.pm
Though I wouldn't be able to sleep at night knowing browsers had access to the passwd
file!
Cheers,
-J
On Fri, 14 Jun 2002 10:08:56 +1200, Brian V Bonini wrote:
> Anyone k
hi,
My IIS version is 5.0
"Stuart Dallas" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> On Saturday, June 15, 2002 at 11:43:05 AM, Kim Bauters wrote:
> > indeed, it is a IIS CGI timeout. However, when I take a look at the tab
you
> > gave me, I can only seem
hi, thanks for the code. i tried. it only worked if the string is simply
the one i wanna convert. but that particular string is in the middle of
a long text, and there are multiple occurance, it won't.
however, i did manage to come up with this code that worked. but i
believe it can be improve
On Saturday, June 15, 2002 at 11:43:05 AM, Kim Bauters wrote:
> indeed, it is a IIS CGI timeout. However, when I take a look at the tab you
> gave me, I can only seem to find the tabs called "App Mappings", "App
> Options" and "App Debugging". Is this the right place and is the tab just
> missing
Hi,
indeed, it is a IIS CGI timeout. However, when I take a look at the tab you
gave me, I can only seem to find the tabs called "App Mappings", "App
Options" and "App Debugging". Is this the right place and is the tab just
missing or is there a problem on my behalf?
thx
"Stuart Dallas" <[EMAIL
On Saturday, June 15, 2002 at 10:52:14 AM, Kim Bauters wrote:
> In the file php.ini, the 2 timeout settings are
> both changed from 30 to 300, but I keep on getting an error like "CGI script
> Timeout".
I think you'll find that's the IIS CGI timeout, not PHPs. You can find that
setting in the sit
Hmm, I haven't heard of such a thing. That's kinda weird though because just yesterday
I modified my timeout settings for my script that parses logfiles that are several
thousand lines long, and it worked. Did you perhaps forget to reboot the server? If
you have my suggestion is perhaps taking
Well, all passwords on my sites are stored md5'd, so i'm comparing an md5()
of the password they have supplied with the one stored in the DB, so I don't
need to know what the original password was -- only if the two encrypted
passwords match.
Since md5() is one-way encryption, it makes sense to s
As a general rule it is always good to store data that is secure in a encrypted
format. My website for example uses a mysql database and I store the encrypted mysql
password in the cookie so I get somethign like 435gcg34tsskhj57 to equal 123. It's
far more secure because cookies are on the u
I'm running PHP script that check for the existance of certain pages on the
web. The problem is that fopen to check for the existance of a page and this
seems to consume time. It has to check for a nuber of pages, conforming to a
certain pattern. This pattern is Ab#
What I want to do is exten
I'm currently storing the username and password directly in cookies (the
password isn't even md5()'d). I'm just wondering if there's security
risks/whatever in sessions. I've seen that most sites seem to store the
login data directly in the cookie (with the password md5()'d). Is that
becaus
I know it has nothing to do with filesize because I am the server and I set the
configuration. But lemme show you some code, maybe that'll help. Here we go:
(please no ripping)
function MyFiles() {
global $username, $Upload, $Rename, $Delete, $PHP_SELF, $File, $File_size, $File_name,
$File_
How is it currently storing it?
Sessions are fine, depending on how the code is written, and the obviouse
downside to COOKIE based sessions is that they will break on non-cookie
browsers, so a smarter move is to use URL based sessions.
A more focused question will of course result in a more focu
I am planning to change how my site stores logins to using sessions.
Are there any reasons not to do this? Reasons against it I should
know? Thanks for your input.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Saturday, June 15, 2002 at 3:48:03 AM, you wrote:
> An opinion was requested, and I gave it.
And everyone is entitled to an opinion, but what you gave was the typical "down
with windows" response when you clearly have not evidence to back it up.
> I will make a few pointed comments and then I
61 matches
Mail list logo