|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
php-general Digest 25 Feb 2004 19:20:14 -0000 Issue 2611
php-general-digest-help
lists.php.net
Date: Wed Feb 25 2004 - 13:20:14 CST
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
php-general Digest 25 Feb 2004 19:20:14 -0000 Issue 2611
Topics (messages 178814 through 178878):
Re: Cybercash Dynamic Module
178814 by: Anil Kumar K.
How to obtain the txt content of an HTML formated document?
178815 by: filicicsub
178818 by: Richard Davey
Re: Accessing SMB (Samba perhaps) resources
178816 by: Howard Miller
178817 by: Howard Miller
Re: looks like the spammers got through anyway
178819 by: cay.blueyonder.co.uk
178869 by: Shoan Motwani
178876 by: Jeff Schwartz
Re: Passing Variables Into mail()????
178820 by: Richard Davey
178829 by: Chase
178831 by: Richard Davey
178832 by: Chase
178833 by: Richard Davey
e-Newsletter module
178821 by: Tariq Murtaza
Re: session expired -> how to know if the session is newor old
178822 by: Seba
178826 by: Urb LeJeune
Emails
178823 by: Jakes
178824 by: Richard Davey
178830 by: Jason Wong
[semi OT] problem with php, cacti and rrdtool
178825 by: Andrea Riela
PHP Certification: We need your comments
178827 by: David Costa
Re: regexp appears to be faulty!?
178828 by: Henry Grech-Cini
PEAR file??
178834 by: Edward Peloke
178835 by: Richard Davey
178840 by: Greg Beaver
178844 by: Ben Ramsey
178845 by: Ben Ramsey
178846 by: Edward Peloke
178847 by: Greg Beaver
178848 by: Edward Peloke
Request domain name
178836 by: Age Bosma
178837 by: James Nunnerley
Crypt code
178838 by: carlos castillo
Re: calendar class
178839 by: Greg Beaver
Disabling the back button
178841 by: Shaun
178842 by: Richard Davey
Re: htacess
178843 by: Will
178854 by: John Taylor-Johnston
Finding position of New line in string
178849 by: Ben Edwards (lists)
178850 by: Kirk Winters
Sequential Random Character Generator
178851 by: list.pfohlsolutions.com
178852 by: Adam Bregenzer
178853 by: Miles Thompson
178855 by: Chris W. Parker
178867 by: list.pfohlsolutions.com
178871 by: Adam Bregenzer
[php] if $sql has returned something
178856 by: John Taylor-Johnston
178858 by: BAO RuiXian
178859 by: Jason Wong
178861 by: John Taylor-Johnston
178864 by: BAO RuiXian
178865 by: Richard Davey
178866 by: Jason Wong
178870 by: John Taylor-Johnston
178872 by: John Taylor-Johnston
178875 by: Richard Davey
Re: Directory & DirectoryIterator
178857 by: Vivian Steller
178860 by: Ben Ramsey
178862 by: Vivian Steller
178863 by: Ben Ramsey
178868 by: Ben Ramsey
Re: frameset und php-script in frame
178873 by: joe-at
178878 by: Sam Masiello
pleas help me with frameset and php
178874 by: joe-at
making 1 pdf file from 2
178877 by: Steve Buehler
Administrivia:
To subscribe to the digest, e-mail:
php-general-digest-subscribe
lists.php.net
To unsubscribe from the digest, e-mail:
php-general-digest-unsubscribe
lists.php.net
To post to the list, e-mail:
php-general
lists.php.net
----------------------------------------------------------------------
attached mail follows:
On Tue, 24 Feb 2004, Suhas wrote:
</snipped>
>
> If I get the permission to complie PHP with give module, can I just go
> with ./configure --with cybercah=DIR ?
> I think it will kill my original install. Is there any way to append the
> configuration as needed? I am sure many of you may have similar situation.
>
Answer to the dump question (because none seems to give an answer :) ).
Run phpinfo() and you will get the original configuration command in its
output.
Anil
--
Linuxense Information Systems Pvt. Ltd., Trivandrum, India
http://www.linuxense.com/
attached mail follows:
Hello,
I just wanted to know if there is any easy meant to recover the textual
contents of an HTML file. I know It should be easy because PHP have an
effective way to handle string discrimination/manipulation... but I'm
quite lazy, and I just wanted to know if there is an already made
implementation ( I know shame on me...).
Thanks in advance.
Frano ILICIC
Transcribe>WORLD Limited
Mail : filicic
file-saveas.com
Web : http://file-saveas.com
Tel Gibraltar :
Tel Espana : +34 956 25 49 08
Fax Espana : +34 956 25 49 08
Tel France : +33 (0)610 185 369
----------------------------------------
attached mail follows:
Hello filicicsub,
Wednesday, February 25, 2004, 8:56:36 AM, you wrote:
f> I just wanted to know if there is any easy meant to recover the textual
f> contents of an HTML file. I know It should be easy because PHP have an
f> effective way to handle string discrimination/manipulation... but I'm
f> quite lazy, and I just wanted to know if there is an already made
f> implementation ( I know shame on me...).
If you want to remove all the tags from the HTML document and leave
just the text then load the file in (using file_get_contents() or
fopen()) and then use strip_tags() to clean it up.
--
Best regards,
Richard Davey
http://www.phpcommunity.org/wiki/296.html
attached mail follows:
Aha!
This looks really cool! Why can I never find this sort of stuff :-)
Thanks very much.
Howard
Manuel Lemos wrote:
> Hello,
>
> On 02/24/2004 08:11 AM, Howard Miller wrote:
>> I want to be able to manipulate files that are on my samba file server
>> from my PHP application. These shares are not normally mounted on my web
>> server and it would be inconvenient and yet another administative
>> maintenance task to do so.
>>
>> So... I want to be able to present a form to the user where they can type
>> a URL (eg, //my.sambaserver/myshare/some/directory), a username and a
>> password and for PHP to be able to manipulate the files therein.
>
> You may want to try this Samba Web client class that does precisely what
> you want:
>
> http://www.phpclasses.org/smbwebclient
>
attached mail follows:
No I didn't say that I *wouldn't* run external commands. However I want the
operation to be transparent and non-confusing to the user, so they don't
get get with error messages from the Unix mount command or something. I
just expected a lot of grief/drama doing it that way.
I'll give the class a go and see how I get on.
Manuel Lemos wrote:
> Hello,
>
> On 02/24/2004 04:03 PM, Adam Voigt wrote:
>> He said he doesn't want to run commands, which this script does.
>
> Did he? I read his message again and I could not see where he explicitly
> says he does not want to run commands.
>
> What this class does is to let you access networked remote shares via
> Samba without having to mount them on the local file system.
>
>
>>>>I want to be able to manipulate files that are on my samba file server
>>>>from my PHP application. These shares are not normally mounted on my web
>>>>server and it would be inconvenient and yet another administative
>>>>maintenance task to do so.
>>>>
>>>>So... I want to be able to present a form to the user where they can
>>>>type a URL (eg, //my.sambaserver/myshare/some/directory), a username and
>>>>a password and for PHP to be able to manipulate the files therein.
>>>
>>>You may want to try this Samba Web client class that does precisely what
>>>you want:
>>>
>>>http://www.phpclasses.org/smbwebclient
>
>
attached mail follows:
On 2/25/2004 4:03:05 AM, Will (willsscripts
earthlink.net) wrote:
> I know the feeling!!! I wish they would go away!!!
>
> ~WILL~
/*
You can wish all you want....those SOBs are here to stay.
Hopefully they will meet with an accident and get a slow p a i n f u l
death.
-Ryan
*/
Is this an email from MAJOR FREDERIK MUMBA? I think we should all email him back and try to lead him on :D
attached mail follows:
* jimbo (phpng
jholt.co.uk) wrote:
> I've just received a 419 scam email to the email address I setup for posting
> to this forum. Looks like the safeguards have failed :-(
>
All I can say is get spam assassin.
Peace,
Shoan.
attached mail follows:
I use this Yahoo account primarily for the PHP list. I use GoodbyeSpam.com as a filter and no spam whatsoever gets through. You mentioned that the safeguards aren't working. How are you trying to block spam?
Jeff
---------------------------------
Do you Yahoo!?
Yahoo! Mail SpamGuard - Read only the mail you want.
attached mail follows:
Hello Chase,
Wednesday, February 25, 2004, 5:26:14 AM, you wrote:
C> None of the variables that are displayed on the result page or
C> injected into the database are showing in the email that I receive
C> from the form.
C> $message = '
C> <html>
C> <body>
C> <p>The following information was added to the v5 tracking record:</p>
C> <p><strong>Submit Date: <? echo $submit_date; ?></strong><br>
C> <strong>IP Address: <? echo $ip_address; ?><br>
You shouldn't be echo'ing from inside a variable! Try this instead:
$message = "
<html>
<body>
<p>The following information was added to the v5 tracking record:</p>
<p><strong>Submit Date: $submit_date</strong><br>
<strong>IP Address: $ip_address<br>
";
etc.. you get the idea.
--
Best regards,
Richard Davey
http://www.phpcommunity.org/wiki/296.html
attached mail follows:
That didn't seem to work Richard... Now this is what my resulting email
looks like...
Submit Date: $submit_date
IP Address: $ip_address
Dealer Number: $dealer_number
Employee Name: $tester_name
Module / Screen Name: $module_name
Report:
$report
"Richard Davey" <rich
launchcode.co.uk> wrote in message
news:1825686289.20040225095039
launchcode.co.uk...
> Hello Chase,
>
> Wednesday, February 25, 2004, 5:26:14 AM, you wrote:
>
> C> None of the variables that are displayed on the result page or
> C> injected into the database are showing in the email that I receive
> C> from the form.
>
> C> $message = '
> C> <html>
> C> <body>
> C> <p>The following information was added to the v5 tracking record:</p>
> C> <p><strong>Submit Date: <? echo $submit_date; ?></strong><br>
> C> <strong>IP Address: <? echo $ip_address; ?><br>
>
> You shouldn't be echo'ing from inside a variable! Try this instead:
>
> $message = "
> <html>
> <body>
> <p>The following information was added to the v5 tracking record:</p>
> <p><strong>Submit Date: $submit_date</strong><br>
> <strong>IP Address: $ip_address<br>
> ";
>
> etc.. you get the idea.
>
> --
> Best regards,
> Richard Davey
> http://www.phpcommunity.org/wiki/296.html
attached mail follows:
Hello Chase,
Wednesday, February 25, 2004, 12:41:27 PM, you wrote:
C> That didn't seem to work Richard... Now this is what my resulting email
C> looks like...
C> Submit Date: $submit_date
Notice that I swapped the $message = ' for $message = " (look at the
quote marks). You're probably still using ', this won't allow
variables inside it to be parsed.
--
Best regards,
Richard Davey
http://www.phpcommunity.org/wiki/296.html
attached mail follows:
Problem solved, thanks Richard...
..You had my solution, but I don't know if it was entirely what you said...
As it turns out, it makes a difference that my $message variable was
enclosed only in single quotes, not double quotes... who knew?
"Chase" <chase
graewolfe.com> wrote in message
news:20040225124133.49436.qmail
pb1.pair.com...
> That didn't seem to work Richard... Now this is what my resulting email
> looks like...
> Submit Date: $submit_date
>
> IP Address: $ip_address
>
> Dealer Number: $dealer_number
>
> Employee Name: $tester_name
>
> Module / Screen Name: $module_name
>
> Report:
> $report
>
> "Richard Davey" <rich
launchcode.co.uk> wrote in message
> news:1825686289.20040225095039
launchcode.co.uk...
> > Hello Chase,
> >
> > Wednesday, February 25, 2004, 5:26:14 AM, you wrote:
> >
> > C> None of the variables that are displayed on the result page or
> > C> injected into the database are showing in the email that I receive
> > C> from the form.
> >
> > C> $message = '
> > C> <html>
> > C> <body>
> > C> <p>The following information was added to the v5 tracking record:</p>
> > C> <p><strong>Submit Date: <? echo $submit_date; ?></strong><br>
> > C> <strong>IP Address: <? echo $ip_address; ?><br>
> >
> > You shouldn't be echo'ing from inside a variable! Try this instead:
> >
> > $message = "
> > <html>
> > <body>
> > <p>The following information was added to the v5 tracking record:</p>
> > <p><strong>Submit Date: $submit_date</strong><br>
> > <strong>IP Address: $ip_address<br>
> > ";
> >
> > etc.. you get the idea.
> >
> > --
> > Best regards,
> > Richard Davey
> > http://www.phpcommunity.org/wiki/296.html
>
attached mail follows:
Hello Chase,
Wednesday, February 25, 2004, 12:47:58 PM, you wrote:
C> ..You had my solution, but I don't know if it was entirely what you said...
C> As it turns out, it makes a difference that my $message variable was
C> enclosed only in single quotes, not double quotes... who knew?
Yup it does indeed - see my reply to your previous message saying just
this :)
In my original reply to you I had swapped the single quote for a
double for you, but it's easy to miss I guess. Glad you got it sorted.
--
Best regards,
Richard Davey
http://www.phpcommunity.org/wiki/296.html
attached mail follows:
Dear All,
I am sorry its a litle bit out of scope for PHP development etc.
I need to know which is the best softwre for eNewsletter publication
(cron based) built in PHP/Mysql either opensource or proprietry on Linux
OS.
Someone suggested me 1-2-All
(http://www.activecampaign.com/12all/feature_testimonials.php).
Looking for your valuable comment/sugessions.
Cheers!
TM
attached mail follows:
It means that the session_start function has not changed (has restored
the old value) the session id value. Set your browser to do not accept
cookies, and it will work.
Remember that the value of the session id can be passed by GET POST and
Cookies to.
Seba
attached mail follows:
At 05:45 AM 2/25/04, Seba wrote:
>It means that the session_start function has not changed (has restored
>the old value) the session id value. Set your browser to do not accept
>cookies, and it will work.
That's not an option, people other than myself have to log in and I
have no control over their settings.
Also, it doesn't explain why the problem surfaced after working
correctly for over a year.
Urb
>Remember that the value of the session id can be passed by GET POST and
>Cookies to.
>
>Seba
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php
attached mail follows:
How would you be able to read the bounces & undelievrable mail when you send out a mail with PHP.
I'm trying to write a eCampaign client for our business, this would be a is a nice feature to have to keep
our mail list clean.
Thanx in advance.
J
attached mail follows:
Hello Jakes,
Wednesday, February 25, 2004, 12:05:09 PM, you wrote:
J> How would you be able to read the bounces & undelievrable mail
J> when you send out a mail with PHP.
J> I'm trying to write a eCampaign client for our business, this
J> would be a is a nice feature to have to keep
J> our mail list clean.
Set the reply-to address to come back at a script that parses out that
sort of information.
--
Best regards,
Richard Davey
http://www.phpcommunity.org/wiki/296.html
attached mail follows:
On Wednesday 25 February 2004 20:10, Richard Davey wrote:
> J> How would you be able to read the bounces & undelievrable mail
> J> when you send out a mail with PHP.
> J> I'm trying to write a eCampaign client for our business, this
> J> would be a is a nice feature to have to keep
> J> our mail list clean.
>
> Set the reply-to address to come back at a script that parses out that
> sort of information.
Bounces uses the Return-Path: header. Refer to the archives for information
how that could be set.
--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
Some men are so interested in their wives' continued happiness that they
hire detectives to find out the reason for it.
*/
attached mail follows:
Hi folks,
sorry if that problem is probably OT, but I don't know where is my mistake,
I hope in my php config.
System: openBSD 3.3
php: 4.3.4-dev
cacti: 0.8.5 (http://www.raxnet.net/products/cacti/)
rrdtool: 1.0.40
well, I've configurated all, php with gd, cacti, rrdtool, etc.
my phpinfo(): http://www.nesys.it/test.php
But when I try to see my graphs, I couldn't, and I receive error messages
from apache like those:
[Fri Feb 20 11:11:11 2004] [error] PHP Notice: Undefined variable: regexps
in /web/cacti/lib/rrd.php on line 305
[Fri Feb 20 11:11:11 2004] [error] PHP Notice: Undefined variable:
fetch_array in /web/cacti/lib/rrd.php on line 320
[Fri Feb 20 11:11:11 2004] [error] PHP Notice: Undefined index: values in
/web/cacti/lib/rrd.php on line 381
[Fri Feb 20 11:11:11 2004] [error] PHP Notice: Undefined index: values in
/web/cacti/lib/rrd.php on line 385
[Fri Feb 20 11:11:11 2004] [error] PHP Notice: Undefined index: values in
/web/cacti/lib/rrd.php on line 389
[Fri Feb 20 11:11:11 2004] [error] PHP Notice: Undefined index: traffic_in
in /web/cacti/lib/rrd.php on line 721
[Fri Feb 20 11:11:11 2004] [error] PHP Notice: Undefined index: traffic_out
in /web/cacti/lib/rrd.php on line 721
It's possible that I've forgotten something in my php.ini? or probably is a
cacti's bug?
thanks for you support, and patience
Regards
Andrea
attached mail follows:
To: Php General mailing List
Pear General mailing List
Dear All,
Some time ago, our site (Dotgeek.org) started a PHP certification
(full details at http://www.dotgeek.org/about.php?type=certify ).
The programme has, in my humble opinion, some good points. A free
certification managed with some open standards, with an open and
public certification board could bring some benefit to freelancers and
PHP Developers.
The Problem
The first issue is the impressions we left to some people. Because the
certification requires a number of tutorials or code samples to be
posted on our site, someone had the wrong impression that this was a
way to fill the site with content with little effort.
The opposite is true, the public method was meant to provide some
community based feedback. The site does not host banners nor propose
any sort of subscription, so there is really no financial gain from
this initiative.
The second problem is the tutorials quality. Many of the posting would
probably not qualify for a number of issues.
We need your comments
After a discussion with the other board members (Chris Shiflett and
John Coggeshall) there are a number of possible modifications to the
current programme:
Solution A
Make the programme more specific
Under this proposal the programme will grant certifications on a
speciality:
PHP Security (global variables, file uploads, permission, etc.)
PHP Object Oriented Programming (creating an object, declaring a
class, class usage ...)
PHP and Databases (using PHP to access a database, relational
databases, practical applications)
Each specialty with require:
-Theory: Submission of a 3000 /3500 words paper on the topic
-Practice: Submission of code samples in that speciality
Both the submission and the code samples will NOT be published in the
dotgeek website unless the author specifically requests it.
The certification will be offered once again free.
Solution B
Is there a need of such a certification? If you feel that a PHP
certification organized in this fashion is not necessary, let us know.
Let us know what you think in the public poll& discussion at
http://www.dotgeek.org/forums/viewtopic.php?t=3
If you do have a solution C let us know. Your comments are very much
appreciated.
Regards
David Costa
attached mail follows:
Absolutely brilliant, also I'm using the /s modifier to process newlines as
well.
Great
Thanks to everybody for their help.
"Jome" <jome
emoj.net> wrote in message
news:20040224155611.16081.qmail
pb1.pair.com...
>
> "Henry Grech-Cini" <henry
teacake.force9.co.uk> skrev i meddelandet
> news:20040224153359.45706.qmail
pb1.pair.com...
> > Thanks for that Mike,
> >
> > I was getting lost.
> >
> > Is there anyway to say
> >
> > Any characters excluding the sequence </fieldset>
> >
> > so I could do something like
> >
> > /<fieldset([^>]*)>(.* whilst not <\/fieldset>)<\/fieldset>/i
> >
> > Or alternatively is there a switch to say get the smallest sequence
> >
>
> ? is what you're looking for. i.e.: .*? instead of just .*
>
> /j
attached mail follows:
Hello, I have a friend who has moved his website to a new host and I am
helping him clean up some of the code. In one of his pages, he gets this
error. He of course, doesn't have the gallery/init.php file in his
directory and it is not on the server. Does anyone recognize this as a pear
file that I can simply download?
Thanks,
Eddie
Fatal error: Failed opening required '../gallery/init.php'
(include_path='.:/usr/share/pear') in
/home/buildingbymatt/public_html/clients/security.php on line 4
attached mail follows:
Hello Edward,
Wednesday, February 25, 2004, 1:47:28 PM, you wrote:
EP> Hello, I have a friend who has moved his website to a new host and I am
EP> helping him clean up some of the code. In one of his pages, he gets this
EP> error. He of course, doesn't have the gallery/init.php file in his
EP> directory and it is not on the server. Does anyone recognize this as a pear
EP> file that I can simply download?
EP> Fatal error: Failed opening required '../gallery/init.php'
EP> (include_path='.:/usr/share/pear') in
EP> /home/buildingbymatt/public_html/clients/security.php on line 4
It may not be a Pear file. The reason pear is appearing with the Fatal
Error is that it's one of the recognised include paths (along with .
which means current directory).
Of course, it might be a Pear file too :) but just so you don't waste
all your time looking there I would check to see if you don't have it
in a site back-up or something.
--
Best regards,
Richard Davey
http://www.phpcommunity.org/wiki/296.html
attached mail follows:
Hi Edward,
It's not a PEAR file. PEAR files are never included using ".."
regards,
Greg
--
phpDocumentor
http://www.phpdoc.org
Edward Peloke wrote:
> Hello, I have a friend who has moved his website to a new host and I am
> helping him clean up some of the code. In one of his pages, he gets this
> error. He of course, doesn't have the gallery/init.php file in his
> directory and it is not on the server. Does anyone recognize this as a pear
> file that I can simply download?
>
> Thanks,
> Eddie
>
>
> Fatal error: Failed opening required '../gallery/init.php'
> (include_path='.:/usr/share/pear') in
> /home/buildingbymatt/public_html/clients/security.php on line 4
attached mail follows:
I'd check with your friend to see if he remembers what PHP software he
installed. It's an "init.php" file in the "gallery" subfolder? If he
doesn't recognize the file as being one he created in the past, then
perhaps he installed the gallery software from http://gallery.sf.net at
one time? It's just a guess, and maybe I'm way off, but it's worth a try.
As others mentioned before, it doesn't sound like a PEAR file.
Edward Peloke wrote:
> Hello, I have a friend who has moved his website to a new host and I am
> helping him clean up some of the code. In one of his pages, he gets this
> error. He of course, doesn't have the gallery/init.php file in his
> directory and it is not on the server. Does anyone recognize this as a pear
> file that I can simply download?
>
> Thanks,
> Eddie
>
>
> Fatal error: Failed opening required '../gallery/init.php'
> (include_path='.:/usr/share/pear') in
> /home/buildingbymatt/public_html/clients/security.php on line 4
--
Regards,
Ben Ramsey
http://benramsey.com
http://www.phpcommunity.org/wiki/People/BenRamsey
attached mail follows:
> It's not a PEAR file. PEAR files are never included using ".."
This is not true. I can download a PEAR package and use it as a
standalone in my application without specifying a PEAR folder in the
include_path in php.ini. I can also use it without using ini_set() to
change the include_path. If I use it in this way, there would be files
in my application that would need to include it using ".."
:)
--
Regards,
Ben Ramsey
http://benramsey.com
http://www.phpcommunity.org/wiki/People/BenRamsey
attached mail follows:
Thanks for all the info...
Yeah, my guess was that it might be part of gallery somehow. I will
download it and take a look.
Thanks,
Eddie
-----Original Message-----
From: Ben Ramsey [mailto:lists
benramsey.com]
Sent: Wednesday, February 25, 2004 10:45 AM
To: php-general
lists.php.net; Edward Peloke
Subject: [PHP] Re: PEAR file??
I'd check with your friend to see if he remembers what PHP software he
installed. It's an "init.php" file in the "gallery" subfolder? If he
doesn't recognize the file as being one he created in the past, then
perhaps he installed the gallery software from http://gallery.sf.net at
one time? It's just a guess, and maybe I'm way off, but it's worth a try.
As others mentioned before, it doesn't sound like a PEAR file.
Edward Peloke wrote:
> Hello, I have a friend who has moved his website to a new host and I am
> helping him clean up some of the code. In one of his pages, he gets this
> error. He of course, doesn't have the gallery/init.php file in his
> directory and it is not on the server. Does anyone recognize this as a
pear
> file that I can simply download?
>
> Thanks,
> Eddie
>
>
> Fatal error: Failed opening required '../gallery/init.php'
> (include_path='.:/usr/share/pear') in
> /home/buildingbymatt/public_html/clients/security.php on line 4
--
Regards,
Ben Ramsey
http://benramsey.com
http://www.phpcommunity.org/wiki/People/BenRamsey
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
attached mail follows:
Hi Ben,
This is true for some packages, but most would simply not work, as any
PEAR file that uses another PEAR file would require you to update your
include_path so that ".." would simply fail.
For instance, look at Log.php. the factory method tries to include
Log/drivername.php. DB's mysql driver includes DB/mysql.php, etc. etc.
Greg
Ben Ramsey wrote:
>> It's not a PEAR file. PEAR files are never included using ".."
>
>
> This is not true. I can download a PEAR package and use it as a
> standalone in my application without specifying a PEAR folder in the
> include_path in php.ini. I can also use it without using ini_set() to
> change the include_path. If I use it in this way, there would be
> files in my application that would need to include it using ".."
>
> :)
>
attached mail follows:
I downloaded gallery and it does have the init file which does seem to
work...of course now there are other errors but at least there is progress!
-----Original Message-----
From: Ben Ramsey [mailto:lists
benramsey.com]
Sent: Wednesday, February 25, 2004 10:50 AM
To: php-general
lists.php.net; Greg Beaver
Subject: [PHP] Re: PEAR file??
> It's not a PEAR file. PEAR files are never included using ".."
This is not true. I can download a PEAR package and use it as a
standalone in my application without specifying a PEAR folder in the
include_path in php.ini. I can also use it without using ini_set() to
change the include_path. If I use it in this way, there would be files
in my application that would need to include it using ".."
:)
--
Regards,
Ben Ramsey
http://benramsey.com
http://www.phpcommunity.org/wiki/People/BenRamsey
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
attached mail follows:
I would like to be able to request the domain name.
How can this be achieved without hardcoding it?
$_SERVER['REQUEST_URI'] doesn't provide me the domain name, it just
provides me "/index.php?page=2000" instead of e.g.
"www.blaat.com/index.php?page=2000"
I can't seem to find anything on the php site to get the domain name as
well.
I prefer using absolute URI's.
The reason why this is a problem for me is besause I'm working on a site
which has two different URI's but both display the exact same site.
Cheers,
Age Bosma
attached mail follows:
$_SERVER["HTTP_HOST"] will get you the full domain name...
Nunners
-----Original Message-----
From: Age Bosma [mailto:agebosma
home.nl]
Sent: 25 February 2004 14:13
To: php-general
lists.php.net
Subject: [PHP] Request domain name
I would like to be able to request the domain name.
How can this be achieved without hardcoding it?
$_SERVER['REQUEST_URI'] doesn't provide me the domain name, it just
provides me "/index.php?page=2000" instead of e.g.
"www.blaat.com/index.php?page=2000"
I can't seem to find anything on the php site to get the domain name as
well.
I prefer using absolute URI's.
The reason why this is a problem for me is besause I'm working on a site
which has two different URI's but both display the exact same site.
Cheers,
Age Bosma
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
attached mail follows:
I want to know if you know a tool to crypt the code, all, i mean a file
php, so when i open it i only see some characters without order, like
zend, but free or where can i get zend or a similar tool.
thanks.
Carlos A. Castillo.
Ingeniero de desarrollo
ccastillo
imagine.com.co
____________________________________
Su Aliado Efectivo en Internet
www.imagine.com.co
(57 1)2182064 - (57 1)6163218
Bogotá - Colombia
____________________________________
- Soluciones web para Internet e Intranet
- Soluciones para redes
- Licenciamiento de Software
- Asesoría y Soporte Técnico
____________________________________
attached mail follows:
http://pear.php.net/Calendar
Regards,
Greg
--
phpDocumentor
http://www.phpdoc.org
John Taylor-Johnston wrote:
> Anyone recommend a good calendar class at phpclasses.org or elsewhere?
> Something I can install with ease and teach someone else to use and update using, oh say phpmyadmin?
> Thanks,
> John
attached mail follows:
Hi,
Is it possible to disable the back button by showing a screen that says 'the
page has expired' if it is ever pressed using my site?
Thanks for your help
attached mail follows:
Hello Shaun,
Wednesday, February 25, 2004, 3:25:41 PM, you wrote:
S> Is it possible to disable the back button by showing a screen that says 'the
S> page has expired' if it is ever pressed using my site?
You might call that "disabling the back button" but I'd call it
"annoying the hell out of the visitor". Why not create something that
catches the fact they might have gone back a page and just forwards
them on again (or gives a nice warning message at least).
Also even that will never get around your page being stuck in someone's
cache, so you need to be prepared for this eventuality also.
--
Best regards,
Richard Davey
http://www.phpcommunity.org/wiki/296.html
attached mail follows:
Thanks Manuel!! I will look into that.
~WILL~
Manuel Lemos wrote:
> Hello,
>
> On 02/24/2004 06:50 PM, Will wrote:
>
>> I tried to search PHP net for this but found nothing.
>> I am doing an install script and I want to write a htaccess file to
>> the server so people can login in to there admin section.
>>
>> What is the proper way to do this and the easiest way. I know how to
>> write a file to the server, but how do you do the password thing??
>
>
> There are many solutions for that. You may want to try this:
>
> Class: htaccess
> http://www.phpclasses.org/htaccess
>
>
attached mail follows:
Manuel,
Do you have a command line access to the server?
http://httpd.apache.org/docs/programs/htpasswd.html
htpasswd -b /var/www/html/db/tools/htpasswd.users jdaxell ****** (batch mode)
htpasswd -c /var/www/html/db/tools/htpasswd.users jdaxell (creation mode)
htpasswd /var/www/html/db/tools/htpasswd.users jdaxell (add mode)
Here is another way someone sent me - without having to use an .htaccess nor a passwd file.
------snip------
NOT needed in fact. Just authenticate and headers.
Working code below. hash it up and try it:
<?php
## add this to any file
include "authenticate.php";
?>
file://authenticate.php :
<?php
function authenticate() {
header( "WWW-Authenticate: Basic realm=\"Who are you?\"");
header( "HTTP/1.0 401 Unauthorized");
echo "You must enter a valid login ID and password to access this
resource\n";
exit;
}
if(!isset($PHP_AUTH_USER))
{
authenticate();
}elseif(($PHP_AUTH_USER != "user1") || ($PHP_AUTH_PW != "password"))
{
// echo $PHP_AUTH_USER." Not allowed!<br>";
// echo $PHP_AUTH_PW." Not allowed!<br>";
authenticate();
}else{
// echo "</p>Welcome: $PHP_AUTH_USER<br>";
// echo "</p>Welcome: $PHP_AUTH_USER<br>";
// echo "</p>Password: $PHP_AUTH_PW<br>";
}
?>
Manuel Lemos wrote:
> Hello,
>
> On 02/24/2004 06:50 PM, Will wrote:
> > I tried to search PHP net for this but found nothing.
> > I am doing an install script and I want to write a htaccess file to the
> > server so people can login in to there admin section.
> >
> > What is the proper way to do this and the easiest way. I know how to
> > write a file to the server, but how do you do the password thing??
>
> There are many solutions for that. You may want to try this:
>
> Class: htaccess
> http://www.phpclasses.org/htaccess
>
> --
>
> Regards,
> Manuel Lemos
attached mail follows:
I am trying to find the position of the first occurrence on new line in
a string that comes from a database. I tried
$pos = strpos( $list_text, "/n" );
But it never returns anything. Any help would be much appreciated.
Ben
--
Ben Edwards Tel +44 (0)1179 553 551 ICQ 42000477
Homepage - nothing of interest here http://gurtlush.org.uk
Webhosting for the masses http://www.serverone.co.uk
criticalSite Builder CMS http://www.criticaldistribution.com
Get alt news/views films online http://www.cultureshop.org
i-Contact Progressive Video http://www.videonetwork.org
Fun with corporate graphics http://www.subvertise.org
--
****************************************************************
* Ben Edwards Tel +44 (0)1179 553 551 ICQ 42000477 *
* Homepage - nothing of interest here http://gurtlush.org.uk *
* Webhosting for the masses http://www.serverone.co.uk *
* Critical Site Builder http://www.criticaldistribution.com *
* online collaborative web authoring content management system *
* Get alt news/views films online http://www.cultureshop.org *
* i-Contact Progressive Video http://www.videonetwork.org *
* Fun corporate graphics http://www.subvertise.org *
* Bristol Indymedia http://bristol.indymedia.org *
* Bristol's radical news http://www.bristle.org.uk *
****************************************************************
attached mail follows:
Ben Edwards wrote:
> I am trying to find the position of the first occurrence on new line in
> a string that comes from a database. I tried
>
> $pos = strpos( $list_text, "/n" );
>
> But it never returns anything. Any help would be much appreciated.
>
> Ben
try $pos = strpos( $list_text, "\n" )
the escape character is \ not /
Kirk Winters
attached mail follows:
I'm trying to create a PHP sequential random character generator that will output to a file database of some sort. The randomization needs to be using both capital letters and numbers. I need to output like 2 million records. Can someone point me in the right direction on how to do this?
I'm also looking to to this without letters as well.
Thanks in advance,
Steve
attached mail follows:
On Wed, 2004-02-25 at 11:25, list
pfohlsolutions.com wrote:
> I'm trying to create a PHP sequential random character generator that will output to a file database of some sort. The randomization needs to be using both capital letters and numbers. I need to output like 2 million records. Can someone point me in the right direction on how to do this?
>
> I'm also looking to to this without letters as well.
Make an array containing the characters/numbers/whatever you want to be
selected at random then pick from it using a random integer generated
from mt_rand[1] and echo your selection. If you have PHP < 4.2.0 you
will also need to use mt_srand[2].
$field = array('a','b');
$field_max = count($field) - 1;
echo $field[mt_rand(0, $field_max)];
[1] http://www.php.net/mt_rand
[2] http://www.php.net/mt_srand
--
Adam Bregenzer
adam
bregenzer.net
attached mail follows:
At 11:25 AM 2/25/2004 -0500, list
pfohlsolutions.com wrote:
>I'm trying to create a PHP sequential random character generator that will
>output to a file database of some sort. The randomization needs to be
>using both capital letters and numbers. I need to output like 2 million
>records. Can someone point me in the right direction on how to do this?
>
>I'm also looking to to this without letters as well.
>
>Thanks in advance,
>Steve
First of all, have you tried it? Pseudo-coded it? Here's one approach:
Check the decimal ranges of the ASCII table for the character set(s) you
want. That will determine the limits of the random numbers you will accept.
Start a loop, the number of iterations equal to the length of the string
you want, calling rand() with the decimal limits you will accept.
Convert the output of rand() to a character using chr() and store it in
your string.
Loop until the string is filled.
Search your database for the value of the string. If it's not found, which
assures you of it's uniqueness, execute an INSERT or UPDATE, whichever is
appropriate for what you're doing. (Alternately append to the end of a file
if you are using a text file if that's what you are doing, but if you want
to check for uniqueness you will have to read the file each time, v. slow.)
Clear the string and repeat. (Actually you could just overwrite the string.)
Do the above 2 million times. It's amazingly fast.
May we ask why you are doing this?
Regards - Miles Thompson
attached mail follows:
list
pfohlsolutions.com <mailto:list
pfohlsolutions.com>
on Wednesday, February 25, 2004 8:26 AM said:
> I'm trying to create a PHP sequential random character generator that
> will output to a file database of some sort.
and just to be a hair splitter, you can't be both sequential AND random
at the same time.
chris.
attached mail follows:
First I know that sequential and random cannot co-exist. Let me explain what I'm attempting to use this for.
I'm printing tags that will be used in the same way you win Pepsi stuff online. You will get a randomly generated code on the tag to check to see if you won at a website. The data needs to be usable by both the printer and the web server so I thought PHP and a comma delimited database structure might be a good choice.
One data setup I thought would work is something like this:
1 D56ER48 3
2 IU89S33 0
3 A8W7E95 0
4 5554SSR 1
The first column being a key, which the printer requested, the second being the random tag, and the third being what prize package they get, or don't get.
The third column could be randomly assigned as well but it would be nice to say of the X number of records make 100,000 winners for package 1, 50,000 for package 2, etc.
As was mentioned I don't want this script to take ten years to output 2 million records and I wasn't sure if there are size constraints with comma delimited files.
Hope this clarifies things a little more.
Steve
attached mail follows:
On Wed, 2004-02-25 at 12:56, list
pfohlsolutions.com wrote:
> The first column being a key, which the printer requested, the second
> being the random tag, and the third being what prize package they get,
> or don't get.
Verifying you have unique records as well as generating the prize
information are part of the tasks you need to solve in writing the
application. You may want to store the information in a database and
use it to verify the uniqueness of the keys, also you can then easily
batch process the application so it can be stopped and started.
> As was mentioned I don't want this script to take ten years to output
> 2 million records and I wasn't sure if there are size constraints with
> comma delimited files.
I would recommend splitting the application into pieces, first generate
the keys, then assign the prizes, this way you have more control. Also,
I would run this through the cli, not as a web page. As for how long it
will take, that's anybody's guess and greatly depends on the speed of
the system you run it on.
> Hope this clarifies things a little more.
If you have a particular problem please ask about that, mostly I see
here a request for someone to design your application for you.
--
Adam Bregenzer
adam
bregenzer.net
attached mail follows:
I'm trying to figure out something. I found some calendar making code. For each table cell, I want to add <a href="">$day</a> around $day if an entry exists in $db.$table
$sql = 'SELECT * FROM '.$db.'.'.$table.' where eventid like '.$eventid.';';
if ($sql ??)
{echo "<td><a href=\"\">$day</a></td>";
}else{
echo "<td>$day</td>";
}
How do I code to know if $sql has returned something?
Thanks,
John
P.S. Greg,
Thanks. I'm going to try to do this on my own.
If not, I will look at that. Thanks much for the reply.
> http://pear.php.net/Calendar
> Regards,
> Greg
>
attached mail follows:
John Taylor-Johnston wrote:
>I'm trying to figure out something. I found some calendar making code. For each table cell, I want to add <a href="">$day</a> around $day if an entry exists in $db.$table
>
>$sql = 'SELECT * FROM '.$db.'.'.$table.' where eventid like '.$eventid.';';
>
>if ($sql ??)
>
>
This will do:
if ($sql)
Best
Bao
>{echo "<td><a href=\"\">$day</a></td>";
>}else{
>echo "<td>$day</td>";
>}
>
>How do I code to know if $sql has returned something?
>Thanks,
>John
>
>
>P.S. Greg,
>Thanks. I'm going to try to do this on my own.
>If not, I will look at that. Thanks much for the reply.
>
>
>
>>http://pear.php.net/Calendar
>>Regards,
>>Greg
>>
>>
>>
>
>
>
attached mail follows:
On Thursday 26 February 2004 01:31, John Taylor-Johnston wrote:
> I'm trying to figure out something. I found some calendar making code. For
> each table cell, I want to add <a href="">$day</a> around $day if an entry
> exists in $db.$table
>
> $sql = 'SELECT * FROM '.$db.'.'.$table.' where eventid like '.$eventid.';';
>
> if ($sql ??)
> {echo "<td><a href=\"\">$day</a></td>";
> }else{
> echo "<td>$day</td>";
> }
>
> How do I code to know if $sql has returned something?
It seems that you're not familiar with accessing databases using PHP. I
strongly suggest that you follow some tutorials on the subject before trying
to write your own code.
--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
Sin boldly.
-- Martin Luther
*/
attached mail follows:
Bao or anyone,
Here is my code. $sql works correctly, but am not sure I did this line correct:
$glquery = mysql_query($sql);
because "if ($glquery)" always returns something. I want to know if it returns NULL.
Thanks for your time,
John
-----------snip-----------------
$myconnection = mysql_connect($server,$user,$pass);
mysql_select_db($db,$myconnection);
$eventid = $link_date;
$sql = 'SELECT * FROM '.$table.' where eventid like '.$eventid.';';
#echo $sql;
#SELECT * FROM GMCalendar where eventid like 2004-02-16;
$glquery = mysql_query($sql);
if ($glquery)
{
echo "<td><a href=results.php?eventid=$link_date> $day </a></td>";
}else{
echo "<td> $day </td>";
}
Bao Ruixian wrote:
> John Taylor-Johnston wrote:
> >$sql = 'SELECT * FROM '.$db.'.'.$table.' where eventid like '.$eventid.';';
> >if ($sql ??)
> This will do:
> if ($sql)
attached mail follows:
John Taylor-Johnston wrote:
>Bao or anyone,
>
>Here is my code. $sql works correctly, but am not sure I did this line correct:
>
>$glquery = mysql_query($sql);
>
>because "if ($glquery)" always returns something. I want to know if it returns NULL.
>
>
Gee, I was goofed up by your last $sql:) Now you can check if it returns
NULL by
if (!$glquery)
Best
Bao
>Thanks for your time,
>John
>
>-----------snip-----------------
>
>$myconnection = mysql_connect($server,$user,$pass);
>mysql_select_db($db,$myconnection);
>
>$eventid = $link_date;
>$sql = 'SELECT * FROM '.$table.' where eventid like '.$eventid.';';
>#echo $sql;
>#SELECT * FROM GMCalendar where eventid like 2004-02-16;
>$glquery = mysql_query($sql);
>
>if ($glquery)
>{
>echo "<td><a href=results.php?eventid=$link_date> $day </a></td>";
>}else{
>echo "<td> $day </td>";
>}
>
>Bao Ruixian wrote:
>
>
>
attached mail follows:
Hello John,
Wednesday, February 25, 2004, 5:53:13 PM, you wrote:
JTJ> Here is my code. $sql works correctly, but am not sure I did this line correct:
JTJ> $glquery = mysql_query($sql);
JTJ> because "if ($glquery)" always returns something. I want to know if it returns NULL.
mysql_query will return FALSE if the query is invalid.
If the query is perfectly valid SQL, but just doesn't return
anything, then you need to use mysql_num_rows() instead - if this is
equal to nothing then nothing was returned.
--
Best regards,
Richard Davey
http://www.phpcommunity.org/wiki/296.html
attached mail follows:
On Thursday 26 February 2004 01:53, John Taylor-Johnston wrote:
> Here is my code. $sql works correctly, but am not sure I did this line
> correct:
Your query ($sql) is incorrect and will not work. See manual for why.
> $glquery = mysql_query($sql);
>
> because "if ($glquery)" always returns something. I want to know if it
> returns NULL.
It will never return NULL. See manual for why.
Your logic of using "if ($glquery)" for your purpose is incorrect. See manual
for why.
--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
The more beautiful the woman is who loves you, the easier it is to leave her
with no hard feeling
-- Murphy's Laws on Sex n1
*/
attached mail follows:
Bao,
I have only one entry where eventid = 2004-02-28. if (!$glquery) does not result in anything either.
Jason,
Where in the manual would I look? I looked at http://www.php.net/manual/en/function.mysql-query.php but don't find anything inspiring.
It does not die, so I can't check if it is false or true this way.
$sql = 'SELECT * FROM '.$table.' where eventid like \''.$eventid.'\';';
$glquery = mysql_query($sql) or die("Invalid query: " . mysql_error());
#echo $sql;
if (!$glquery)
{
echo "<td width=100 height=100 align=left valign=top>..<a href=results.php?eventid=$link_date> $day </a></td>";
}else{
echo "<td width=100 height=100 align=left valign=top> $day </td>";
}
> >Here is my code. $sql works correctly, but am not sure I did this line correct:
> >$glquery = mysql_query($sql);
> >because "if ($glquery)" always returns something. I want to know if it returns NULL.
> Gee, I was goofed up by your last $sql:) Now you can check if it returns
> NULL by
> if (!$glquery)
>
> >Thanks for your time,
> >John
> >
> >-----------snip-----------------
> >
> >$myconnection = mysql_connect($server,$user,$pass);
> >mysql_select_db($db,$myconnection);
> >
> >$eventid = $link_date;
> >$sql = 'SELECT * FROM '.$table.' where eventid like '.$eventid.';';
> >#echo $sql;
> >#SELECT * FROM GMCalendar where eventid like 2004-02-16;
> >$glquery = mysql_query($sql);
> >
> >if ($glquery)
> >{
> >echo "<td><a href=results.php?eventid=$link_date> $day </a></td>";
> >}else{
> >echo "<td> $day </td>";
> >}
> >
> >Bao Ruixian wrote:
> >
> >
> >
--
John Taylor-Johnston
-----------------------------------------------------------------------------
"If it's not Open Source, it's Murphy's Law or broken."
' ' ' Collège de Sherbrooke
ô¿ô http://www.collegesherbrooke.qc.ca/languesmodernes/
- Université de Sherbrooke
http://compcanlit.ca/
819-569-2064
attached mail follows:
Richard,
Thanks. Should I still include the die ?
$myconnection = mysql_connect($server,$user,$pass);
mysql_select_db($db,$myconnection);
$eventid = $link_date;
$sql = 'SELECT * FROM '.$table.' where eventid like \''.$eventid.'\';';
$glquery = mysql_query($sql) or die("Invalid query: " . mysql_error());
$num_rows = mysql_num_rows($glquery);
if ($num_rows > 0)
{
echo "<td width=100 height=100 align=left valign=top><a href=results.php?eventid=$link_date> $day </a></td>";
}else{
echo "<td width=100 height=100 align=left valign=top> $day </td>";
}
Richard Davey wrote:
> mysql_query will return FALSE if the query is invalid.
> If the query is perfectly valid SQL, but just doesn't return
> anything, then you need to use mysql_num_rows() instead - if this is
> equal to nothing then nothing was returned.
attached mail follows:
Hello John,
Wednesday, February 25, 2004, 6:26:41 PM, you wrote:
JTJ> Richard,
JTJ> Thanks. Should I still include the die ?
JTJ> $glquery = mysql_query($sql) or die("Invalid query: " . mysql_error());
It's up to you, I never do. It won't give you a very clean exit if an
error occurs.
--
Best regards,
Richard Davey
http://www.phpcommunity.org/wiki/296.html
attached mail follows:
Hello,
using PHP5 Beta 4 I saw some new classes like DirectoryIterator with nice
methods like:
__construct
rewind
hasMore
key
current
next
getPath
getFilename
getPathname
getPerms
getInode
...
but i don't know how to apply them?
Would be nice if somebody could post some links with code examples
(recursive filesystem reading; just getting folder contents; etc.)...
Thanks,
vivi
attached mail follows:
> using PHP5 Beta 4 I saw some new classes like DirectoryIterator with nice
> methods like:
>
Where did you see these classes? Is it a PEAR package? I haven't seen
these in the PHP manual.
--
Regards,
Ben Ramsey
http://benramsey.com
http://www.phpcommunity.org/wiki/People/BenRamsey
attached mail follows:
Ben Ramsey wrote:
>> using PHP5 Beta 4 I saw some new classes like DirectoryIterator with nice
>> methods like:
>>
>
> Where did you see these classes? Is it a PEAR package? I haven't seen
> these in the PHP manual.
>
You can find them using the following function:
function printDeclaredClasses() {
$classes = get_declared_classes();
foreach($classes as $class) {
print("\n<b>" . $class . "</b>\n");
$methods = get_class_methods($class);
foreach($methods as $method) {
print("\t" . $method . "\n");
}
}
}
make a printDeclaredClasses(), search for "DirectoryIterator" and you can
see available methods for that class..
attached mail follows:
That's some pretty helpful information there. I didn't know about that.
Thanks!
-Ben
Vivian Steller wrote:
> Ben Ramsey wrote:
>
>
>>>using PHP5 Beta 4 I saw some new classes like DirectoryIterator with nice
>>>methods like:
>>>
>>
>>Where did you see these classes? Is it a PEAR package? I haven't seen
>>these in the PHP manual.
>>
>
>
> You can find them using the following function:
>
> function printDeclaredClasses() {
> $classes = get_declared_classes();
> foreach($classes as $class) {
> print("\n<b>" . $class . "</b>\n");
> $methods = get_class_methods($class);
> foreach($methods as $method) {
> print("\t" . $method . "\n");
> }
> }
> }
>
> make a printDeclaredClasses(), search for "DirectoryIterator" and you can
> see available methods for that class..
--
Regards,
Ben Ramsey
http://benramsey.com
http://www.phpcommunity.org/wiki/People/BenRamsey
attached mail follows:
When I was looking for information regarding get_declared_classes(), I
came across these links in the manual. I hope they help.
http://us4.php.net/manual/en/reserved.classes.php
http://us4.php.net/manual/en/class.dir.php
Still, I don't think the manual has any documentation yet on
directoryIterator, and I didn't see it when I used your function on beta
3 (which is what I'm running at present). So, it must be brand new.
--
Regards,
Ben Ramsey
http://benramsey.com
http://www.phpcommunity.org/wiki/People/BenRamsey
attached mail follows:
Thanks for the hint, but the frames are wide enough.
I also tried it on my test server and on a real web server with the same
result.
"Sam Masiello" <smasiello
mxlogic.com> schrieb im Newsbeitrag
news:5E1C03CA70721448A7F9E339BB6532B654CE41
mxhq-exch.corp.mxlogic.com...
I am afraid that I don't get the same problem that you do. If I request
frameset.html in my browser I get the text that you are echoing in your
PHP statement in the top frame.
Is it possible that your resolution is such that you need to scroll in
the top frame to see it? Try viewing the source of the top frame to see
if the contents of your echo statement is in there.
--Sam
joe-at wrote:
> hi pleas help me,
>
> when I try to use php in a frame of a frameset it dos not work. what
> is wrong with my files?
>
>
>
> fameset.html:
>
>
>
> <html>
>
> <head>
>
> <title>frameset</title>
>
> </head>
>
> <frameset rows="83*,377*" cols="*">
>
> <frame src="test.php" name="topFrame">
>
> <frame src="Info.htm" name="mainFrame">
>
> </frameset>
>
> <noframes></noframes>
>
> <body>
>
> </body>
>
> </html>
>
>
>
> test.php:
>
>
>
> <html>
>
> <head>
>
> <title>test</title>
>
> </head>
>
> <body>
>
> <p>Jetzt sollt ein PHP-Skript erscheinen:</p>
>
> <?php echo "Wer fersteht das noch?" ?>
>
> </body>
>
> </html>
>
>
>
> result of the top frame (test.php):
>
> Jetzt soll ein PHP-Skript erscheinen:
>
>
>
> test.php works without frameset:
>
> Jetzt sollt ein PHP-Skript erscheinen:
>
> Wer fersteht das noch?
>
>
>
>
>
> Thanks for help
>
> joe-at
attached mail follows:
Yes, they are wide enough...i was speaking of long enough. In other
words, be sure the top frame doesn't scroll. The code as you posted it
works fine, but on my display it barely fits in the top frame. On a
lower resolution you might not see the text in the top frame.
Have you tried making your top frame bigger (change the 83 to 200) to
see if you can see the text?
--Sam
joe-at wrote:
> Thanks for the hint, but the frames are wide enough.
> I also tried it on my test server and on a real web server with the
> same result.
>
> "Sam Masiello" <smasiello
mxlogic.com> schrieb im Newsbeitrag
>
news:5E1C03CA70721448A7F9E339BB6532B654CE41
mxhq-exch.corp.mxlogic.com..
.
>
> I am afraid that I don't get the same problem that you do. If I
> request frameset.html in my browser I get the text that you are
> echoing in your PHP statement in the top frame.
>
> Is it possible that your resolution is such that you need to scroll
> in the top frame to see it? Try viewing the source of the top frame
> to see if the contents of your echo statement is in there.
>
> --Sam
>
>
>
> joe-at wrote:
>> hi pleas help me,
>>
>> when I try to use php in a frame of a frameset it dos not work. what
>> is wrong with my files?
>>
>>
>>
>> fameset.html:
>>
>>
>>
>> <html>
>>
>> <head>
>>
>> <title>frameset</title>
>>
>> </head>
>>
>> <frameset rows="83*,377*" cols="*">
>>
>> <frame src="test.php" name="topFrame">
>>
>> <frame src="Info.htm" name="mainFrame">
>>
>> </frameset>
>>
>> <noframes></noframes>
>>
>> <body>
>>
>> </body>
>>
>> </html>
>>
>>
>>
>> test.php:
>>
>>
>>
>> <html>
>>
>> <head>
>>
>> <title>test</title>
>>
>> </head>
>>
>> <body>
>>
>> <p>Jetzt sollt ein PHP-Skript erscheinen:</p>
>>
>> <?php echo "Wer fersteht das noch?" ?>
>>
>> </body>
>>
>> </html>
>>
>>
>>
>> result of the top frame (test.php):
>>
>> Jetzt soll ein PHP-Skript erscheinen:
>>
>>
>>
>> test.php works without frameset:
>>
>> Jetzt sollt ein PHP-Skript erscheinen:
>>
>> Wer fersteht das noch?
>>
>>
>>
>>
>>
>> Thanks for help
>>
>> joe-at
attached mail follows:
hi pleas help me,
when I try to use php in a frame of a frameset it dos not work. what is
wrong with my files?
I tried it on my test server and on a real web server with the same result.
fameset.html:
<html>
<head>
<title>frameset</title>
</head>
<frameset rows="83*,377*" cols="*">
<frame src="test.php" name="topFrame">
<frame src="Info.htm" name="mainFrame">
</frameset>
<noframes></noframes>
<body>
</body>
</html>
test.php:
<html>
<head>
<title>test</title>
</head>
<body>
<p>Jetzt sollt ein PHP-Skript erscheinen:</p>
<?php echo "Wer fersteht das noch?" ?>
</body>
</html>
result of the top frame (test.php):
Jetzt soll ein PHP-Skript erscheinen:
test.php works without frameset:
Jetzt sollt ein PHP-Skript erscheinen:
Wer fersteht das noch?
Thanks for help
joe-at
attached mail follows:
I hope someone here can help me because for some reason I can't receive any
mail from the pdflib mailing list. I have PDFlib + PDI 5 using php to
create my pages. This is the first time that I have had to do this and
just can't figure it out. I have two files:
ChurchCalendarFrontPage.pdf
Church.pdf
What I am trying to do is to have a page (cal.php) that someone goes to and
it will create just one pdf document output with the two pdf documents. I
can do it if I designate which page(s) that I want to display from each
document, but they don't always have the same amount of pages. At the
moment, the ChurchCalendarFrontPage.pdf has only one page and the
Church.pdf has 13 pages to it. Hopefully someone here will know what I am
asking for and be able to help me by either showing me where to go for
examples, or show me the code for this. I am pretty new to PDFlib.
Thanks in Advance
Steve
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]