hi.
how can I control the ip that with ID and password ,all of
user cant enter to site and if one person want to enetr should
have special IP that I know it.
thanks.
nafiseh.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands,
Thanks..
D'you think you'd be able to give me an example?
(Sorry, I am _quite_ new to all of this...)
-Andy
Rasmus Lerdorf [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Any php.ini directive can be used in your httpd.conf on a per-dir basis.
See the manual..
hi.
I write:
$m=date(H:i:s); 10:34:33
$p=echo time($m); --998805674
date(h:i:s,mktime($p)); -12:34:33
my problem is the difference between first and third time that should
be the same.???
thanks.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL
Just looking over the achives of the .net show(was msdn show), and with .net
its got some really great features..
So i am going to get a hold of .net and try it out...
- James ReDucTor Mitchell
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
I have PHP 4.06 and using it as an Apache module, but for some reason I
cannot get my changes to take effect after I change something in the
PHP.ini file. I've tried to restart Apache, restart Windows98, nothing.
But if I run as a CGI, the changes are there in the phpinfo()!
Any help with this
Hello
Thnx for your last replies, looks like i need more help with php now.
I have this code:
function displayCategory(){
include ('admin/config.inc.php');
$connection = mysql_connect ($host, $username, $password);
if ($connection == false){
echo
At 05:36 26-08-01, Manuel Lemos wrote:
The first problem is technical. You just keep developing PHP to satisfy
the user needs as soon as you perceive them and that's it.
I think we're doing that nicely, but it's quite true that meeting the
technical needs is not enough.
The second problem is
This is how I divided one long column into several more equal sized columns.
Hope it helps.
print table align=center cellpadding=3 width=90%trtd valign=top
width=20%h$fonts;
while ($a_row=mysql_fetch_row($results))
{
$count=$count+1;
foreach($a_row as $field)
{
print $field br;
}
if
hi.
what is the meaning of #!/usr/bin/perl -T ???
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-mail: [EMAIL PROTECTED]
Nafiseh Saberi wrote:
hi.
what is the meaning of #!/usr/bin/perl -T ???
thanks.
You are in wrong list.
Try perl user list.
--
Yasuo Ohgaki
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To
I'm using copy() and the final owner is nobody, I'm opening a socket
connection with fsockopen() so I have a validate user.
I want the validated user to be the owner of the new file
That`s de code:
- open the socket
- validate user
- change dir chmod so we can write
- write the file (with nobody
Please dont reply to messages with a new subject as this breaks threading.
also check the man for addslashes... where are you getting the error, storage
or retrieval?
Dave
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Saturday, August 25, 2001 3:44 PM
To:
I write:
$m=date(H:i:s); 10:34:33
$p=echo time($m); --998805674
date(h:i:s,mktime($p)); -12:34:33
my problem is the difference between first and third time that should
be the same.???
nope
if $p is already a unix timestamp (as per your output) I don't know why you are
they don't give shell access without contacting them, and they don't reply
to emails
- Original Message -
From: ReDucTor [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Thursday, August 23, 2001 12:48 PM
Subject: Re: [PHP] path to php
Have you tried which php or locate
Good day,
I'm trying to figure out how I can show the following on my search results
page:
SEARCH RESULTS 1 - 10 of 14 total results for books
Currently, I have a limit of 10 results printing on a page using offset.
I figured out how to program the pages to know what page of the results its
use the $REMOTE_ADDR variable for the remote address
see php manual chapter 7 Variables - Variables from outside PHP
Nafiseh Saberi schrieb:
hi.
how can I control the ip that with ID and password ,all of
user cant enter to site and if one person want to enetr should
have special IP that I
Are you shure u sending the right http header?
your discription sound like the browser receives the wrong header information,
respactively the wrong mime type. if you use the right mouse button and say show
image, all browsers don't care about the mime type and try to evaluate the data
content
I have a very wide panoramic image I want to display on a page. I don't want
to side scroll the page, only the image. Is there a way to make a image side
scrollable using PHP?
Thanks
Craig
[EMAIL PROTECTED]
use $SCRIPT_FILENAME and extract the parts of the path as u need.
or better $PATH_TRANSLATED see also php manual chapter 7 predefined variables.
Chris Hayes schrieb:
dear group,
I use the $DOCUMENT_ROOT to make a complete file name.
make a sql just with your where clause like this
select count(*) from table where your where clause
the relsulting result set will give u the number of records for your where
clause
[EMAIL PROTECTED] schrieb:
Good day,
I'm trying to figure out how I can show the following on my search
see php Manual chapter 18 cookies
Sunil Jagarlamudi schrieb:
Is there a program which will check for cookies before
it allows access into the web site ?
I want the user to enter the userid/password on a
secure web server and pass the cookie information to
the regular server. I don't want
i would try this:
$sql = SELECT DISTINCT users.names
FROM users, selection
Where users.name = selection.name and selection.setting = 'on'
;
because you joining two tables and you get as many results per users.name =
selection.name as entries in bouth tables per
does anybody know a resource where i can get apc for windows? or does
anybody have experienced how to compile APC under wimdows and include it
i.e. in Merlin Desktop?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:
but the frameset could be done with php !
Eric Persson schrieb:
Craig Westerman wrote:
I have a very wide panoramic image I want to display on a page. I don't want
to side scroll the page, only the image. Is there a way to make a image side
scrollable using PHP?
This can not be done
Hi,
can I use some php funciton to convert strings to charset iso-8859-2? Do
exists some function to detect encoding of string?
Thanks from Czech Republic...
Fanda
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:
On Sat, 25 Aug 2001, Rasmus Lerdorf wrote:
Well, first of all, you are using an ancient version of PHP. That message
was changed from a fatal error to a warning over a year ago.
Cool. Thx. I'll upgrade. Had no good reason to until now.
And if you really want to have PHP accept non-typed
For thumbnail creation I would need to know how I scale a loaded image or better:
How do I copy a scaled version of an image created with imagecreatefromjpeg onto a
background I have previously created?
Jan
Greetings.
I've made the following script, wich shows every record of a dbf file:
?php
$dbf = dbase_open('TEST.DBF',0);
$quant = dbase_numrecords ($dbf);
for ($x = 1; $x $quant; $x++)
{
$drec = dbase_get_record_with_names($dbf,$x);
foreach ($drec as
ReDucTor wrote:
Just looking over the achives of the .net show(was msdn show), and with .net
its got some really great features..
So i am going to get a hold of .net and try it out...
- James ReDucTor Mitchell
Quite an open ended post - not sure exactly what type of reaction you're
?php
Header(Content-type: image/jpeg);
$src_img = imagecreatefromjpeg($fileURL);
$aspect=imagesy($src_img)/imagesx($src_img);
$new_w = $thumbSize;
$new_h = $new_w * $aspect;
$dst_img = imagecreate($new_w,$new_h);
I want to check if an uploaded file is an image. This isn't working.
Could anyone help me out?
if (!eregi(\\.gif$, $img1_name) ||
!eregi(\\.jpg$, $img1_name) ||
!eregi(\\.jpeg$, $img1_name)) {
error message
}
Jeff Oien
--
PHP General Mailing List (http://www.php.net/)
To
Jeff Oien [EMAIL PROTECTED] wrote:
I want to check if an uploaded file is an image. This isn't working.
Could anyone help me out?
if (!eregi(\\.gif$, $img1_name) ||
!eregi(\\.jpg$, $img1_name) ||
!eregi(\\.jpeg$, $img1_name)) {
error message
}
unless you expect the file to
Thanks for all the answers to this question but hitting the back button will
work, no authorization required to see the pages all over.
Repost problem:
I'm having a PHP based auth. It seems that unset($PHP_AUTH_USER) or
unset($PHP_AUTH_PW) doesn't work. Also, 401 Unauthorized header does not
work
I tried find a solution to backup a mysql database using php but i didn't
find anything but the binary file transfer solution (just open and binary
copy all the files in my database directory). But this is not a desired
solution because it involves some security holes that I cannot afford.
Can
Try this:
printf(TABLE);
while($row=...fetch()) {
printf(TRTD%s/TDTD%s/TD/TR,$string_variable1,
$string_variable2);
}
- Original Message -
From: John Bass [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, August 23, 2001 6:29 PM
Subject: Re: [PHP] Need help to create HTML
Hello,
Zeev Suraski wrote:
At 05:36 26-08-01, Manuel Lemos wrote:
The first problem is technical. You just keep developing PHP to satisfy
the user needs as soon as you perceive them and that's it.
I think we're doing that nicely, but it's quite true that meeting the
technical needs is
Check out :
http://www.weberdev.com/index.php3?GoTo=phenominet/prices.htm
This is your one stop shop for hosting. WeberDev.com is hosted there
and I can tell you that their service is amazing. They are fast,
reliable
and more than anything, very professional (specially in PHP / MySQL).
When using this command:
mkdir (/usr/www/users//blah/blah/$username, 0777);
it sets it to nobody instead of my username. I'm then unable
to delete or modify files in that directory. Is there a way around
this? Thanks.
Jeff Oien
--
PHP General Mailing List (http://www.php.net/)
To
Jeff
JO mkdir (/usr/www/users//blah/blah/$username, 0777);
JO it sets it to nobody instead of my username.
Nobody is the user runng the Apache process that's why it is the owner
of the directory.
You can chown the direcotry from your PHP script after you create
it or chmod the files you copy
However even the permission of 0777 doesn't let me do anything to
the directory or files in it. I can't even chown or chmod anything in
it using Telnet once it's created.
Jeff Oien
Jeff
JO mkdir (/usr/www/users//blah/blah/$username, 0777);
JO it sets it to nobody instead of my username.
When I try with
for ($x = 1; $x $quant; $x++)
{
$drec = dbase_get_record_with_names($dbf,$x);
echo $drec[0].,.$drec[1]br; - and so on
}
It only shows the dots. It doesn't show any of the fields.
I know that dbf is a very prehistorical solution, but the client
I know this is a recurrent question around here... but it's always nice to ask:
Is there (or is it in process of...) any kind of certification for PHP.
I live in Brazil and have been developing with PHP+Mysql for over a year,
but there are no courses around here... none. And in part, it's
I've solved it!
You have to put the field name of the DBF, not the array position. I
don't know exactly why, but it worked for me.
So the code is:
for ($x = 1; $x $quant; $x++)
{
$drec = dbase_get_record_with_names($dbf,$x);
echo $drec[NAME]br;
}
Thanks a lot
Has anyone done audio and/or video streaming? I'm
trying to stream this music file online through
windows media player. All i've been able to do is to
create a href that will pop up the windows media
player and stream the music. I would really like to
have the windows media player embedded in
It looks like you might not have permissions set for the web server to
create files in /web/...
If you know the names of the files which will be transferred ahead of time,
you can manually create them from FTP or your shell, then chmod them to 777.
Otherwise you might be better off creating a
The easiest way would be to call mysqldump from PHP (system, exec,
backticks, whatever) and pipe it to a file, all from the command line. This
would backup the core data in the form of valid MySQL statements. If you
have several indexes, this method will actually produce smaller files as
well.
It depends on how the webserver is setup. If its being run as a CGI then it
depends if suEXEC is enabled. If its not, it should be run as nobody,
whereas if it is (and the user/group paramater in httpd.conf is set) it'll
be run as whatever the directive is set to. If its run as a module, then the
Thanks for your answer Chris,
What I want to do is find a way to check if a script is running as a cgi or
not.
Suppose I am running it from a unix shell (sgi) then I want the script to
behave differently than when executed by a Web Server. I was wondering if
there is an enviroment/php variable
Look at some sample (or just *use*) scripts like the mail class at
UpperDesign.com
You just fsockopen to your SMTP server port 25, and fread/fwrite the
interchange that is required by RFCs to talk nicely to SMTP.
--
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL
You must have changed something else as well...
You still should add some error-checking.
If $ins_u is FALSE, then the INSERT failed, and you ought to do something
about it...
--
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
Wanna help me out? Like Music?
At 23:02 26-08-01, Manuel Lemos wrote:
I don't think we have the same understanding of what is marketing. For
me, marketing is being proactive in terms of promoting something before
the potential market. Seeing people advocating PHP or analysts covering
PHP here and there is not proactive at all.
for a SHELL SCRIPT using php binary:
in bash I would do this:
#!/bin/bash
echo -n username:
read username
echo -n password:
read password
echo $username
echo $password
Run on the command-line, it would stop and ask me for the username and
password, then continue the bash shell script.
But
I am the employer... :)
I don't think Brainbench is exactly what I was looking for... but thanks
anyway.
BTW... has anyone taken the Brainbench test?
Is it difficult?
If I were to use it... like, I give a PHP course, and add to the cost the
US$ 20. How many hours of PHP do u think it would
Seb Frost [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
I have these _vti_pvt _vti_cnf directories on my website. Why? I never
put
them there... can I delete them?
I tried searching for this but it's impossible to search for since it
seems
a lot of
Same with _private and _derive?
I admit it, I use frontpage when I can't remember how to code html in
textpad :-)
- seb
-Original Message-
From: Hugh Bothwell [mailto:[EMAIL PROTECTED]]
Sent: 27 August 2001 01:07
To: [EMAIL PROTECTED]
Subject: [PHP] Re: What is it with _vti?
Seb
I 've the same problem and I haven´t the solucion so far.
I need to create a file with the correct owner, nobody is not usefull at
all.
Chown and chmod are not the solution, the solution is create the dir or the
file directly with the real owner, I saw a script to do that but I can´t
find it
The user i use to login has full permissions
When i login with an ordinary ftp client using that user, then i can do
anything.
I think when there is a permission problem the error would say that.
- Original Message -
From: Chris Lambert [EMAIL PROTECTED]
To: MBK [EMAIL PROTECTED]
Cc:
Hi Guys,
I want to write a script that retrieves quote prices off the ASX (Australian
Stock Exchange) and then adds it to the database.
I think the only way I can do this is by using the yahoo finance query.
I need to know how I can call a string within my PHP script and then get the
Everything is pretty much set to default vaules. I can
leave the browser open and come back 12+ hours later
and the session is still active. Why??
session.cache_expire 180
PHP Version 4.0.3pl1
'./configure' '--without-gd' '--with-apxs'
'--with-mysql=/usr' '--with-pgsql' '--with-imap'
Thanks
The easy ugly one line solution:
$csvalues = explode(,, implode(,
file(http://au.finance.yahoo.com/d/quotes.csv?s=NABm=af=sl1d1t1c1ohgve=.
csv)))
/* Chris Lambert, CTO - [EMAIL PROTECTED]
WhiteCrown Networks - More Than White Hats
Web Application Security - www.whitecrown.net
*/
-
www.communitech.net
--
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]
Its uncommon for people to have used more than one dedicated server
provider, simply because they're a bit on the expensive side and likewise
comparitive reviews are hard to come by. However, I have used Communitech
years back and have had only bad experiences with them.
Hi,
Im writing this for second time.. has somebody experience this and please
help me.. pleaseee
When i use this function mail(), mail was sent successfully but when
recipient receive the mail the date timezone is incorrect. It
displayed -0800 instead of +0800. Im from +0800. The timezone does
I don't think Brainbench is exactly what I was looking for... but thanks
anyway.
BTW... has anyone taken the Brainbench test?
Is it difficult?
I did, it is not that difficult. It can tell you if a future employee really
knows PHP.
But as an employer myself, I would never rely on such a test
I like your idea about using dl().
Could someone please point me where I could read on how to write dynamic
loading PHP extensions.
Thank you very much.
P.S. I found one at http://www.webtechniques.com/archives/2001/01/junk/
Please let me know of any other good resources. Thanks.
This is very true. I have a few ideas that I want to sell, but the only
way that I can do it with PHP is to give out the source, and the user is
expected to know how to install PHP and set up the script. If I can
compile the PHP script, then I can sell the executables. The users
would only
On Sun, 26 Aug 2001 22:05, ReDucTor wrote:
they don't give shell access without contacting them, and they don't
reply to emails
- Original Message -
From: ReDucTor [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Thursday, August 23, 2001 12:48 PM
Subject: Re: [PHP]
I love cookies.
I hate it when they dont work.
I was previously accessing cookies by just using their name (I had
global_vars turned on), I recently decided to turn it off(for security
reasons) and I can no longer even set cookies?
Yes,cookies are enabled and everything..in fact,I never even
If you use the ext/ext_skel mechanism for creating your extension
framework your extension will be able to build shared automatically.
Just do ./configure --with-blah=shared and look in modules/
-Rasmus
On Mon, 27 Aug 2001, Anas Mughal wrote:
I like your idea about using dl().
Could someone
On Mon, 27 Aug 2001 02:59, Wolfgang Schneider wrote:
Hi everybody,
can someone have a look at this bit of code please and help me out?
I am getting an error message when calling a php page containing the
code below, and the message reads:
Warning: Undefined index: view in
70 matches
Mail list logo