Luke Barker wrote:
> I have made a 404 custom error handler, using .htaccess in a directory
> - it is usppoed to route all unfound pages to error.php, and works as
> expected for .htm and .html pages as well as gifs etc. But ofr .php
> scripts, e.g /path/to/wrongurl.php it doesnt show my page -
>
Since i enabled safe_mode in PHP, commands like exec("mysqldump >
/tmp/123.sql") dont work any longer. So is redirection ">" disabled in
safe_mode ?
mysqldump is executable from my safe_bin dir an i got write permission
on the specified directory.
Thanks in advance.
With regards
Mirko Heise
--
P
Requested file.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Are you talking about page encoding? if so try utf8 on the pae with the
form. () it handles just about any language for input. and as long as
you don't want to do a search on the input it can go right into the
database (table character_set = utf8) for later extraction and display
on a utf8
Hi there, I am pretty new to writing classes (and pretty new to PHP
itself), but I was wondering what was the best format for constructing
classes. Now for example, i have written 2 versions of a class that
accomplish the exact same thing. And I was just wondering if there are
any advantages to
On Thursday 20 January 2005 09:17, Sephiroth wrote:
> "Jason Barnett" <[EMAIL PROTECTED]> ?
> news:[EMAIL PROTECTED]
>
> > You can use the file functions with URLs so long as you have
> > allow_url_fopen set to TRUE in your php.ini.
>
> Doesn't works even
HOW does it not work? Did you RTFM on
Hello Bruce,
Wednesday, January 19, 2005, 6:06:28 PM, you wrote:
BD> i'm not a guru... but this sounds like something that someone
BD> should have already done (or thought about) in perl. you might
BD> find that there's already a perl app/solution that gets you close
BD> to what you need, that wou
On Thu, 20 Jan 2005 00:13:35 -, Mikey <[EMAIL PROTECTED]> wrote:
> Hi NG!
>
> Does anyone here know of a way of getting at the user account information
> from a windows domain controller from a Linux box, specifically in PHP?
>
The Windows domain controllers run LDAP. So, you can use the PHP
> If you want to just authenticate the user logged in a Windows domain,
> use Apache mod_ntlm.
Nah, I need to be able to syphon off a whole list of users and their account
details (but not their password). Thanks anyway!
Mikey
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, v
Hello,
on 01/19/2005 10:13 PM Mikey said the following:
Hi NG!
Does anyone here know of a way of getting at the user account information
from a windows domain controller from a Linux box, specifically in PHP?
I was thinking of writing a COM object for the windows box running a simple
socket service
Well, I went to CPAN and found:
http://www.cpan.org/modules/by-category/22_Microsoft_Windows_Modules/Win32/W
in32-AD-User-0.01.readme
Looks like that will have what I need, and from what I remember socks are
dead simple in Perl - time to read up again!
Mikey
--
PHP General Mailing List (http:/
mikey...
i'm not a guru... but this sounds like something that someone should have
already done (or thought about) in perl. you might find that there's already a
perl app/solution that gets you close to what you need, that would allow you to
either use the perl solution, or rewrite what it does
"Jason Barnett" <[EMAIL PROTECTED]> ?
news:[EMAIL PROTECTED]
>
> You can use the file functions with URLs so long as you have
> allow_url_fopen set to TRUE in your php.ini.
>
Doesn't works even
allow_url_fopen is true
PHP 4.3.10
Apache 1.3.27
Platform Windows 98
--
PHP General Mailing List
Hi again - thought it best to keep the two topics separately...
I have just leased a virtual hosting package and want to provide GPRS access
to my email server using WML.
Now I have a couple of test pages that I have put up on the server that I
want to view, but can't seem to get to them. I am n
Hi NG!
Does anyone here know of a way of getting at the user account information
from a windows domain controller from a Linux box, specifically in PHP?
I was thinking of writing a COM object for the windows box running a simple
socket service for updates, but that seems like an awful lot of codi
Richard Lynch wrote:
Ben Edwards (lists) wrote:
I know this is not strictly speaking a PHP question but it is to do with
a PHP app.
I have a form with a number of hidden values in it. After the post
print_r( $_POST ) shows all the values except these (this is copied from
'Show Source' in the brows
Ben Edwards (lists) wrote:
I know this is not strictly speaking a PHP question but it is to do with
a PHP app.
I have a form with a number of hidden values in it. After the post
print_r( $_POST ) shows all the values except these (this is copied from
'Show Source' in the browser.
long shot: tr
On Thursday 20 January 2005 07:07, Ben Edwards (lists) wrote:
> I know this is not strictly speaking a PHP question but it is to do with
> a PHP app.
>
> I have a form with a number of hidden values in it. After the post
> print_r( $_POST ) shows all the values except these (this is copied from
>
> Xuefer Tinys wrote:
> > i have a big array with 20k elements, i have no problem building it,
> > because the elements is recv from socket, i can socket_select() on 1k
> > clients, read from them.
> > i plan to unset the whole array every 1hour
> > this is a not big problem when for a few times, i
> having said that any HTML in production envs should degrade nicely for
> older browsers. it doesn't have to look the same but it should be
> accessible.
It won't be if you use CSS.
>> I can't count the number of CSS sites I've skipped because their links
>> don't work (in my browser) due to CSS
Ben Edwards (lists) wrote:
> I know this is not strictly speaking a PHP question but it is to do with
> a PHP app.
>
> I have a form with a number of hidden values in it. After the post
> print_r( $_POST ) shows all the values except these (this is copied from
> 'Show Source' in the browser.
>
>
Richard Lynch wrote:
Dominic Schanen wrote:
I changed the scheduled task to use php.exe instead of php-win.exe and
that cleared up the errors with unloading the profile that were
appearing in the application log. Could this possibly be a bug with
php-win.exe and not cleaning up properly?
I think i
I know this is not strictly speaking a PHP question but it is to do with
a PHP app.
I have a form with a number of hidden values in it. After the post
print_r( $_POST ) shows all the values except these (this is copied from
'Show Source' in the browser.
Any idea why they wont post?
Ben
--
Tim Burgan wrote:
> I am continually getting a data type mismatch error (relating to the
> boolean columns) when trying to execute this code.
>
> I've tried removing the single quotes, but that returns a syntax error.
I've forgotten the rules for MS-Access, but...
Perhaps try 1 and 0 as your bool
Al wrote:
> I'm working on a script that can be initiated by a cronjob or from a
> browser.
>
> I want the script to act differently depending on which one called it.
Another solution:
http://us2.php.net/php-sapi-name
I personally think this is the cleanest and most maintainable solution
posted s
Rory McKinley wrote:
> public function checkConnection()
> {
> return $this->admin_instance->checkConnection()
WILD GUESS!!!
In early days of PHP objects, you sometimes couldn't use two arrow
operators with, errr, references???
So an easy way to maybe fix this and move
Dominic Schanen wrote:
> I changed the scheduled task to use php.exe instead of php-win.exe and
> that cleared up the errors with unloading the profile that were
> appearing in the application log. Could this possibly be a bug with
> php-win.exe and not cleaning up properly?
I think it's just the
Jason Barnett wrote:
> Dominic Schanen wrote:
>> I changed the scheduled task to use php.exe instead of php-win.exe and
>> that cleared up the errors with unloading the profile that were
>> appearing in the application log. Could this possibly be a bug with
>> php-win.exe and not cleaning up pr
> $db_sql = "INSERT INTO tblStudents (name, username, password, expiry,
> permissions, website, displayUser) VALUES ('Joe',
> 'joejoe','pw4joe','20-Jan-05','staff','true','false');";
>
> In using MS Access via COM, the data types for each column (in order)
> is: string, string, string, date, strin
Richard Lynch wrote:
Jochem Maas wrote:
font
tags
suck
I know nothing about MSSQL - thankgod (sorry I really can't help you
there) - but I can recommend eradicating all font tags... everywhere...
take no prisoners... death to frontpage (oh sorry got carried away :-).
try this instead:
# Can´t esta
Xuefer Tinys wrote:
> i have a big array with 20k elements, i have no problem building it,
> because the elements is recv from socket, i can socket_select() on 1k
> clients, read from them.
> i plan to unset the whole array every 1hour
> this is a not big problem when for a few times, it takes me 0
Hello,
I'm trying to insert a new row using the following SQL:
$db_sql = "INSERT INTO tblStudents (name, username, password, expiry,
permissions, website, displayUser) VALUES ('Joe',
'joejoe','pw4joe','20-Jan-05','staff','true','false');";
In using MS Access via COM, the data types for each colu
Jochem Maas wrote:
> font
> tags
> suck
>
> I know nothing about MSSQL - thankgod (sorry I really can't help you
> there) - but I can recommend eradicating all font tags... everywhere...
> take no prisoners... death to frontpage (oh sorry got carried away :-).
> try this instead:
>
>
> # Can´t est
Rory McKinley wrote:
Hi All
This is probably just a case of me being Mr Thicky, but maybe someone
can point out the error mf my ways:
I have two classes, call them admin and module. Admin stores login
details as well as a pointer to the DB connection. Module will run
various queries. To do that
Justin French wrote:
On 19/01/2005, at 10:51 PM, Marek Kilimajer wrote:
...
I use simple define('DEBUG', true'); in the main config file where
also database login info is stored.
I like to use exactly the same files for both development and live
servers... it makes it much easier to mirror the
Hi,
use base64_encode() and base64_decode
actually, base32_encode or hexencode would be better, but oh my, php doesn't
have these built in.
If you're using PEAR there is a DataObject_Filter class somewhere that's
handy for encoding decoding on the fly.
Kind regards,
Michiel
*
Pablo D Marotta wrote:
Hi there..
I´m connecting to a Ms Sql Server 2000, with the system administrator´s name,
and its password.
It always works fine, but... I know it´s not the safest way of connecting, so I
want to use some ordinary user names and passwords.
The problem is that I just can´t make
This should work
Please select a site to visit
http://www.google.com";>Google
http://www.yahoo.com";>Yahoo
http://www.microsoft.com";>MS
On Wed, 19 Jan 2005 22:23:52 +0100, Jochem Maas <[EMAIL PROTECTED]>
wrote:
Ricky Morley wrote:
Like this. Here's the html code. I'm sure you can conve
Ricky Morley wrote:
Like this. Here's the html code. I'm sure you can convert to the
appropriate PHP
this is totally not PHP but...
shouldn't that be something like:
which is evil and crude, but does 2 things: uses the selectedIndex to
get the value of the selection options and only sets t
Hi there..
I´m connecting to a Ms Sql Server 2000, with the system administrator´s name,
and its password.
It always works fine, but... I know it´s not the safest way of connecting, so I
want to use some ordinary user names and passwords.
The problem is that I just can´t make it work, it always th
Richard Lynch wrote:
Dominic Schanen wrote:
I've written several command line scripts to run as scheduled tasks on a
Windows 2000 Server machine. They run fine, no problems. However, the
application log is filling up with errors stating that windows was
unable to unload my registry profile. I know
Like this. Here's the html code. I'm sure you can convert to the
appropriate PHP
http://www.google.com";>Google
http://www.yahoo.com";>Yahoo
http://www.microsoft.com";>MS
On Wed, 19 Jan 2005 20:10:25 +0200, William Stokes <[EMAIL PROTECTED]>
wrote:
Hello,
Hope someone can give some d
Dominic Schanen wrote:
> I've written several command line scripts to run as scheduled tasks on a
> Windows 2000 Server machine. They run fine, no problems. However, the
> application log is filling up with errors stating that windows was
> unable to unload my registry profile. I know the PHP scrip
Marek Kilimajer wrote:
> Jason Barnett wrote:
>> Valter Toffolo wrote:
>>
>>> ok i have one server with a single domain, each user have it's home
>>> with a public_html so i get mydomain.com/~user1/ and
>>> mydomain.com/~user2/ and so on. but each user might like to use
>>> sessions so how can i ma
> I agree. That is a wise statement, and I have tried to do this with
> regular
> expressions but this doesn't deal with relevance at all, or is there
> something that I am missing? I suppose I could do multiple searches on my
> data to look for "sports cars" first, "cars" second, and "sports" last
Graham Anderson wrote:
> What would be the standard/accepted way to do this?
>
> is it better to spell it out in the html email ?
> Download:
> Mac PC Linux ?
YES!
The software I want may not be used on the machine where I read email.
In fact, odds are really good it's *N
Sephiroth wrote:
> Hi all,
>
> How to access remote files with php?
> For ex:
> $sFile = "http://www.php.net/123.txt";;
> if (file_exists($sFile)) {
> $hFile = fopen($sFile);
> ...
> fclose($hFile);
> }
At the risk of being accused of copying whatshisname...
"Yes."
:-)
You're pretty much
Greg Cullen wrote:
> Relatively new to PHP. Having an issue trying to nest sql statements.
> Basically I am trying to pull a variable from SQL1, Pass it as a
> Variable/Bind or Parm to SQL2 and then Go back to SQL1 and pull the next
> value and pass to SQL2 again for processing.
>
> It seems like
William Stokes wrote:
> I would like to add some debugging/info code to my pages. In test
> environment of course. Any ideas how to do this? I mean for example to
> print
> to a web page the line number when the script fails or something like
> that.
> It's a pain on the **s to hunt typo's by just
Tim Burgan wrote:
> I have a for loop to create a HTML combo box that displays the 10 year
> values, starting from today's year and incrementing until 10 years it
> reached.
>
> The output of the loop to the browser is weird.
> If anyone has time, can you please let me know where I screwed up?
Ord
Jeremiah Johnson wrote:
Hi All,
I'm wondering if anyone is planning on attending PHP Tropics
(www.phparch.com/tropics), and if so whether anyone would be
interested in splitting a room with a non-smoker.
Thanks,
Jeremiah
I feel really, really nerdy saying this but... I think this sounds like
a lot
Date: Fri, 14 Jan 2005 15:32:15 -0600
From: Redmond Militante <[EMAIL PROTECTED]>
To: php-general@lists.php.net
Subject: Re: [PHP] Re: get user attributes php/ldap/win2k active directory
Reply-To: Redmond Militante <[EMAIL PROTECTED]>
In-Reply-To: <[EMAIL PROTECTED]>
User-Agent: Mutt/1.4.2.1i
X-Sen
Hello,
Hope someone can give some directions...
I'm trying to create a list box of links to other pages. I just can't figure
out how to move to the other page whe user selects one of the options in the
list box.
here's the code...
$sql="SELECT team_name FROM teams";
$result=mysql_query($sql);
I have a form where people input some text, which is then incorporated
into an HTML snippet which appears in a textarea for them to copy &
paste into a web page.
People will be entering foreign language stuff as well as special
characters like copyright, so I have to be sure this is handled
pr
On Wed, 2005-01-19 at 07:47, Al wrote:
> I'm working on a script that can be initiated by a cronjob or from a browser.
>
> I want the script to act differently depending on which one called it.
>
> --
I do not know what the definitive answer is but there are a bunch of
environment differences.
i have a big array with 20k elements, i have no problem building it,
because the elements is recv from socket, i can socket_select() on 1k
clients, read from them.
i plan to unset the whole array every 1hour
this is a not big problem when for a few times, it takes me 0.02 seconds
but after many hou
Hi All,
I'm wondering if anyone is planning on attending PHP Tropics
(www.phparch.com/tropics), and if so whether anyone would be
interested in splitting a room with a non-smoker.
Thanks,
Jeremiah
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsu
Michael Sims wrote:
Richard Lynch wrote:
Brian A. Anderson wrote:
[...]
I am thinking of incrementally adding the resultant hits into two
associative arrays with the link to the data and a calculated
relevance value, and sorting this array by these relevences.
[...]
One Axiom:
Chris Bruce wrote:
Hi,
I am looking for a way to write to a file what the browser would see
(raw html) when viewing a dynamic PHP page. I have numerous include
files, MySQL db queries, loops etc. and I want to generate the static
result of that file and save it as an html page. I have toyed a li
Dominic Schanen wrote:
I changed the scheduled task to use php.exe instead of php-win.exe and
that cleared up the errors with unloading the profile that were
appearing in the application log. Could this possibly be a bug with
php-win.exe and not cleaning up properly?
Thanks,
Dominic
Honestly, I
On Wed, 2005-01-19 at 05:51, Marek Kilimajer wrote:
> Justin French wrote:
> > On 19/01/2005, at 5:36 PM, William Stokes wrote:
> >
> >> I would like to add some debugging/info code to my pages. In test
> >> environment of course. Any ideas how to do this? I mean for example to
> >> print
> >> to
M. Sokolewicz wrote:
Gerard Samuel wrote:
Does anyone know when the exception objects listed in
item #6 at http://www.php.net/~helly/php/ext/spl/ will be available
in base php5??
Thanks
when you install the SPL extension :) I don't think it's planned for
php5-source though
Correct me if Im wrong.
I changed the scheduled task to use php.exe instead of php-win.exe and
that cleared up the errors with unloading the profile that were
appearing in the application log. Could this possibly be a bug with
php-win.exe and not cleaning up properly?
Thanks,
Dominic
Dominic Schanen wrote:
I've writte
Here is a class that uses mcrypt that might be helpful:
Tom - this class is awesome. Took 5 seconds to add to my site and
worked like a charm on the first try. THANKS!! :)
- Brian
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Sephiroth wrote:
Hi all,
How to access remote files with php?
For ex:
$sFile = "http://www.php.net/123.txt";;
if (file_exists($sFile)) {
$hFile = fopen($sFile);
...
fclose($hFile);
}
Regards,
Sephiroth
You can use the file functions with URLs so long as you have
allow_url_fopen set to TRUE i
Hi All
This is probably just a case of me being Mr Thicky, but maybe someone
can point out the error mf my ways:
I have two classes, call them admin and module. Admin stores login
details as well as a pointer to the DB connection. Module will run
various queries. To do that it needs access to t
[snip]
I'm working on a script that can be initiated by a cronjob or from a
browser.
I want the script to act differently depending on which one called it.
[/snip]
COOL!
I am suspecting that there is a question here, and I suspect the
question is "how do I do this?" To see if the browser called
[snip]
Relatively new to PHP. Having an issue trying to nest sql statements.
Basically I am trying to pull a variable from SQL1, Pass it as a
Variable/Bind or Parm to SQL2 and then Go back to SQL1 and pull the next
value and pass to SQL2 again for processing.
$result1 = mysql_query('show table
I'm working on a script that can be initiated by a cronjob or from a browser.
I want the script to act differently depending on which one called it.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On 19/01/2005, at 10:51 PM, Marek Kilimajer wrote:
Justin French wrote:
On 19/01/2005, at 5:36 PM, William Stokes wrote:
I would like to add some debugging/info code to my pages. In test
environment of course. Any ideas how to do this? I mean for example
to print
to a web page the line number when
Hi All,
I've seen a script somewhere which accepts a crontab file for input, and
then displays all jobs in a calendar-like screen. However, I forgot the
name. Searching Google didn't help me either.
Does anyone know the name (and if possible, an url) of this script?
Thanks in advance,
Erwin Kerk
Hi everybody,
How do you save the date and time in the database? Time stamp or date
and time? GMT timezone or the server timezone, or maybe the "configs"
timezone? And when displaying apply user timezone to the GMT date?
I think it's easier to save in timestamp format, so it's easy to
convert t
Justin French wrote:
On 19/01/2005, at 5:36 PM, William Stokes wrote:
I would like to add some debugging/info code to my pages. In test
environment of course. Any ideas how to do this? I mean for example to
print
to a web page the line number when the script fails or something like
that.
It's a p
William Stokes wrote:
I'm trying to get the ini_set("error_reporting",E_ALL); work. No matter what
kind of errors I write I just get blank screen when the script fails. Do I
need to also echo the errors to screen? Or can the error reporting be
disabled by the server admin (my adsl operator)? so
> A lame Example to illustrate the purpose of Application-Scope
> variables would be the persistant DB connections. Not 100% the same
> but it's for the same purpose
>
> So if you could have a huge object persistant( Application-Scope
> object ) that does alot of work for you then that object
To view the terms under which this email is distributed, please go to
http://disclaimer.leedsmet.ac.uk/email.htm
> -Original Message-
> From: Tim Burgan [mailto:[EMAIL PROTECTED]
> Sent: 19 January 2005 06:19
>
> I have a for loop to create a HTML combo box that displays
> the 10 yea
Gerard Samuel wrote:
Does anyone know when the exception objects listed in
item #6 at http://www.php.net/~helly/php/ext/spl/ will be available
in base php5??
Thanks
when you install the SPL extension :) I don't think it's planned for
php5-source though
--
PHP General Mailing List (http://www.php.
I'm trying to get the ini_set("error_reporting",E_ALL); work. No matter what
kind of errors I write I just get blank screen when the script fails. Do I
need to also echo the errors to screen? Or can the error reporting be
disabled by the server admin (my adsl operator)? so that no errors are
pr
78 matches
Mail list logo