Hello everyone,
I've run into a bit of a sticky situation trying to connect to a remote
MySQL database. Here's the background:
Connecting from the command line on the web server works.
Connecting from a different vhost works.
There's no information in mysql_error. In fact, mysql_select_db(
Nathan Rixham wrote:
Ray Hauge wrote:
Hello everyone,
I've run into a bit of a sticky situation trying to connect to a
remote MySQL database. Here's the background:
Connecting from the command line on the web server works.
Connecting from a different vhost works.
There's
a base if you wanted. It's GPL.
--
Ray Hauge
Primate Applications
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
download on it.
--
Ray Hauge
Primate Applications
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
's the error you are getting?
Ray Hauge
Primate Applications
Beauford wrote:
Hi,
I previously had some issues with preg_match and many of you tried to help,
but the same problem still exists. Here it is again, if anyone can explain
to me how to get this to work it would be great - otherwise I
viously that's no longer in effect though. It has also been allowed
after certain wars to beef up the population again.
http://en.wikipedia.org/wiki/Polygamy#Christianity
I typically don't use wikipedia for sole sources, but everything else I
could find was some
ed so long because
of this. I'm just glad there's a lot of sinners out there, or at least
people who aren't that crazy :)
--
Ray Hauge
www.primateapplications.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
e of the design patterns in my program!" Just a few
months later the speaker ended up being in charge of maintaining that
program, and it was a nightmare.
To make a long story short. I generally do what's easiest. It's
typically faster to develop and easier to mai
rs,
Rob.
You're right. I just started reading this list again after a 1.5 year
break, and I still remember some of the great discussions with Richard
and others about OOP. Great times :)
--
Ray Hauge
www.primateapplications.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
e->columnName
I'm pretty happy with how it's working now, but I'm concerned I might
have misses some sort of security issue. I only had a work week to
finish the entire project. We only have MySQL databases, so I didn't
need to abstract different types of databas
Daniel Brown wrote:
Should catch(e) really be catch(Exception $e) ?
Something like that. I was paraphrasing, which seems weird, since I was
looking at the code for the class description anyway :) Thanks for the
info.
--
Ray Hauge
www.primateapplications.com
--
PHP General Mailing
ith him.
http://terrychay.com/blog/article/mephisto-ruby.shtml
http://terrychay.com/blog/article/is-ruby-the-dog-and-php-the-dogfood.shtml
--
Ray Hauge
www.primateapplications.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Also, don't forget CSS. It comes in really handy. I still use
w3cschools to look up the property names I can't remember, but it's got
a lot of great resources to point you in the right direction.
http://www.w3schools.com/
--
Ray Hauge
www.primateapplications.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
if you're
just messing back, but it was at least interesting for me to read the
progression of events and learn a little bit myself :)
--
Ray Hauge
www.primateapplications.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
x27;re assigning the
$row1['tableName'] to $table rather than $_SESSION['table']. Is that
intended? $table isn't defined in the top function, so it would most
likely return null.
Also, since you're only expecting one result, you could do away with the
while loop and just run $row1 = mysql_fetch_array($loginResult). It
would accomplish the same goal (nitpicking... sorry).
Also, why are there two return statements? The second will never run.
Maybe I missed something though.
--
Ray Hauge
www.primateapplications.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
37
www.raoset.com
[EMAIL PROTECTED]
You could return an array with string keys.
$array['table'] = 'asdf';
$array['authenticated'] = false;
return $array;
That's just one option, but it would work.
--
Ray Hauge
www.primateapplications.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I recently figured out how to use two SMTP accounts in Thunderbird.
Hopefully this will help the list to not count me as spam so much (I was
using my own host to send as gmail... doesn't work so well).
Thanks,
--
Ray Hauge
www.primateapplications.com
--
PHP General Mailing List
self a time or two. Check the output of
phpinfo(); or C:\php5\php.exe -v (I think that'll work on Windows).
--
Ray Hauge
www.primateapplications.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ardest part for me was just setting a date and
stop procrastinating. The test was easier than I was expecting, though
there were a few things that I didn't know on there. The tests were my
best training though.
--
Ray Hauge
www.primateapplications.com
--
PHP General Mailing List (http://
t that's just me.
There were a lot of odd functions in there. I can't even remember the
ones that I didn't even know existed. There were also questions about
how to configure PHP, so look at the php.ini options as well.
--
Ray Hauge
www.primateapplications.com
--
PHP General M
s it Thunderbird/Gmail (I use IMAP forwarding).
--
Ray Hauge
www.primateapplications.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Daniel Brown wrote:
On Thu, Feb 28, 2008 at 10:25 AM, Ray Hauge <[EMAIL PROTECTED]> wrote:
Since we're talking about post issues I'll include this. I don't seem
to receive my own emails. Does the list not send them back to you? I
haven't been able to find anythin
ol. I wasn't sure if it would work with numerically
indexed arrays, so I tried:
// sillyFunc returns array(0=>1, 1=>2);
ArrayClass::create(sillyFunc())->{"0"}
I just tested it, and that works. If you leave off the curly braces and
quotes, then you obviously get a p
ou can get gvim for Windows) or Kate.
I've tried Quanta as well, but I use Linux for my desktop.
--
Ray Hauge
www.primateapplications.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
es date so that the information will be available tomorrow, next
week, etc.
You *could* increase the session cookie lifetime, but I wouldn't count
on the data being available through a session, especially if they close
their browser.
--
Ray Hauge
www.primateapplications.com
--
PHP Gener
so if you
were using the gmail client, you'd see your response. The FAQs say that
it'll send your message through IMAP/POP if someone replies to your
message, but gmail doesn't do nested threads, so I think it doesn't know
all the time when you were replied to.
--
Ray Haug
Wolf wrote:
Ray Hauge <[EMAIL PROTECTED]> wrote:
Wolf wrote:
I'm curling a site to process some data, all well and good but the results are
baffling...
$result = curl_exec($ch);
curl_close($ch);
echo "".gettype ($result);
Of course that's not all the cod
utputting the numbers, or is that part of the output from
curl? gettype should be returning a string, so I wouldn't think that
gettype would be returning the numbers.
Are you using the CURLOPT_RETURNTRANSFER option? If so, then $result
would have the text of the site on success, and false on
-
http://sperling.com http://ancientstones.com http://earthstones.com
Aww man, I was getting curious to see how nested this conversation would
get. Think of the children! :)
PS. Happy Friday!!!
PPS. I'm hopped up on caffeine so ignore any stupid remarks.
--
Ray Hauge
www.primateapplications.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
t expected and hasn't
bothered me too much.
I've been using the official Zend Eclipse now since the day it came out.
Next week I'm going to switch back to regular Zend Studio. It was
nicer on the RAM and for the most part "Just Worked"(TM).
That's my experi
't specify
absolute paths...
I have a few scripts that use the include_path, and they look something
like:
That way I just have the initial call to set the include path, and I
don't have to worry about it anymore.
--
Ray Hauge
www.primateapplications.com
--
PHP General Mailing
output if you need
$cmd = escapeshellcmd('/path/to/module/configure');
$output = shell_exec($cmd);
echo "done!";
?>
Something like that anyway. That's overly simplified of course, but it
should get you a start if you want to write it yourself.
--
Ray Hauge
www.primateapplications.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
d have been cool, but it would have been complicated. We didn't
have the time to work on it. I think Trac is somewhat similar.
PS. sorry for the thread hijack :)
--
Ray Hauge
www.primateapplications.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
l
for you. Maybe even SCP, since you already have the keys on server A
(as long as you don't have a password when connecting to B or C). rsync
can work over SSH as well, and you could create a simple script to run
rsync as often as you need.
haha, I guess that's not exactly seconding N
ue might be that
your SMTP server is MS Exchange, and it requires authentication.
If that is the case, then search for php SMTP authentication:
http://www.google.com/search?q=php+smtp+authentication&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a
--
R
have the
side-effect of being marginally faster too.
$extension = $this->getFileExtension($file);
if ($extension == 'gif' || $extension || 'png' || $extension == 'jpg') {
// do something
}
That might help, but I would think that the way you had it would al
Philip Thompson wrote:
On Mar 10, 2008, at 8:32 AM, Ray Hauge wrote:
Murat BEŞER wrote:
I can't under stood but PHP gaves me an error:
"UnExcepted $this" for " || $this->getFileExtension($file) == 'jpg' "
When I removed jpg extension check it'
#x27;\n'
(field1, filed2, field3);
I've had to do imports of a million or more records from CSV files, and
PHP is a lot slower than MySQL at importing them :)
--
Ray Hauge
www.primateapplications.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ll
setcookie();
If nothing else it'll help with diagnosing this error when you run into
it again.
--
Ray Hauge
www.primateapplications.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ou're good.
As far as replies, I like bottom posting because it keeps the
conversation flow more in tact. GMail does a good job regardless of
bottom or top posting though.
--
Ray Hauge
www.primateapplications.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
pect? It's people like you that turn a lot of people off to Ruby.
The community is insane!
This was a great read. If nothing else he's funny.
http://terrychay.com/blog/article/php-ruby-evil-good.shtml
--
Ray Hauge
www.primateapplications.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Ray Hauge wrote:
Greg Donald wrote:
On 3/12/08, Robert Cummings <[EMAIL PROTECTED]> wrote:
Just because someone got a flashy new toy doesn't mean I want it. I've
got better things to do than play with flashy toys for the mere purpose
of playing with flashy toys. I like to us
Greg Donald wrote:
On 3/12/08, Ray Hauge <[EMAIL PROTECTED]> wrote:
You
come to a PHP mailing list to proclaim that RoR is better?
No dumbass, I have already been here for a long time:
This is my last post on this thread. It's obvious nobody is going to
convince anyone el
assist in locating odd characters if that's the case, though
I'd think that your editor would display them as well. Usually an
"Unexpected " means that you missed a parenthesis or curly brace, etc.
--
Ray Hauge
www.primateapplications.com
--
PHP General Mailing List (http:/
imensional
array down to a single dimension. In order to use the data, you'd have
to use array_keys() or something similar to use it though.
It's an interesting idea, but I don't know how practical it would be.
--
Ray Hauge
www.primateapplications.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ctions. The point about it causing confusion with
people coming from other languages definitely applies though. This
article also gives me a second idea for this post. How many people
would want closures in PHP?
In summary:
Would you want closures in PHP, and why?
--
Ray Hauge
www.primateappli
s? All I
could find was a bunch of bug reports and other stuff that wasn't what I
was looking for. I would have thought there'd be a page for it in the
manual, but I didn't find one there either.
--
Ray Hauge
www.primateapplications.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
eredoc.
I would suggest not using "{$_POST["param1"]}", like you said. It's
just going to make PHP figure out the string, then put the value in that
string. If you really wanted to make sure it's a string type then you
can do (string)$_POST['param1
and Cheers,
tedd
Have a look at something like this:
http://simplehtmldom.sourceforge.net/
I haven't used it, but if it works you should be able to pull up a list
of all the tags quite easily through the DOM ala:
foreach($dom->find('a') as $node)
echo $no
der("Content-type: application/pdf");
header("Content-disposition: inline; filename=FileName.pdf");
header("Content-length: " . strlen($data));
echo $data;
I just realized that the version of FPDI I've been using is a little
old. There's a new update out,
.
I also will typically use SSH + vi, but Zend Studio (not sure about
Eclipse) can open an SSH connection and edit files that way.
--
Ray Hauge
www.primateapplications.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
otime($inputTime);
$time = strtotime('-1 day', $time);
$outputTime = strftime('%Y-%m%d', $time);
I'm not sure which is more efficient, but it helps when you're looking
for "next thursday" or other things like that.
--
Ray Hauge
www.primateapplications.com
--
PHP
Don't forget to check your phpinfo() page for the annual easter egg.
--
Ray Hauge
www.primateapplications.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
tedd wrote:
At 9:23 AM -0500 4/1/08, Ray Hauge wrote:
Don't forget to check your phpinfo() page for the annual easter egg.
--
Ray Hauge
www.primateapplications.com
You got me.
Cheers,
tedd
Here's the image that I see on PHP 5.1.0. My 5.2.5 site has a distorted
image instead
expecting with preg_replace or some similar
function.
http://hacktux.com/bashmath
http://sysblogd.wordpress.com/2007/08/26/let-bash-do-the-math-doing-calculations-using-that-bash/
I'm not sure if that's any more secure than eval though.
--
Ray Hauge
www.primateapplications.c
nsupportable. I find the best way to do that is to come up
with some little program that you code up for fun to help get you
through the learning stages. You'll learn more figuring out how to get
something to work than just copying and pasting code.
That's my 2 cents. Hope that hel
max-length of the field, and there are also
configurations to determine what type of field it is (text, phone, date,
textarea, etc.) and security settings based on the user logged in. This
has helped keep my template files very clean, and I still have full
control over the form by not includi
the file
// print it out.
Or you can do it straight from MySQL, which is a lot faster:
SELECT [fields] INTO OUTFILE '/path/to/file.csv' FIELDS TERMINATED BY
',' OPTIONALLY ENCLOSED BY '"' LINES TERMINATED BY '\n' FROM [tables]
WHERE [conditions]
and cannot
be read without OCR. I got stumped on that one for a while when I was
doing something similar :)
--
Ray Hauge
www.primateapplications.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
cked at the state of their software. Typically
healthcare systems are further behind in the technology adoption, but
having to deal with workarounds all day long sure gets old.
--
Ray Hauge
www.primateapplications.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Richard Heyes wrote:
Does anyone have any more examples of the new canvas element they've
written?
FF only: http://www.phpguru.org/canvas.html
This is a pretty interesting use of Canvas as well. Thanks for sharing!
http://ejohn.org/blog/processingjs/
--
Ray
eues. It was an internal
app, or else I'd link it :(
--
Ray Hauge
www.primateapplications.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
sure
if XUL would cause extra programming overhead than regular HTML/JS.
--
Ray Hauge
Programmer/Systems Administrator
American Student Loan Services
www.americanstudentloan.com
1.800.575.1099
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ot;ON" is probably a Bad Idea for various
> reason.
>
> Using short tags (
> Finally, echo "$previous"; is silly, as the quote marks serve no
> purpose at all. echo $previous; would be better.
>
> --
> Like Music?
> http://l-i-e.com/artists.htm
A bit
. Thanks.
--
Ray Hauge
Programmer/Systems Administrator
American Student Loan Services
www.americanstudentloan.com
1.800.575.1099
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
nt
> it to listen on?
>
> (Which, by the way, is /var/run/mysqld/mysqld.sock)
>
> Thank you for any advice.
>
> --
> Dave M G
I ran into this problem myself. I had to not use --skip-networking. I use
Slackware linux, so that was in the /etc/rc.d/rc.mysqld script.
I don't k
the content-type header, and just have the text/xml.
HTH
--
Ray Hauge
Programmer/Systems Administrator
American Student Loan Services
www.americanstudentloan.com
1.800.575.1099
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ed of trying to find one,
so I made it myself. It's very specific to what we do here though. I'd
definitely be interested in that info though, because we're still looking,
and I'm not totally happy with mine, as I didn't have a whole lot of time to
write it.
--
g at me to ask some questions. I just wanted him to
do the quiz and that was pretty much it ;)
--
Ray Hauge
Programmer/Systems Administrator
American Student Loan Services
www.americanstudentloan.com
1.800.575.1099
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
because they have to know at least the fundamentals of
PHP security.
--
Ray Hauge
Programmer/Systems Administrator
American Student Loan Services
www.americanstudentloan.com
1.800.575.1099
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
iles, or set the timeout to a day or so.
I wouldn't suggest sending the PHPSESSID via a form. That leads to people
being able to hijack sessions
; After this number of seconds, stored data will be seen as 'garbage' and
; cleaned up by the garbage collection process.
session.
On Saturday 29 July 2006 05:47, Jochem Maas wrote:
> Jon Anderson wrote:
> > Just replying to the list on this one 'cause I'm pretty sure you're on
> > it. :-)
> >
> > AFAIK, with many caches the web server cache and CLI caches are
> > exclusive to each process. The APC manual seems to suggest that
http://us3.php.net/manual/en/ref.curl.php
and the curl man page for more info.
or, you can use your own HTTP implementation ;)
HTH
--
Ray Hauge
Programmer/Systems Administrator
American Student Loan Services
www.americanstudentloan.com
1.800.575.1099
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
er to keep
security in mind though.
--
Ray Hauge
Programmer/Systems Administrator
American Student Loan Services
www.americanstudentloan.com
1.800.575.1099
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ries up the directory tree are
> readable/executable, as well.
I think he's asking if the php program is executable to you, the user. It is
possible that it would only have execute for owner and group, not other.
--
Ray Hauge
Programmer/Systems Administrator
American Student Loan Services
www.
On Tuesday 08 August 2006 09:01, Ivo F.A.C. Fokkema wrote:
> On Tue, 08 Aug 2006 09:01:42 -0500, Ray Hauge wrote:
> > On Tuesday 08 August 2006 08:47, Ivo F.A.C. Fokkema wrote:
> >> > Does the user running the cron have permission to execute the php
> >> > binary
gin.
>
> How do I create a file that the user saves, and is not stored on the
> server?
>
> --
> Dave M G
For re-encoding to EUC-JP, I would check out the multibyte functions...
specifically mb_convert_encoding:
http://us2.php.net/manual/en/function.mb-convert-encoding.php
HTH
--
re installation instructions from php.net:
>
> http://www.php.net/manual/en/install.unix.php
>
> Good luck!
>
> Jonathan
Also, when compiling it yourself you can specify what extensions you want.
This allows you to keep your install as minimal as possible for your needs,
w
here, and it defines all the
iconv_* and iconv compiler flags etc. I can also vouch that using iconv on
the command line works just fine.
Thanks,
--
Ray Hauge
Programmer/Systems Administrator
American Student Loan Services
www.americanstudentloan.com
1.800.575.1099
--
PHP General Mailing List
t's not loading?
Thanks,
--
Ray Hauge
Programmer/Systems Administrator
American Student Loan Services
www.americanstudentloan.com
1.800.575.1099
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Friday 11 August 2006 18:15, Michael B Allen wrote:
> On Fri, 11 Aug 2006 17:50:12 -0500
>
> Ray Hauge <[EMAIL PROTECTED]> wrote:
> > Hello everyone,
> >
> > I successfully compiled PHP 4.4.3 and PHP 5.1.4 today. I'm having a
> > problem with loadi
On Sunday 13 August 2006 22:00, Chris wrote:
> Ray Hauge wrote:
> > I use Slackware linux, and XMLRPC is not compiled in by default with my
> > distro, so I'm compiling PHP myself. It's always been a simple enough
> > task. First I get and install the required xmlrp
n about XML-RPC with XUL?
Thanks,
--
Ray Hauge
Programmer/Systems Administrator
American Student Loan Services
www.americanstudentloan.com
1.800.575.1099
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
l_exec. There'sa comment about capturing stderr. I'm
not sure if shell_exec captures stderr, but it should at least point you in
the right direction. Just do a search for stderr and you should find some
good info.
--
Ray Hauge
Programmer/Systems Administrator
American Student Loan
t and avoid the potentially massive security hole you're
> > building?
> >
> > -Stut
>
> Perhaps poor illustration of the question...the question being how to
> issue system like commands in PHP which would allow you to trap not only
> stdout, but also stderr.
> because I'm not sure where in the $_SERVER array my URL is being stored.
>
> Any advice on how to proceed here would be greatly appreciated. Thank you.
>
> --
> Dave M G
Richard has a good article related to this. Mostly it's about how to force a
download with a corr
php+active+directory+ldap+authentication&btnG=Search
The question is how secure is it. You can set up LDAP to use SSL, so that
would make it more secure. Kerberos is more secure than LDAP, and you
_could_ set it up so that the browser forwards the ticket on to mod_kerb for
authentication, thus not needing a sign-on other than to the domain. From my
experiences that isn't exactly easy to set up though.
--
Ray Hauge
Programmer/Systems Administrator
American Student Loan Services
www.americanstudentloan.com
1.800.575.1099
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I find that the Yahoo User Interface Library is pretty nice.
http://developer.yahoo.com/yui/index.html
I'm not sure that you really need a library to do what you want though. It
could be as simple as using a div, and then the buttons change text with
innerHTML (as long as you're
col_1'] == 'value_1'
> is true 2nd case will never be executed?
> Does it mean I CANNOT use switch() in this case?
>
> -afan
Using a switch like this is more equivalent of
if(something){
// true
} else {
// false
}
You're doing :
if(something1){
// true 1
}
if(s
On Tuesday 29 August 2006 13:44, Ray Hauge wrote:
> Using a switch like this is more equivalent of
>
> if(something){
> // true
> } else {
> // false
> }
Actually, it's more like an if/elseif/else (if you use default:) or if/elseif
(without default:)
--
Ra
On Tuesday 29 August 2006 14:12, [EMAIL PROTECTED] wrote:
> No. They are two if statements because they are indepedent.
>
> > On Tuesday 29 August 2006 13:44, Ray Hauge wrote:
> >> Using a switch like this is more equivalent of
> >>
> >> if(something){
&
y
offloaded creating passwords to htpasswd.
I would suggest looking at the code where new accounts are created (if there
is code to do that). That should tell you what's going on.
--
Ray Hauge
Programmer/Systems Administrator
American Student Loan Services
www.americanstudentloan.com
1.80
reasons for not using short tags are:
1) Not everyone has access to the ini file, and might not be able to use short
tags. If you're releasing your code to the public, you want to work in as
many places as possible, so then you should use
--
Ray Hauge
Programmer/Systems Administrator
ed-sources.com
First I would check to make sure that permissions are set correctly. PHP
doesn't (necessarily) run under your user account. Other than that I have no
idea.
HTH
--
Ray Hauge
Programmer/Systems Administrator
American Student Loan Services
www.americanstudentloan.com
1.800.575
00 Federal Street, Suite 201
> Troy NY 12180
>
> Tel: (518) 687-6700 x154
> Fax: (518) 687-6799
> Email: [EMAIL PROTECTED]
> http://www.informed-sources.com
This may be due to my huge lack of experience with Mac OSX, but I would think
it has its own permissions for files. I'
e been provided to the Mac OS X
> user for that share.
>
> This is the error I get:
> Warning: dbase_open() [function.dbase-open]: unable to open database
> /Volumes/foresight/2qc0831.dbf in
> /Library/WebServer/Documents/site.com/folder/file.php on line 29
>
> On 9/12/06 5:4
Hmmm... That's odd.
I would use your terminal program, then change directory to the location of
the file, and do "pwd". That should give you your working directory. If you
can get to it on OSX, and PHP is on OSX, then PHP should be able to see the
file in the same path.
You could try getting a directory listing with PHP to see if you can see what
files are in there, or if you can access that directory through PHP.
http://us2.php.net/manual/en/function.opendir.php
--
Ray Hauge
Programmer/Systems Administrator
American Student Loan Services
> 716.856.9675
> [EMAIL PROTECTED]
nice catch.
My suggestion would be to change the group to the group the webserver runs as
(nobody, www, etc.) and allow read and write access to the group level as
well. That should solve your problem.
--
Ray Hauge
Programmer/Systems Administrator
Am
l S. Johari
> Supervisor, Internet & Administration
> Informed Marketing Services Inc.
> 500 Federal Street, Suite 201
> Troy NY 12180
>
> Tel: (518) 687-6700 x154
> Fax: (518) 687-6799
> Email: [EMAIL PROTECTED]
> http://www.informed-sources.com
You could just try usi
1 - 100 of 228 matches
Mail list logo