?
$GalleryPHPName = Pins;
mkdir (../$GalleryPHPName, 0775);
?
Results in...
MkDir failed (Permission denied)
Any thoughts?
-Jeff Gannaway
___
Save 15% on 2002 Calendars and Holiday Cards!
http://www.AvantGifts.com
Discount Code:
RenAt 9:02 AM -0700 10/25/01, RenÈ Fournier wrote:
I'm looking for a good (simple) tutorial on user authentication. I want to
create a login system that's secure, but I don't need all the features that
PHPBuilder's A Complete, Secure User Login System scripts provide. (I
don't need the the user
Scott,
This seems a pretty elementary task, ATC, though the detection of when the
transfers are done is problematic. You could use the filesystem functions,
particularly stat(), for assistance.
I run php code as regular programs, not for web-based access, pretty
regularly. You simply use the
I need to open a dbase file, so I use the dbase_open function and then I
compile it but it tells me
Fatal error: Call to undefined function: dbase_open()
it seems like this function does not exists!.Does anybody could help me?
Thanks
[EMAIL PROTECTED]
Try the following:
$body = join('', file(somefile.html));
That one line of code will help you avoid the idea of a buffer; it reads
clear through to the newline and splits it there, dumping each line into an
element of an array. join() just puts it all into one single variable for
output.
Mike
I need to open a dbase file, so I use the dbase_open function and then I
compile it but it tells me
Fatal error: Call to undefined function: dbase_open()
it seems like this function does not exists!.Does anybody could help me?
Thanks
[EMAIL PROTECTED]
On Thursday 25 October 2001 10:08, you wrote:
?
$GalleryPHPName = Pins;
mkdir (../$GalleryPHPName, 0775);
?
Results in...
MkDir failed (Permission denied)
When you use a file-related command (fopen, mkdir, etc.) you're executing
that command under the same user-context that apache runs
-Original Message-
From: Sebas [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 25, 2001 12:19 PM
To: [EMAIL PROTECTED]
Subject: [PHP] help!! ¡¡ayuda!!
I need to open a dbase file, so I use the dbase_open
function and then I compile it but it tells me
Fatal error:
Hello,
How do you call for a space in an email put out by mail(); ? Similar
to the way we call \n newlines with backslash n??
Thanks,
Marcus
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To
a) check to see if the user that apache is running as has access to the
directory you're trying to write to.
b) try removing the quotes around 0775
Mike
Jeff Gannaway wrote:
?
$GalleryPHPName = Pins;
mkdir (../$GalleryPHPName, 0775);
?
Results in...
MkDir failed (Permission denied)
Any
Some servers are being moved around. Use a mirror. Here are some for you
to try:
us.php.net
us2.php.net
rack1.php.net
uk.php.net
dk.php.net
dk2.php.net
Any one of those will have a full mirror listing available for you so you
can find one closer to you.
www.php.net will be back shortly.
Jeff,
If this script is running as nobody, or some other low-class user, and the
permissions on the directory in which you are attempting to create a
sub-directory do not allow the creation of the sub-directory by this user,
then mkdir will fail.
Say your script resides in 'php-stuff' with
Don't forget www.ca.php.net, for us Canadian PHP junkies.
Mike
Rasmus Lerdorf wrote:
Some servers are being moved around. Use a mirror. Here are some for you
to try:
us.php.net
us2.php.net
rack1.php.net
uk.php.net
dk.php.net
dk2.php.net
Any one of those will have a full mirror listing
Hi all,
Anyone know how to validate an XML document with the PHP DOM/libxml parser?
Code would be helpful. :)
TIA,
Vikram
--
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
I want script for maillists as yahoo groups
where i can found as this script
Hello php-general,
I have such code:
class A
{
var $xxx;
function print()
{
echo $xxx;
}
}
And that's what I get:
Parse error: parse error, expecting `T_STRING' in xxx.php on line nn
Php doesn't let any function or class member
How do I set permissions for a certain user (ie nobody) for a directory?
If I do this, won't anyone on teh server be able to write to that directory?
Thanks,
Jeff
At 10:39 AM 10/25/01 -0700, Kurt Lieber wrote:
On Thursday 25 October 2001 10:08, you wrote:
?
$GalleryPHPName = Pins;
mkdir
An update...
I had register_globals turned off. Now that I've turned register_globals
on and changed my references from $HTTP_SESSION_VARS['ucAuthoUser'] to
$ucAuthoUser it works as I expect.
I'm not real happy with having register_globals on, though, and I'd like
to figure out what I was
On Thursday 25 October 2001 11:41, you wrote:
How do I set permissions for a certain user (ie nobody) for a directory?
If I do this, won't anyone on teh server be able to write to that
directory?
If you're going to start messing around with *nix permissions, you really,
really need to have a
Actually your problem is with the function itself. In order for it to work
you need to use the this keyword:
class A {
var $xxx;
function print() {
echo $this-xxx;
}
}
You may also run into problems with calling the function print(), I don't
know for sure. But the problem
Does anyone know of a text editor for PHP similar to BBedit for the Mac
9.0 or better platform?
--
Ladonna Everett-Green
O'Connors Church Goods, Inc.
3720 El Cajon Blvd
San Diego, CA 92105
800-854-6567
619-283-2076 fax
[EMAIL PROTECTED]
[EMAIL PROTECTED]
--
PHP General Mailing List
If the link is a href='yourpage.php?yourvar=fred'
Then in yourpage.php ...
echo($yourvar);
the only way you may go wrong with this is with scoping, $yourvar isn't
available in a function inside yourpage.php.
It can be, though. You just need to tell the function to look for the
global
Hello list,
Simple Enough Objective: store file remotely (wu-ftp);
MinorSnag: PHP's ftp-functions unavailable at localhost;
BelowWorkaround: works fine for deleting remote file;
MajorSnag: how to STORE a file remotely using socket?
?php
$ftp=fsockopen(ftp.server.com, 21, $errno, $errstr, 60);
Hello list,
Simple Enough Objective: store file remotely (wu-ftp);
MinorSnag: PHP's ftp-functions unavailable at localhost;
BelowWorkaround: works fine for deleting remote file;
MajorSnag: how to STORE a file remotely using socket?
?php
$ftp=fsockopen(ftp.server.com, 21, $errno, $errstr, 60);
On Thursday, October 25, 2001, at 02:08 PM, Martín Marqués wrote:
On Jue 25 Oct 2001 15:36, you wrote:
Hello php-general,
I have such code:
class A
{
var $xxx;
function print()
{
echo $xxx;
$xxx is internal to the print function.
try this out
$words = explode( , $keywordText);
$compare = array('on', 'the', 'in', 'at', 'is', 'it');
foreach ($words AS $value)
{
if (in_array($value, $compare))
{
$ignored[] = $value;
} else {
$included[] = $value;
}
}
Jim Lucas
- Original Message -
Hello list,
Simple Enough Objective: store file remotely (wu-ftp);
MinorSnag: PHP's ftp-functions unavailable at localhost;
BelowWorkaround: works fine for deleting remote file;
MajorSnag: how to STORE a file remotely using socket?
?php
$ftp=fsockopen(ftp.server.com, 21, $errno, $errstr, 60);
I'm executing a query that returns some a UID and a company name. I'm using
the following code to loop over that query result set:
$result = mysql_query($myQuery) //$myQuery gets defined earlier
$resultCount = mysql_num_rows($result);
$companyID = array();
Out of curiosity, what's wrong with BBEdit, that'd be my choice. It has
color syntax highlighting for PHP, and is IMHO, the best editor on MacOS.
Another one I used briefly was Alpha. So, if BBEdit isn't to your liking,
maybe check out Alpha. I don't know if Alpha is still being kept up or
Trying using mysql_fetch_array, and using the field names. This is the
recommended behaviour in PHP4:
$result = mysql_query($myQuery) //$myQuery gets defined earlier
$resultCount = mysql_num_rows($result);
$companyID = array();
while($query_data =
I notice that you are concatinating then each time. try setting them to =
before using them
$companyID_string = ;
$companyName_string = ;
then:
while()
{
$companyID_string .= , . $query_data[0];
$companyName_string .= , . $query_data[1];
}
Jim
ps. try
On 10/25/2001 3:51 PM this was written:
Out of curiosity, what's wrong with BBEdit, that'd be my choice. It has
color syntax highlighting for PHP, and is IMHO, the best editor on MacOS.
Another one I used briefly was Alpha. So, if BBEdit isn't to your liking,
maybe check out Alpha. I
Umm...
function top($image = '')
{
echo(bla bla $image bla);
}
Might need to use an IF (because of having 2 spaces if the image is empty)
-Jason Garber
IonZoft.com
At 10:14 AM 10/24/2001 -0700, Richard S. Crawford wrote:
function top ($image) {
if ($image) echo blah blah
OK, so I defined the variables before using them and that solved the problem.
(Thanks!)
I'm still curious as to why not defining them ahead of time would cause the
data within each string to get duplicated. In other words, if the query
results are a,b,c,d, then by not defining the variable
what I guessed was that you were using the variables somewhere else in the
script above this code. then you were adding on to them again. without
resetting them to blank. Are you using these vars somewhere else (above
this) in your code?
jim
- Original Message -
From: Kurt Lieber
I don't think so, but if I have to suspect my code or a bug in php, I'll
suspect my code. :)
I did a quick if (isset($companyID_string)) { print true; } else { print
false;} and that didn't turn up anything, but I didn't spend a whole lot of
effort on it.
Like I said, I'm pretty sure I
Hi
I would like to setup a banned ad server, and I will need the images to be
displayed in standard html pages, where the users don't have php access.
Thus, they should be able to call up the image from a normal html page, ie:
img align=center border=0
I have successfully compiled php with linked iODBC
driver manager as an Apache shared module. However
when trying to connect php to the Oracle database I
get an error. The error and the sample connection
code is below.
Warning: SQL error: [OpenLink][ODBC]RPC: Unknown host,
SQL state 08004 in
Check data1.tsl.state.tx.us it I can't even ping it.. try using IP adress
instead or check that name.
- Original Message -
From: toni baker [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, October 25, 2001 4:56 PM
Subject: [PHP] php/Oracle db connection
I have successfully
Toni,
Note the Unknown host.
Check your odbc.ini for the Host field of the DSN you are using.
Ensure it's resolvable. Try an IP address instead maybe.
Also, set the variables in the environment and see if your DSN works in
odbctest without PHP in the mix.
Best regards,
Andrew Hill
Director of
I get that error when i try to start a session.
Warning: Cannot send session cookie - headers already sent by (output
started at
What is happen?
Germán Pablo Gentile
IT Manager
Horizonte Soluciones de IT
www.horizonteit.com.ar
[EMAIL PROTECTED]
--
PHP General Mailing List
Does anyone know how to set a column in a MySQL table to disallow any
duplicate entries.
I've already got a PRIMARY KEY defined for this table. I tried setting the
other field to a MUL KEY, hoping that it would not permit duplicates, but
it does.
I've searched the MySQL docs without success. I
I use BBEdit and because of the syntax highlighting for many code languages,
grep search and replace, multifile search and replace, plus many other
features I find it to be the best code editor out there. I have also heard
it said that it is the best editor out there period, from multiple
I'm not sure if you can... What I usually do is do a query to see if
there's already an entry there, and display an error message if there is.
Another thing to you can do is allow duplicate entries, and use the DISTINCT
option in the SELECT statement. This wouldnt be as efficient, so i'd try
I think you want UNIQUE.
create table sometable (
somecolumn char(40),
someothercolum int,
unique somecolumn
)
...something like that. I haven't messed with it much.
-Steve
On Thursday, October 25, 2001, at 04:31 PM, Jeff Gannaway wrote:
Does anyone know how to set
are you trying to have one column not be a dup or a combination of columns?
jim
- Original Message -
From: Jeff Gannaway [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, October 25, 2001 2:31 PM
Subject: [PHP] Setting A MySQL Column to NO DUPLICATES
Does anyone know how to set
I was just curious what sort of performance hit is taken with multiple
includes per page? Or maybe if there was a way to cache includes?
Thanks
Andy Muth
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
I suspect that PHP does all of it's work and, only when complete, will it
send the generated html to the client.
No matter what you try and do there's no way you can output the progress of
your script to the browser while it is still being parsed.
I could be wrong, but this is my
Is it possible to account/trap missing arguments in functions?
For instance, say I have a function foo:
function foo($arg1,$arg2) { blah }
If someone calls that function as:
foo($arg1);
Can I somehow code around the fact that $arg2 is missing? I've tried:
function foo($arg1,$arg2) {
if
Two php functions may help, func_num_args() and func_get_args(). For
example,
$numargs = func_num_args();
$arg_list = func_get_args();
Kirk
-Original Message-
From: Kurt Lieber [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 25, 2001 4:58 PM
To: [EMAIL PROTECTED]
Subject:
I am new to PHP and have been experimenting with it for couple of weeks now.
I need to take a course that can make me very proficient in a short amount
of time. I am in Orange County, CA. Anywhere in Southern California would
be fine.
Please let me know suggestions.
--
PHP General Mailing
function foo($arg1, $arg2=) // or you can replace the with array()
{
blah
}
Jim
- Original Message -
From: Kurt Lieber [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, October 25, 2001 3:57 PM
Subject: [PHP] account for missing/optional arguments in functions?
Is it
Marcus James Christian [EMAIL PROTECTED] wrote:
How do you call for a space in an email put out by mail(); ? Similar
to the way we call \n newlines with backslash n??
Within an email create a space by typing or ' '. If you want 10 spaces
do str_repeat( ' ', 10 ). If you wanted to create
John A. Grant [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
I've installed ActivePerl, which gives me a way to run .pl files,
i.e. :
c:\ perl someprogram.pl
Does the Win32 php installation give me a command-line
interpreter like that?
[...]
the bad thing about using the #160, mac user won't be able to view this.
mac uses a different ASCII set 160 isn't a space :)
Jim
- Original Message -
From: Steve Werby [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Thursday, October 25, 2001 4:06 PM
Subject: Re: [PHP]
I am new to PHP and have been experimenting with it for couple of weeks now.
I need to take a course that can make me very proficient in a short amount
of time. I am in Orange County, CA. Anywhere in Southern California would
be fine.
Please let me know suggestions.
--
PHP General Mailing
I have just set up PHP on my webserver (IIS 4 on NT4).
I have set up the script mapping so that I can save php files as .html and
php processes them.
This works fine until someone goes to a page that doesn't exist - instead of
getting the customised error 404 page (i.e. the page you
Please define long, and perhaps think of that in the context of the RFC ?822 is it?
=dn
- Original Message -
From: BT News [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: 25 October 2001 17:38
Subject: [PHP] Truncating Lines
Hi,
I have the following code, which reads in an html file
I have the following code, which reads in an html file
$fd = fopen(somefile.html, r);
while (!feof($fd)) {
$buffer = fgets($fd, 4096);
$body .= $buffer;
}
fclose($fd);
I am then mailing this:
if (mail($username. .$email., $mailsubject, $body, From:
.$Fromname.
On Thu, Oct 25, 2001 at 10:30:24PM +0200, Rudi Ahlers wrote:
I would like to setup a banned ad server, and I will need the images
to be displayed in standard html pages, where the users don't have
php access. Thus, they should be able to call up the image from a
normal html page, ie: img
Jim Lucas [EMAIL PROTECTED] wrote:
the bad thing about using the #160, mac user won't be able to view
this.
mac uses a different ASCII set 160 isn't a space :)
Jim,
Thanks for the info. I didn't realize that. I actually recently started
using that instead of nbsp; a few months ago b/c I
Jim Lucas [EMAIL PROTECTED] wrote:
the bad thing about using the #160, mac user won't be able to view
this.
mac uses a different ASCII set 160 isn't a space :)
Jim,
Thanks for the info. I'll definitely have to research this further. I had
been using nbsp; since '96 and only started using
On Thu, 25 Oct 2001 22:37, John A. Grant wrote:
John A. Grant [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
I've installed ActivePerl, which gives me a way to run .pl files,
i.e. :
c:\ perl someprogram.pl
Does the Win32 php installation give me a
try this
?
system(php.exe filename, $output);
echo $output;
?
make sure you put the correct paths to the .exe and file otherwise it will
think that it is realtive to where you are in the file system.
Jim
- Original Message -
From: John A. Grant [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Hi All,
If I unset variables/arrays/etc, that I will not use on my script anymore,
should I expect a performance increase?
--
Julio Nobrega.
Um dia eu chego lá:
http://sourceforge.net/projects/toca
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL
Here would be one of many ways. This assumes that login.php and index.php
are in the same directory.
login.php
?
if (isset($userid)||isset($password)) {
if ($userid == somename $password == somepassword) {
echo YAY! You did it!;
exit;
}
header(Location: index.php);
exit;
}
?
html
body
?php
if($namethename and $passthepass)
{
tothis
}
else
{
dothat
}
--
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 ahve been using go-live (4.0) to edit pages containing php scripts.
this is not really working well. Is there a better way or a better editor
to use for this?
Ray Todd Stevens Specialists in Network and Security
Oh please please please check the archives. This thread has been thrashed
around and beat until it's nothing more than a bloody mass of quivering
flesh...
http://marc.theaimsgroup.com/?l=php-general
On Thursday 25 October 2001 21:10, Ray Todd Stevens wrote:
I ahve been using go-live (4.0)
On Fri, 26 Oct 2001 13:59, Kurt Lieber wrote:
Oh please please please check the archives. This thread has been
thrashed around and beat until it's nothing more than a bloody mass of
quivering flesh...
http://marc.theaimsgroup.com/?l=php-general
On Thursday 25 October 2001 21:10, Ray Todd
I need to some help about example scripts on:
Question 1:
How to process the confirmation email by clicking the url given in the email
and by replying the email.
Question 2:
I know if using mail(), the From field of the mail sent out is always the
web host server's mail sendout server,
not from
active states komodo (www.activestate.com) or ZendIDE 2 (www.zend.com) I
have used both and are really good as you can debug both local and remote
scripts both are commercial though, komodo is free for non-commercial use. I
believe you can beta test them both (ZendIDE2 requires you to be ZPal) :)
If you wanted to check for more than one username/password set, then extend
this line
if ($userid == somename $password == somepassword) {
to something like
if (($userid == somename1 $password == somepassword1) ||
($userid == somename2 $password == somepassword2) ||
($userid ==
Question 2:
you'll notice the 4th parameter to mail() is the headers to send. You can
use something like:
From: Name [EMAIL PROTECTED]\r\n
or
From: Name [EMAIL PROTECTED]\r\nReply-To: Name [EMAIL PROTECTED]\r\n
(can't remember if this the right format for the name/email address, but
those are the
Could someone glance at my situation and the enclosed PHP error log snippet
and give me an idea as to where to procede? I'm pretty stuck.
Stats:
OS: Linux (RH 7.1)
Apache 3.19
Have latest openLDAP and Berkeley DB 3 Installed with no build errors
(/usr/local;/usr/local/BerkeleyDB.3.3)
My PHP
just stummbled across this great study by Shaun Clowes on php security, this
is just the kind of information I have been looking for, thought others
could also benefit from it.
http://www.securereality.com.au/studyinscarlet.txt
found during google search: PHP Security
cheers,
joseph
--
PHP
Is the PHP code you provided below working, I need something like than and i
wonder if i could use it.
NOBBY
(ps: sorry, i can't show u ASP equiv of it coz I do not know)
- Original Message -
From: MrBaseball34 [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, October 25, 2001
Hi there I need help here
I got a file say it's a logs file and keep update ever changes
I need to tail this files and pharse it into web, so I can see this the
update without login into server (jst thru web browser ) how can i do this
Thanks for Help
--
PHP General Mailing List
interobject communcation when objects are not inside another:
-
versionA:
class some_classA{
global $semaphore;
function use_semphore(){;}
function write_semaphore(){;}
function read_semaphore(){;}
101 - 179 of 179 matches
Mail list logo