hi,
> Here's what's going on. I have a page which calls itself in a .
> On this page, I include two classes from other file I've created. On
> load, the page reads the class stuff just fine. If I submit the form
> (call the page again), then the class doesn't like to show any results.
can you pos
save below as testcookie.php, request it from your browser twice, what
do you get at 2nd time?
On 11/22/05, Kristen G. Thorson <[EMAIL PROTECTED]> wrote:
> Anyone have any suggestions? I'm still stuck.
>
>
> thanks,
> kgt
>
>
>
> Kristen G. Thorson wrote:
>
> > I'm having problems with a custo
Can anyone help me please? I'm not an advanced PHP user!
I'm looing for a way to sort the array returned by the GLOB function. I would
like to be able to sort the result by filemtime.
Any good ideas?
Thanks,
Mark
On Tuesday 22 November 2005 11:41, Mark Lucas wrote:
> Can anyone help me please? I'm not an advanced PHP user!
>
> I'm looing for a way to sort the array returned by the GLOB function. I
> would like to be able to sort the result by filemtime.
>
> Any good ideas?
I think you can walk the array re
Georgi Ivanov wrote:
On Tuesday 22 November 2005 11:41, Mark Lucas wrote:
Can anyone help me please? I'm not an advanced PHP user!
I'm looing for a way to sort the array returned by the GLOB function. I
would like to be able to sort the result by filemtime.
Any good ideas?
I think you can
Geoff - Creative Living wrote:
Hi
Does anyone know of an open source or commercial php library for parsing
decision tables? Or failing that, a more general business rules parser?
I can't find anything on the usual php script sites.
Unless I'm missing something, this seems to be a gap - in the J
hi all,
how can i call static methods of a class whose name is variable.. something like
I can do this with reflection by creating a ReflectionMethod object
then invoke()ing it, but is there a better way?
Thanks
-ahmed
Hi Mike
> I'm not aware of any. I am kind of developing my own for my current
> Materials System.
Sounds as though, like me, you might just get away with a decision table
parser rather than a fully-fledged corporate rules engine. though your
application is a bit more complex than ours.
It's su
[snip]
It's surprising to me that we are faced with rolling our own or working
with Java - suggests that PHP still has a bit to go as a platform for
serious business systems.
[/snip]
The lack of a decision table/business rule parser does not suggest that PHP
has a way to go as a platform for serio
Ahmed Saad schrieb:
> hi all,
>
> how can i call static methods of a class whose name is variable.. something
> like
>
> I can do this with reflection by creating a ReflectionMethod object
> then invoke()ing it, but is there a better way?
> Thanks
>
> -ahmed
For
$args=array('para1','para2');
Ahmed,
call_user_func(array($className, 'doSomething'));
Cheers,
David Grant
Ahmed Saad wrote:
> hi all,
>
> how can i call static methods of a class whose name is variable.. something
> like
>
> I can do this with reflection by creating a ReflectionMethod object
> then invoke()ing it, but i
Geoff - Creative Living wrote:
Hi Mike
I'm not aware of any. I am kind of developing my own for my current
Materials System.
Sounds as though, like me, you might just get away with a decision table
parser rather than a fully-fledged corporate rules engine. though your
application is a bit
Ahmed Saad wrote:
hi all,
how can i call static methods of a class whose name is variable.. something like
I can do this with reflection by creating a ReflectionMethod object
then invoke()ing it, but is there a better way?
try call_user_func() and/or call_user_func_array()
e.g.
call_user_fu
On Tue, Nov 22, 2005 at 02:49:41PM +0100, Jochem Maas wrote:
> Geoff - Creative Living wrote:
> >Hi Mike
> >
> >As an alternative, I worked briefly on a native PHP Petri-net workflow
> >engine with a guy called Tony Marston before we parted ways. He has
> >written it up here:
> >
> >http://www.tony
I'm attempting to read a list of files in a directory using readdir()
but am having problems with mpeg files not seemingly being read.
Cope snippet:
$count = 0;
while (false !== ($file = readdir($open_dir)))
{
if ($file != '.' && $file != '..')
{
n.g. wrote:
save below as testcookie.php, request it from your browser twice, what
do you get at 2nd time?
On 11/22/05, Kristen G. Thorson <[EMAIL PROTECTED]> wrote:
Anyone have any suggestions? I'm still stuck.
thanks,
kgt
Kristen G. Thorson wrote:
I'm having problems with a
[snip]
I'm attempting to read a list of files in a directory using readdir()
but am having problems with mpeg files not seemingly being read.
Cope snippet:
$count = 0;
while (false !== ($file = readdir($open_dir)))
{
if ($file != '.' && $file != '..')
{
On 11/22/05, Jay Blanchard <[EMAIL PROTECTED]> wrote:
> [snip]
> I'm attempting to read a list of files in a directory using readdir()
> but am having problems with mpeg files not seemingly being read.
>
> Cope snippet:
>
> $count = 0;
> while (false !== ($file = readdir($open_dir))
[snip]
Yes $open_dir is the handle from opendir().
The file_exists is simply checking for an associated file elsewhere as
I'm looking for video files and thumbnails.
As I said, this works fine for avi suffixed files but not mpg or mpeg
suffixed files.
[/snip]
Make sure to always hit reply-all, o
[snip]
> Make sure to always hit reply-all, or the e-mail will not go back to the
> list.
Yep, realised that after hitting 'send'. :-(
> If file exists is looking for an associated files is it probable that the
> .mpg files do not have one associated with it in the other directory?
It is probabl
Graham,
Is safe mode enabled in your config file? If safe mode is on, PHP will
check the file to ensure it is owned by the same user executing the
script. If this condition fails, file_exists() will not work on the file.
http://php.net/file_exists
http://php.net/manual/en/features.safe-mode.php
[snip]
> If file exists is looking for an associated files is it probable that the
> .mpg files do not have one associated with it in the other directory?
It is probable, that's why the check is there, but in this case the
associated file(s) definitely does exist. If I simply change the file
exten
Jay Blanchard wrote:
But I sure would like to see the URL once he has clicked it. Have you tried
changing to $_GET['page']? Again, all of this is just for gigglesbut
there is likely to be a clue.
On privacy policies in IE (can he try another browser?) what is his setting?
I'm still
[snip all]
OK, of course it's my fault !! :o
My directory variables are using relative paths and I was trying to
access the parent directory from the sub-directory but not using '..'
Sorry.
Thanks for your help.
--
Graham
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe,
[snip]
I have not looked into it, but do some internet security apps like
Norton try to block certain cookies? I've not come across this, as I
don't really use those programs, but right now I'm grasping for straws.
[/snip]
Certain anti-virus/spyware programs can and do block cookies and can be
Hello all,
The following script returns 'search failed...' after 'LDAP bind
successful...'.
==
";
$r=ldap_bind($ds, $ldaprdn, $ldappass);
if ($r) {
echo "LDAP bind successful...";
} else {
echo "LDAP bind failed...";
exit;
}
$filter = "(sAMAccountName=jsmi
Hi Kristen,
Tuesday, November 22, 2005, 3:21:31 PM, you wrote:
> I have not looked into it, but do some internet security apps like
> Norton try to block certain cookies? I've not come across this, as I
> don't really use those programs, but right now I'm grasping for
> straws.
Yes they do - I r
Bing Du wrote:
Hello all,
The following script returns 'search failed...' after 'LDAP bind
successful...'.
==
";
$r=ldap_bind($ds, $ldaprdn, $ldappass);
if ($r) {
echo "LDAP bind successful...";
} else {
echo "LDAP bind failed...";
exit;
}
$filter = "(sAM
"Robert Cummings" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>> I am interested in how this works, but am skeptical.
>
> No problem, the "programming in X template" instead of "programming in
> PHP" objection is raised often. I've given previous arguments about the
> merits of te
Roman Ivanov wrote:
Greg Donald wrote:
Maybe Zend will get it right where all the previous attempts I've
seen/used are less than great.
Personally, I would start creation of PHP framework by cleaning up PHP
sytax. It's freakin' impossible to make complex OOP clean:
there is plenty wrong w
Jeffrey Sambells wrote:
I came across this method of matching brackets with regex in .NET
http://puzzleware.net/blogs/archive/2005/08/13/22.aspx
but I am wondering if it is possible to do the same in PHP?
I've tried it a bit but I can't seem to get it to work properly. I'm
just wondering if
Curt Zirzow wrote:
> On Fri, Nov 18, 2005 at 12:07:00PM -0800, Russ F wrote:
>> I've reinstalled Apache2, PHP5, phpMyAdmin and MYSQl several times. I
>> still get the same error when i try to use phpmyadmin Can not load mysql
>> extensions. I checked the path it is correct, the extensions exist
>>
Curt Zirzow wrote:
> On Fri, Nov 18, 2005 at 12:07:00PM -0800, Russ F wrote:
>> I've reinstalled Apache2, PHP5, phpMyAdmin and MYSQl several times. I
>> still get the same error when i try to use phpmyadmin Can not load mysql
>> extensions. I checked the path it is correct, the extensions exist
>>
Hi,
One webpage has its banner, left menu and footer ect that are controled
by the template. I want this php script to output the form and
processing result within the page structure. Without exit, if the
'yourname' field is empty, the script would output 'Please enter your
name!' fine with
Hi,
Try this:
It's a hack, but it works.
Cheers,
David Grant
Bing Du wrote:
> Hi,
>
> One webpage has its banner, left menu and footer ect that are controled
> by the template. I want this php script to output the form and
> processing result within the page structure. Without exit, if th
[snip]
[/snip]
You have to POST the value back to the form. This is one of the harder
concepts to grasp when programming in a stateless environment;
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Bing Du wrote:
Hello,
The following script returns 'LDAP bind failed...'.
";
$ldaprdn = "[EMAIL PROTECTED]";
$ldappass = "jsmithpass";
$ds=ldap_connect("ad.dept.some.edu");
if ($ds) {
echo "Binding ...";
$r=ldap_bind($ds, $ldaprdn, $ldappass);
if ($r) {
echo "LDAP bind succ
Thanks for the help. But I still got:
Please enter your name! Continue processing...
What I want is if no name is entered, only 'Please enter your name!'
should be returned.
Bing
David Grant wrote:
Hi,
Try this:
It's a hack, but it works.
Cheers,
David Grant
Bing Du wrote:
Hi,
O
I would like to have some assistance in debugging php. It's about a bug in
php not a script of mine.
I can't post a bug report as I do not "exactly" know why my code is
suffering from a php bug. It's related to a "very" complex objects-model
where objects, cross-referenced, wake up from a session.
[snip]
This is "globally" what happens. If you're insterested in this issue,
willing to help me and if you think yourself to be cappable of helping me.
Please contact me by responding to this post or contact me directly:
[/snip]
There are several on this list who are willing and capable of helping
Jochem Maas wrote:
> Roman Ivanov wrote:
>
>> Greg Donald wrote:
>>
>>> Maybe Zend will get it right where all the previous attempts I've
>>> seen/used are less than great.
>>
>>
>>
>> Personally, I would start creation of PHP framework by cleaning up PHP
>> sytax. It's freakin' impossible to make
That was on of the first things I checked:
safe mode is set to off
Any ideas...
Henry
Voip tech said the following on 11/20/2005 10:31 PM:
> Hello,
> I cannot get exec(), system() or passthru() to run an extenal program.
> From the command line it runs perfectly:
> I'm getting frustrated, Any
That's just one of the problems, it's about a project with over tens of
thousands lines of code. As I said before, I don't know whats the exact
cause. There are so many variables that contribute to this issue and of most
of them I don't understand why they contribute. However, I'm convinced the
php
[snip]
If anyone is still interested in helping me, please let me know, tell me
what you need, what you intend to check, a guess about the cause of the
issue?
[/snip]
Give us an example of the code where it breaks and also any error messages.
That will give us a starting point.
--
PHP General Ma
Ummm... but I don't see how that is related to my exit problem. Any
pointers for me to learn more about it? Thanks much for the help.
Bing
Jay Blanchard wrote:
[snip]
[/snip]
You have to POST the value back to the form. This is one of the harder
concepts to grasp when programming in
On 2005-11-21 20:23 Richard Davey wrote:
Hi Anders,
Monday, November 21, 2005, 7:13:40 PM, you wrote:
I'm trying to set up a script that will post a picture file to a
hosting site. Normally, the site accepts uploads via a web form
using a POST action. How can I make this file transfer to the
On Tue, November 22, 2005 2:37 pm, Eric wrote:
> $this->title=$this->B[$key]->title;
While this is SUPPOSED to work in PHP 5, it would be my first suspect
of under-tested code.
Try this:
$temp = $this->B[$key];
$this->title = $temp->title;
> This is not a typo, the key mysterialy changed to "Ned
Put all your footer html/code into a function called 'foot'
Then do:
if (must_die(...)){
foot();
exit;
}
On Tue, November 22, 2005 11:27 am, Bing Du wrote:
> Hi,
>
> One webpage has its banner, left menu and footer ect that are
> controled
> by the template. I want this php script to outpu
[snip]
Give us an example of the code where it breaks and also any error messages.
That will give us a starting point.
[/snip]
I think you don't understand completly, the project exists out of tens of
thousands lines of code.
- I don't have a short reproduce script
- I don't know if it's possible
Curt Zirzow wrote:
On Mon, Nov 21, 2005 at 09:41:40PM -0700, Ashley M. Kirchner wrote:
ext/ftp/ftp.lo(.text+0x76): In function `data_close':
/usr/local/src/apache/php-5.0.5/ext/ftp/ftp.c:1566: undefined reference
to `SSL_shutdown'
This means basically that the header files (*.h) wher
On Tue, November 22, 2005 8:23 am, Graham Cossey wrote:
> I'm attempting to read a list of files in a directory using readdir()
> but am having problems with mpeg files not seemingly being read.
>
> Cope snippet:
>
> $count = 0;
> while (false !== ($file = readdir($open_dir)))
> {
[snip]
I think you don't understand completly, the project exists out of tens of
thousands lines of code.
- I don't have a short reproduce script
- I don't know if it's possible to create one, however, i'll try
My code may appear to be weird, but it's no broken. The php compiler is
broken though a
[snip]
It sounds like you are storing an object property sometimes as a
string, and sometimes as an array.
[/snip]
I can assure you, this has nothing to do with this issue, the only
type-juggling I do once in a while is byte/int/long/double/string
--
PHP General Mailing List (http://www.php.net/
On Tue, November 22, 2005 3:24 am, Gregory Machin wrote:
> I'm looking for a how to , on creating sessions similar to those used
> my
> cms's
> that ref only a single page..
http://php.net/session_start
???
I don't understand what you mean by "that ref only a single page" and
suspect not many ot
On Mon, November 21, 2005 5:14 pm, Philip Thompson wrote:
> Hi all.
>
> Here's what's going on. I have a page which calls itself in a .
> On this page, I include two classes from other file I've created. On
> load, the page reads the class stuff just fine. If I submit the form
> (call the page
Hi,
How should PHP syntax be checked before execution? Anything similar to
what option -c does in Perl?
% perl -c test.pl
Thanks,
Bing
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[snip]
How should PHP syntax be checked before execution? Anything similar to
what option -c does in Perl?
% perl -c test.pl
[/snip]
from the command line
/usr/local/bin/php -i myScript.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[snip]
How should PHP syntax be checked before execution? Anything similar to
what option -c does in Perl?
% perl -c test.pl
[/snip]
from the command line
/usr/local/bin/php -i myScript.php
[/snip]
Ooops, sorry, should be an ell "l"
/usr/local/bin/php -l myScript.php
--
PHP General Mailing
Jay Blanchard wrote:
[snip]
How should PHP syntax be checked before execution? Anything similar to
what option -c does in Perl?
% perl -c test.pl
[/snip]
from the command line
/usr/local/bin/php -i myScript.php
[/snip]
Ooops, sorry, should be an ell "l"
/usr/local/bin/php -l myScript.php
Greetings All
I am using the following script to send mail via PHP. The script processes and
send the mail but the message is never displayed in the received email. Any
pointers will be much appreciated. Thank you.
Message From: "
[snip]
No, I understand perfectly. There is a point at which the code breaks, is
there not? There are error messages, are there not? You cannot unequivocally
state that the PHP compiler is broken until the code has been evaluated. We
are trying to help you here, but you have to show us something. W
Have you tried a very simple email example to make sure your server is
sending mail out. Is sendmail running and working?
http://au2.php.net/function.mail
> -Original Message-
> From: schalk [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, 23 November 2005 9:12 AM
> To: php-general@lists.
Thanks All. I have got this working.
--
Open WebMail Project (http://openwebmail.org)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi all
This one's got me stumped. I'm working on a PHP CLI interface, and I
need to allow the user to input a bit of HTML.
Rather than bandy around with readline() and the like, I thought it
would be nice to just create a temporary file, pop nano up, and read and
then delete the file once it
What situation would make a mysqli object unclonable? This is a problem
that occurs only on a linux machine with mysql4. I am simply trying to
declare a link resource and I get an error "Trying to clone unclonable
object of type mysqli" If I declare the link using a reference however, the
co
I use this line in a script for uploading pictures to a website:
$_FILES['guildimage']['type'] == "image/jpeg"
This works fine when using Mozilla, but it doesn't work with IE.
How should I do it to get it working with both/all browsers?
if (isset($_POST['submit']))
I use the fileinfo pecl. http://pecl.php.net/Fileinfo
how to get a mime type:
$info = new finfo( FILEINFO_MIME );
$mime = $info->file($filename);
then my extention grabber:
function getExtention() {
switch ( $this->mimeType ) {
case
did i say it? sorry, i mean load the page in your customer browser.
the code you give simple test stored cookie, which might be blocked by
browser. however browser blocks stored cookie might allow session
cookie, they are not stored so are less insecurity.
bad thing is your customer have some ant
use proc_open , connect stdin/out of php cli to nano, i guess
On 11/23/05, Jasper Bryant-Greene <[EMAIL PROTECTED]> wrote:
> Hi all
>
> This one's got me stumped. I'm working on a PHP CLI interface, and I
> need to allow the user to input a bit of HTML.
>
> Rather than bandy around with readline()
The reason why I suggested the fileinfo idea was because IE and mozilla report
the mime type differently.
image/x-jpeg vs image/jpeg I believe it is.
using fileinfo just standardizes what you need to check for.
On Tuesday 22 November 2005 09:56 pm, twistednetadmin wrote:
> I don't think that is
is /var/www/html your web root dir ?
maybe its the plobrem.
On 11/23/05, Henry Castillo <[EMAIL PROTECTED]> wrote:
> That was on of the first things I checked:
> safe mode is set to off
> Any ideas...
> Henry
> Voip tech said the following on 11/20/2005 10:31 PM:
> > Hello,
> > I cannot get exe
Greetings all,
I'm running a rogue (the company knows about it but doesn't support it) web
server for my dept and I'd like to be able to authenticate users
transparently. The company is currently doing this on their own supported
Intranet servers via NTLM on IIS. All I'm really looking for here is
On Tue, Nov 22, 2005 at 07:41:10PM +0100, Eric wrote:
> I would like to have some assistance in debugging php. It's about a bug in
> php not a script of mine.
First off there is a big difference between 5.0.x and 5.1.x as well
as 5.0.1 and 5.0.5, what version are we talking about?
>
> I can't po
Is it possible to use PHP to find out wich type of browser is in use?
Or must is this done by javascript or something else?
I would like to have a little statistic on my page that tells me what
browser is currently moet used.
This did the trick:
elseif ($_FILES['guildimage']['type'] == "image/pjpeg" or "image/jpeg")
On Nov 23, 2005, at 12:43 AM, twistednetadmin wrote:
Is it possible to use PHP to find out wich type of browser is in use?
Or must is this done by javascript or something else?
I would like to have a little statistic on my page that tells me what
browser is currently moet used.
Try:
-Joe W
Hi
I have a dedicated server in the states.
I need to send about 8000 emails (once off). There pretty small +- 5KB.
so I want to write a php script and run it from the command line in the
background. I was thinking of sending 50 emails then waiting 90 seconds
then sending again.
Or
the sa
On a Fedora 4 machine running MySQL 4.1 I am having trouble declaring an
instance of a mysqli extension.
class Data extends mysqli {
function __construct($host, $user, $password, $db = null)
{
@parent::__construct($host, $user, $password, $db)
or printf("There was an error
Thanks guys. That helps alot!
But this:
Returned this using Mozilla: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US;
rv:1.7.12) Gecko/20050915 Firefox/1.0.7
And this using IE: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)
Does that just mean that it's not completely accurate?
I have a news-script on a webpage. Or an eventscript you might call it.
This lists up events thats gonna happen on a given day. ie concerts and
sportsevents.
To get this deleted without having to log on to the adminpage when the event
is over would have been a great relief.
1. Is it just as simple
Danny wrote:
Hi there,
I´m familiar with PHP syntax, but I´ve been reading some sample scripts, in
PHP5 and i´ve seen some "strange" things, like diferent ways to read a
collection of rows, magic functions, wrapers, and operators like "::" and
"->". I know that all is the manual, but before that
81 matches
Mail list logo