|
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 29 Apr 2003 01:38:55 -0000 Issue 2026
php-general-digest-help
lists.php.net
Date: Mon Apr 28 2003 - 20:38:55 CDT
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
php-general Digest 29 Apr 2003 01:38:55 -0000 Issue 2026
Topics (messages 145525 through 145577):
Re: newbie: help with array
145525 by: Tom Rogers
145532 by: patlebon
sript dosen't echo on browser
145526 by: nitin ambekar
select from to another table
145527 by: pag
Re: NEWBIE.. Major problems with fopen() ??
145528 by: Burhan Khalid
145560 by: Christian..
145565 by: Robert Cummings
Re: Fastest commands
145529 by: Shawn McKenzie
using a pear class or function within a function
145530 by: Mike Jackson
145547 by: Greg Beaver
Re: Web Caching...
145531 by: Scott Fletcher
Logical Operators
145533 by: ed.homes2see.com
145534 by: Alexander BOYER
Set session by hand
145535 by: Alexander BOYER
145575 by: Justin French
Re: switch query (or may be I have done something wrong)
145536 by: Shawn McKenzie
Does anybody know if session_start() controls IP address ?
145537 by: Alexander BOYER
145543 by: Jim Lucas
145546 by: Leif K-Brooks
145554 by: Philip Olson
145557 by: Alexander BOYER
145558 by: Warren Vail
mcrypt, mhash install and configure
145538 by: SpyProductions Support Team
145541 by: Mike At Spy
Unable to find ftpbuf error
145539 by: Brad Harriger
145555 by: Brad Harriger
hello
145540 by: Will Swain
PHP compiling
145542 by: Mike At Spy
145552 by: Jason Wong
Solved mod_php4.c file for windows
145544 by: Mario Soto
Re: Newbie PAssing $variables in URL
145545 by: Steve Keller
Re: Create programable CSS
145548 by: Mario Soto
Re: SMTP mail() problem
145549 by: Mario Soto
Re: Hint window with php
145550 by: Steve Keller
mod_php4 cannot start apache with /usr/local/lib/libxml2.so.5: Undefined symbol "pthread_equal"
145551 by: Ilya
Re: why the form data is not complete??!!!
145553 by: Joshua Groboski
Re: POST Variables
145556 by: Shawn McKenzie
mysql_query problem...
145559 by: Prince
Forum
145561 by: Shaun
145562 by: Pushpinder Singh Garcha
145563 by: Ryan A
145564 by: Pierrick LE GALL
145566 by: Robert Cummings
145571 by: Jeff Lewis
145574 by: Justin French
zlib problem
145567 by: php.uadm.com
Re: Help needed using mail function
145568 by: Mario Soto
Re: Mime Problem with mail funtion
145569 by: Mario Soto
Re: Mail () problem with some letters
145570 by: Mario Soto
PHP 4.3.2RC2 released.
145572 by: Jani Taskinen
Re: script problems
145573 by: David Robley
ldap_add bombed with special chars
145576 by: Roger Thomas
I'm begging for help displaying a remote web page.
145577 by: Police Trainee
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:
Hi,
Monday, April 28, 2003, 11:14:30 PM, you wrote:
p> The check permission only works when the permission is in the array. When
p> the array does not contain the required permission the following error is
p> thrown:
p> Notice: Undefined offset: 3 in C:\Inetpub\...\menu.php on line 29
p> Any ideas what may be casuing this? Thanks for your help so far.
p> "Marek Kilimajer" <kilimajer@webglobe.sk> wrote in message
p> news:3EAD0B3E.9050901@webglobe.sk...
>> Something like:
>> // set permissions
>> while($perm = mysql_fetch_assoc($res)){
>> $_SESSION['userPermissions'][$perm['userPermission']]=1;
>> }
>>
>> //check permission
>> if($_SESSION['userPermissions']['read']) {
>> //is allowed to read
>> }
>>
>> patlebon wrote:
>>
>> >I have database table that contains userId and permissionId. I want to
p> query
>> >this table and make an array/list of permissions for a user when they
p> login
>> >and assign these to a session variable called
p> $_SESSION["userPermissions"].
>> >On other pages i want to check if their $_SESSION["userPermissions"]
p> array
>> >contains certain permissions and only allow certian bits of code to be
>> >displayed if it does.
>> >
>> >I have the query to get the permissions from the database but after this
p> im
>> >not sure what to do.
>> >
>> >Any help on how to do this would be much appreciated.
>> >
>> >
>> >
>> >
>> >
>>
You should do the set like this:
if(isset($_SESSION['userPermissions']['read']) && $_SESSION['userPermissions']['read'] == 1) {
//is allowed to read
}
--
regards,
Tom
attached mail follows:
Thanks for your help. Its all working fine now
"Patlebon" <patlebon@optusnet.com.au> wrote in message
news:20030428102049.45964.qmail@pb1.pair.com...
> I have database table that contains userId and permissionId. I want to
query
> this table and make an array/list of permissions for a user when they
login
> and assign these to a session variable called
$_SESSION["userPermissions"].
> On other pages i want to check if their $_SESSION["userPermissions"] array
> contains certain permissions and only allow certian bits of code to be
> displayed if it does.
>
> I have the query to get the permissions from the database but after this
im
> not sure what to do.
>
> Any help on how to do this would be much appreciated.
>
>
attached mail follows:
hi,
could any body help me out.
i have text file called dtopsong.txt
<|Date:16/4/2003>
<None><1><jina tere lie><7><16>
<None><1><ask><7><14>
.
.
<Date|>
<|Date:15/4/2003>
<None><1><sislsiala ye chahat ka><7><16>
<None><2><jina tere lie><7><16>
.
.
<Date|>
i wrote script called top10song.php
<?php
$handle=fopen("/var/www/html/innoproject/dtopsont.txt","r");
while ($line=fgets($handle)) {
if(preg_match("|<([^>])><([^>])><([^>])><([^>])><([^>])>|",$line,$m)){
echo"<tr><td>$m[1]</td><td>$m[2]</td><td>$m[3]</td><td>$m[4]</td>$m[5]</td></tr>\n";
}
}
this script does not echo any thing on browser.
in anticipation,
nitin
attached mail follows:
i have 2 tables rs_users & rs_messages
rs_users -> id & nickname
rs_messages -> sender !
rs_users should be clear
rs_messages in sender the ID of the sender is stored (not name!!!!)
now i want to display the name of sender on the messages page. my question :
how to do that in 1 query ?
attached mail follows:
Hello cdn,
Wednesday, May 28, 2003, 3:41:07 AM, you wrote:
[ snip ]
c> ini_set("allow_url_fopen", "On");
Try ini_set("allow_url_fopen", "1");
c> $handle=fopen("http://www.cdn.dk/test.txt", "r");
Try this :
if (!($handle = fopen("http://www.cdn.dk/test.txt", "r"))){
die ("Cannot open file");
}
Also, this might be an easier approach :
$contents = file("http://www.cdn.dk/test.txt");
echo "<pre>"; print_r($contents); echo"</pre>";
--
Best regards,
Burhan
phplist[at]meidomus[dot]com
attached mail follows:
Hi
I tryed the file() and got the same:
Warning: file("http://www.cdn.dk/test.txt") - No such file or directory in
/customers/roskilderoklub.dk/roskilderoklub.dk/httpd.www/php/test3.php on
line 3
Is it the provider who has stop the possibility to open a page on another
site ?
Christian
"Burhan Khalid" <phplist@meidomus.com> wrote in message
news:1442632123.20030428085134@meidomus.com...
> Hello cdn,
>
> Wednesday, May 28, 2003, 3:41:07 AM, you wrote:
>
> [ snip ]
>
> c> ini_set("allow_url_fopen", "On");
>
> Try ini_set("allow_url_fopen", "1");
>
> c> $handle=fopen("http://www.cdn.dk/test.txt", "r");
>
> Try this :
> if (!($handle = fopen("http://www.cdn.dk/test.txt", "r"))){
> die ("Cannot open file");
> }
>
> Also, this might be an easier approach :
>
> $contents = file("http://www.cdn.dk/test.txt");
> echo "<pre>"; print_r($contents); echo"</pre>";
>
>
>
> --
> Best regards,
> Burhan
> phplist[at]meidomus[dot]com
>
>
attached mail follows:
Just to rule out the obvious -- have you checked that you have allow_url_fopen
set to true??
http://www.php.net/manual/en/ref.filesystem.php#ini.allow-url-fopen
Cheers,
Rob.
--
.---------------------------------------------.
| Worlds of Carnage - http://www.wocmud.org |
:---------------------------------------------:
| Come visit a world of myth and legend where |
| fantastical creatures come to life and the |
| stuff of nightmares grasp for your soul. |
`---------------------------------------------'
"Christian.." wrote:
>
> Hi
>
> I tryed the file() and got the same:
>
> Warning: file("http://www.cdn.dk/test.txt") - No such file or directory in
> /customers/roskilderoklub.dk/roskilderoklub.dk/httpd.www/php/test3.php on
> line 3
>
> Is it the provider who has stop the possibility to open a page on another
> site ?
>
> Christian
>
> "Burhan Khalid" <phplist@meidomus.com> wrote in message
> news:1442632123.20030428085134@meidomus.com...
> > Hello cdn,
> >
> > Wednesday, May 28, 2003, 3:41:07 AM, you wrote:
> >
> > [ snip ]
> >
> > c> ini_set("allow_url_fopen", "On");
> >
> > Try ini_set("allow_url_fopen", "1");
> >
> > c> $handle=fopen("http://www.cdn.dk/test.txt", "r");
> >
> > Try this :
> > if (!($handle = fopen("http://www.cdn.dk/test.txt", "r"))){
> > die ("Cannot open file");
> > }
> >
> > Also, this might be an easier approach :
> >
> > $contents = file("http://www.cdn.dk/test.txt");
> > echo "<pre>"; print_r($contents); echo"</pre>";
> >
> >
> >
> > --
> > Best regards,
> > Burhan
> > phplist[at]meidomus[dot]com
> >
> >
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
attached mail follows:
Thanks guys!
One more question. What if:
$content = "<one>, <two>, <three>";
And for example I want to replace '<one>' with '1' but the array key is
still 'one'? And further what if the array key is '[one]'?
TIA,
Shawn
"Shawn McKenzie" <nospam@mckenzies.net> wrote in message
news:20030425173101.17182.qmail@pb1.pair.com...
> Is there a list of commands or any guidance on what executes the fastest?
> There are some notes in some of the ereg_, preg_ and str_ function docs
> about which ones are faster, but what about others? Also, I want to do a
> replace where the search is array indices and the replace is the values of
> the found index. Is the following the fastest???
>
> $content = "one, two, three";
>
> $thearray = array (
> 'one' => '1',
> 'two' => '2',
> 'three' => '3',
> );
>
> foreach($thearray as $search => $replace) {
> $content = str_replace($search, $replace, $content);
> }
>
> Thanks!
> Shawn
>
>
attached mail follows:
Hi,
I'm having this "scoping" problem. I would like to use a pear class
from within a function that I have written, but the methods don't seem
to work.
For example:
function foo()
{
include('/usr/local/lib/php/Mail.php');
include('/usr/local/lib/php/Mail/mime.php');
$mime = new Mail_mime($crlf);
}
When I execute this function:
Fatal error: Cannot redeclare class mail in /usr/local/lib/php/Mail.php
on line 32
Any ideas? I'd also like to call another one of my functions from within
a function...
Thanks,
--
mike
attached mail follows:
Hi,
use include_once()
Regards,
Greg
--
phpDocumentor
http://www.phpdoc.org
Mike Jackson wrote:
> Hi,
> I'm having this "scoping" problem. I would like to use a pear class
> from within a function that I have written, but the methods don't seem
> to work.
>
> For example:
>
> function foo()
> {
>
> include('/usr/local/lib/php/Mail.php');
> include('/usr/local/lib/php/Mail/mime.php');
>
> $mime = new Mail_mime($crlf);
>
> }
>
>
> When I execute this function:
>
> Fatal error: Cannot redeclare class mail in /usr/local/lib/php/Mail.php
> on line 32
>
> Any ideas? I'd also like to call another one of my functions from within
> a function...
>
> Thanks,
> --
> mike
attached mail follows:
I have used this example and it still doesn't work. So, it meant that
Apache need to be configured. It's not a PHP problem anymore. Because the
webpage still get cache when I use the back and forward buttons. It never
mentioned a expired webpage.
--clip--
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
--clip--
I have been trying a number of different combination for a few years and
they all don't work. Remember PHP is helpless if the Apache can't do it's
job.... It is Apache's responsibilty to do it's job when PHP tell it to do
so. So, I will recompile Apahce to use the mod_header and mod_expires and
configure it along the way.
"Rasmus Lerdorf" <rasmus@lerdorf.com> wrote in message
news:Pine.WNT.4.53.0304260159200.2240@DELL...
> mod_expires? mod_headers? No, you are on the wrong track. These modules
> simply add various headers to static files. If you are worried about
> cacheing PHP-generated scripts, you have full control over the response
> headers from PHP. You simply need to send the right ones. It's not
> called "Pragma-Cache" for example, it is just "Pragma" and that is the old
> way of doing things. The 1.1 cache control header is called
> "Cache-Control". But basically, just go and read about HTTP headers
> somewhere and figure out which headers you need to send to achieve
> whatever it is you are trying to do. PHP does not interfere in any way
> with the sending of whatever headers you want to send.
>
> -Rasmus
>
> On Fri, 25 Apr 2003, Scott Fletcher wrote:
>
> > Still searching the archieves for a few hours and fix the broken
codes...
> > Still have not found the solution to the problem about the caching
> > control... As when I took a break from it and read the PHP manual about
the
> > php header function which then lead to another function
> > 'session-cache-limiter' and found the hyperlink there that link to a
website
> > that is very well explain about how to use it. Like a manual of some
sort.
> > The hyperlink here is http://www.mnot.net/cache_docs/. From there, I
found
> > the cause of the problem. It said that the browser is one thing and the
> > server is another thing. Since I'm using Apache, in the manual said I
have
> > to have it turn on on Apache for the PHP to be able to use it. It said
I
> > need mod_expires and mod_headers. Since I don't have that running, so
the
> > cache control in effect doesn't work.... That's explained why I have
been
> > having trouble for a few years...
> >
> >
> > "Scott Fletcher" <scott@abcoa.com> wrote in message
> > news:20030425155351.28588.qmail@pb1.pair.com...
> > > I have noticed that the web caching doesn't work too well. If I want
to
> > use
> > > the PHP header with the 'Pragma-Cache: no cache' (Spelling??), there
come
> > a
> > > few problems.
> > >
> > > 1) Some web browsers doesn't follow this rules...
> > > 2) I get the php error message because the web pages is being send out
> > after
> > > the PHP header..
> > >
> > > And so on... Any sugguestion or solution to the problem? I would
really
> > > appreciate it...
> > >
> > > Thanks,
> > > FletchSOD...
> > >
> > >
> >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
attached mail follows:
I'm trying to write a line that checks if 3 variables are all the same
value (nothing) to set another variable.
if ($a == "" && $b == "" && $c == "" ) {
$d = "something"; } else {
$d = "somethingelse"; }
It doesn't seem to work the way I want it to. All 3 variables have to
== "" in order for $d to equal "something" but my variable are always
equal to "" but $d always comes out as "somethingelse". Are the operators
wrong in my statement?
Thanks,
Ed
attached mail follows:
use empty function or === operator
<ed@homes2see.com> a écrit dans le message news:
Pine.LNX.4.04.10304280930120.22951-100000@home.homes2see.com...
>
> I'm trying to write a line that checks if 3 variables are all the same
> value (nothing) to set another variable.
>
> if ($a == "" && $b == "" && $c == "" ) {
>
> $d = "something"; } else {
>
> $d = "somethingelse"; }
>
> It doesn't seem to work the way I want it to. All 3 variables have to
> == "" in order for $d to equal "something" but my variable are always
> equal to "" but $d always comes out as "somethingelse". Are the operators
> wrong in my statement?
>
> Thanks,
>
> Ed
>
>
attached mail follows:
Hello,
CONTEXT:
I have two scripts : init.php, show.php
* init.php sets $_SESSION['test'] = 'youpi' and prints session_id()
* show.php starts session with session_id($_GET['my_sess_id']) and shows
session variables echo $_SESSION['test'];
PROBLEM:
When i request init.php, then i request show.php?my_sess_id=XXXXXX, where
XXXXX is what init.php has printed, it works.
When i request init.php, then i request show.php?my_sess_id=XXXXXX FROM
ANOTHER IP ADDRESS, the session is not loaded !!
Is it normal ? Anyone have an idea to solve my problem ?
SOURCES:
init.php
<?php
session_start();
$_SESSION['test'] = 'youpi';
echo session_id();
?>
show.php
<?php
session_id($_GET['my_session_id']);
session_start();
echo $_SESSION['test']; //print nothing
echo session_id() ; //print $_GET['my_session_id']
?>
attached mail follows:
Ok, you're pretty confused here. Please send us a step-by-step list as to
what you're trying to achieve.
Justin
on 29/04/03 2:12 AM, Alexander BOYER (alex_boyer@hotmail.com) wrote:
> Hello,
>
> CONTEXT:
> I have two scripts : init.php, show.php
> * init.php sets $_SESSION['test'] = 'youpi' and prints session_id()
> * show.php starts session with session_id($_GET['my_sess_id']) and shows
> session variables echo $_SESSION['test'];
>
> PROBLEM:
> When i request init.php, then i request show.php?my_sess_id=XXXXXX, where
> XXXXX is what init.php has printed, it works.
> When i request init.php, then i request show.php?my_sess_id=XXXXXX FROM
> ANOTHER IP ADDRESS, the session is not loaded !!
>
> Is it normal ? Anyone have an idea to solve my problem ?
>
> SOURCES:
> init.php
> <?php
>
> session_start();
> $_SESSION['test'] = 'youpi';
> echo session_id();
> ?>
>
> show.php
> <?php
> session_id($_GET['my_session_id']);
> session_start();
> echo $_SESSION['test']; //print nothing
> echo session_id() ; //print $_GET['my_session_id']
> ?>
>
>
attached mail follows:
register_globals = off
So you need to either do extract($_GET);
Or instead of $action use $_GET['action']
-Shawn
"Caspar Kennerale" <caspar@thetuckshop.com> wrote in message
news:GEEPJKBECOIIHELHEFCKAECLCJAA.caspar@thetuckshop.com...
> Was there a specific setting you were thinking of?
>
> I had already looked through my php.ini and can see nothing that is
> obviously (to me ) relevant to this issue.
>
> PHP is working (it seems)
>
> Thanks
>
> -----Original Message-----
> From: Jason Wong [mailto:php-general@gremlins.biz]
> Sent: 27 April 2003 16:00
> To: php-general@lists.php.net
> Subject: Re: [PHP] switch query (or may be I have done something wrong)
>
>
> On Sunday 27 April 2003 20:03, caspar kennerale wrote:
> > I recently updated to PHP 4.3.1 on my windows maching running at home
>
> Read comments in php.ini.
>
> --
> 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
> ------------------------------------------
> /*
> I'm changing the CHANNEL ... But all I get is commercials for "RONCO
> MIRACLE BAMBOO STEAMERS"!
> */
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>
attached mail follows:
Hello,
Thanks :)
attached mail follows:
What do you mean?
Does it retain the IP address, set the IP address, memorize the IP address?
Explain what you are thinking it should do...
Jim Lucas
----- Original Message -----
From: "Alexander BOYER" <alex_boyer@hotmail.com>
To: <php-general@lists.php.net>
Sent: Monday, April 28, 2003 8:30 AM
Subject: [PHP] Does anybody know if session_start() controls IP address ?
> Hello,
> Thanks :)
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
attached mail follows:
Alexander BOYER wrote:
>Hello,
>
Hey.
>Thanks :)
>
You're welcome! :)
--
The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be prosecuted to the full extent of the law.
attached mail follows:
Nope, sessions don't care about IP addresses.
Regards,
Philip
attached mail follows:
I find the solution of my problem : it is a special implementation of
sessions on my provider. It tracks IP Addresses for a more secure system.
Regards
"Alexander Boyer" <alex_boyer@hotmail.com> a écrit dans le message news:
20030428153046.81374.qmail@pb1.pair.com...
> Hello,
> Thanks :)
>
>
attached mail follows:
in one respect it might, the cookie that retains the session ID is stored by
the browser by domain (IP). My hosts are configured such that I can reach
my site via SSL by using a slightly different URL (to share my providers
certificate). This caused the browser, when switching domains to lose track
of the session id, and start a new (empty) session. I came up with a
workaround that I won't bother you with (it's not pretty), by setting the
cookie to contain the old session id in the new domain, then doing the
session_start().
I really hope this is not your problem,,,
Warren Vail
warren@vailtech.net
-----Original Message-----
From: Philip Olson [mailto:philip@cornado.com]
Sent: Monday, April 28, 2003 11:24 AM
To: Alexander BOYER
Cc: php-general@lists.php.net
Subject: Re: [PHP] Does anybody know if session_start() controls IP
address ?
Nope, sessions don't care about IP addresses.
Regards,
Philip
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
attached mail follows:
I am installing mcrypt, and I keep getting this error when I try to
configure it:
"You need at least libmhash 0.8.15 to compile this program"
I installed libmhash 0.8.18 already - as well as libmcrypt-2.5.7.
Does the order I installed them in matter? Do I need to reboot my server?
Why would mcrypt not be able to find the libraries?
Would it matter if I did a 'make clean' after the installation?
Thanks,
-Mike
attached mail follows:
I am installing mcrypt, and I keep getting this error when I try to
configure it:
"You need at least libmhash 0.8.15 to compile this program"
I installed libmhash 0.8.18 already - as well as libmcrypt-2.5.7.
Does the order I installed them in matter? Do I need to reboot my server?
Why would mcrypt not be able to find the libraries?
Would it matter if I did a 'make clean' after the installation?
Thanks,
-Mike
attached mail follows:
I'm getting an "Unable to find ftpbuf 0 in path/to/my/script.php" error
when I try to do an ftp_login. I've seen a lot of messages about how to
eliminate this error, but none have worked for me. Any suggestions?
Thanks,
Brad
attached mail follows:
I got past the error on ftp_login, but now, I get the same thing with
the first ftp_put.
Brad
Brad Harriger wrote:
> I'm getting an "Unable to find ftpbuf 0 in path/to/my/script.php" error
> when I try to do an ftp_login. I've seen a lot of messages about how to
> eliminate this error, but none have worked for me. Any suggestions?
>
> Thanks,
>
> Brad
>
attached mail follows:
Hi all,
I am new to the list and a php newbie. I've been developing in CF for the
last 6 years, but fancied a challenge and thought I should see what all the
fuss about php is about.
Apologies in advance for any dumb newbie questions.
Cheers
Will
attached mail follows:
When one does a new compile of PHP, do you have to refer to things
previously compiled on PHP? Meaning, if I currently have a compile with
zend and mysql, do I have to mention it in a new compile (such
as --with-mysql).
My current compile, when I look at phpinfo(), doesn't mention MySQL, yet it
works perfectly fine.
Thanks,
-Mike
attached mail follows:
On Tuesday 29 April 2003 00:28, Mike At Spy wrote:
> When one does a new compile of PHP, do you have to refer to things
> previously compiled on PHP? Meaning, if I currently have a compile with
> zend and mysql, do I have to mention it in a new compile (such
> as --with-mysql).
Yes. But it is recommended that you completely remove the old src directory,
untar a fresh copy and configure from there.
> My current compile, when I look at phpinfo(), doesn't mention MySQL, yet it
> works perfectly fine.
I'm assuming that when you say "it works perfectly fine" you mean the mysql_*
functions? Stab in the dark -- it could be that mysql support was configured
as a shared library and is being loaded dynamically.
--
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
------------------------------------------
/*
You can get there from here, but why on earth would you want to?
*/
attached mail follows:
I can kill myself! It were so simple! It's unforgetable! (I can't forgive myself) I forgot to put double quotes in one line added. Thanks for all the people that helped me, and yes, it is a symbol.
Mario Soto
mario_s@amigo.net.gt
-.-.-.-
----- Original Message -----
From: "Mario Soto" <mario_s@amigo.net.gt>
To: "php general" <php-general@lists.php.net>
Sent: Thursday, April 24, 2003 5:13 PM
Subject: mod_php4.c file for windows
I have googled 'mod_php4.c' and in the sites is unanswered the question. Where can I get this file? If somebody has it and can send it to me, please do it. (Apache 1.3.27 Not in the bynary, not emblended, not in the source; php 4.3, not in the bynary; Google, not answered).
Thanks.
Mario Soto
mario_s@amigo.net.gt
-.-.-.-
attached mail follows:
At 4/28/2003 02:43 AM, Bobby Rahman wrote:
> Hiya all,
>
> Every thread talk about pairs such as test.php?var1=bla
> I want to send the contents of a variable $project which is selected
from a drop down box within the script.
> <p><a href="new_bug_form.php?projname=$projname">add bug</a></p>
A. This cannot be accomplished with PHP, since by the time the user sees
both the form and the link, the PHP has been processed.
B. If you want it appended in an actual link like that instead of using the
form, you need to use Javascript to redirect the page onClick. However,
this is not a Javascript list, so I will tell you how to do that by private
email if you contact me.
C. If you can tolerate using a submit button, then you change your form's
action to "GET." It might serve you to read up on and understand the GET
and POST methods before attempting anything like this in the future.
--
S. Keller
UI Engineer
The Health TV Channel, Inc.
(a non - profit organization)
3820 Lake Otis Pkwy.
Anchorage, AK 99508
907.770.6200 ext.220
907.336.6205 (fax)
Email: skeller@healthtvchannel.org
Web: www.healthtvchannel.org
attached mail follows:
Hello:
> Is there a way to create dynamic CSS pages and/or JS pages using php?
It could be a nice question, but I have to think it better.
Any way, but related to this question, hope is not out topic.
From wich msExplorer and Netscape and Opera and (...) version, the navigator can handles CSS?
I don't want to include a CSS file if the program can't handle, something different can be used for giving format to the file. (Here enters php and this could be a part of the question behind).
Thanks for any help.
Mario Soto
mario_s@amigo.net.gt
-.-.-.-
attached mail follows:
----- Original Message -----
From: "Bobby Rahman" <bobby_rahman2002@hotmail.com>
Subject: [PHP] RE: SMTP mail() problem
> Hiya Im getting this SMTP error in Win98...has anyone come across it.
> Its strange as I know I had email working at some stage.
>
> Warning: mail() [function.mail]: SMTP server response: 451 Temporary local
> problem - please try later in
Your server might be overloaded. The problem (as rfc822 about smtp servers and your response) is temporal, and you should try again later to send a mail message. This is not a big problem usually, but as the message should be sended at the moment you migth try using another mail server. Check, there is a lot of free smtp servers you can use (search at google as your first choice). (If is in your computer, try to don't use it like a server under win98, but you can redirect the mail to localhost and obtain a good remailer to use as sendmail, I guess.) The problem is that the other servers, because are free, it handles a lot of mails and can have the same problem. You can still change company for your delivers, or keep trying.
I don't know but is a question to make to the list audience, and can be useful. Is there a way to assign more than one smtp servers to use and choose randomly or in another way?
By the way, your code is not good at all, this migth work.
If the code below don't work, then change all the "\n" into "\r\n".
--------------------------------------------------------------
function email($username,$email,$password){
$to=$email; //Mail of destination
$subject="Bla"; // Identificative subjects works better ;-)
// Be polite :-)
$message="Hello. This is a message for confirmation (or updating or whatever) of ...\n\n";
// The information to transmit
$message.="Username=$username\nPassword=$password\n";
// There is no reason to put the next line into the headers.
$message.="Please store this email in a secure place or delete for\nsecurity purposes";
// The user probably won't read the headers but the message.
// Still polite... and trusted
$message.=\n\nSincerely,\n\nMe.\nMy Company\nmyemail@myserver.tld"
// Is a good practice to do this (RFC2045). Headers first defined at RFC822
$headers="MIME-Version: 1.0\nContent-Type: text/plain;charset=\"iso-8859-1\"\n";
// Who is sending this message?
$headers.="From: Me<myemail@myserver.tld>\n"; //For example
// It also can be included: "Reply-To: <othermail@myserver.tld>"
mail($to,$subject,$message,$headers); // Let's send the message
return true;
}
--------------------------------------------------------------
>function email ($username, $email, $password)
>{
> $email_add =$email;
>
> $subject = "Bla";
> $mailcontent = "Your Username is: ".$username."\n"
> ."Your Password is: ".$password."\n";
> $fromaddress = "Bla
> \nPlease store this email in a secure place or
> delete for \nsecurity purposes";
> mail($email_add, $subject, $mailcontent, $fromaddress);
> return true;
> }
Greetings and the best luck.
Mario Soto
mario_s@amigo.net.gt
-.-.-.-
attached mail follows:
At 4/28/2003 10:23 AM, Chris Hayes wrote:
> I want to make hints on my registration form. I mean some help information
> if the user move the mouse pointer over a text or/and input box.
> This needs DHTML and a javascript
No it doesn't. All you need is a TITLE tag in your anchor or image. That's
what TITLE is for.
<a href="http://www.mydomain.com" title="This is my tool-tip text">click
here</a>
--
S. Keller
UI Engineer
The Health TV Channel, Inc.
(a non - profit organization)
3820 Lake Otis Pkwy.
Anchorage, AK 99508
907.770.6200 ext.220
907.336.6205 (fax)
Email: skeller@healthtvchannel.org
Web: www.healthtvchannel.org
attached mail follows:
Hi I am trying to compile mod_php4 from freebsd ports for second day now.
4.8-STABLE FreeBSD 4.8-STA i386 i386
PORTVERSION= 4.3.1
At first I was getting errors during configure state:
configure:33845: gcc -o conftest -g -O2 -DHARD_SERVER_LIMIT=512
-DDOCUMENT_LOCATION="/usr/local/www/data/" -DDEFAULT_PATH="/u
sr/local/bin:/bin:/usr/bin" -DACCEPT_FILTER_NAME="httpready" -DMOD_SSL=20811
4
-DEAPI -DEAPI_MM -DUSE_EXPAT
-L/usr/local/lib
-R/usr/local/lib -L/usr/local/lib conftest.c -liconv -lz -lsasl2
-lcyrus -lcurl -lcrack -lbz2 -lz -lcrypt -lssl -lc
rypto -lm -lcrypt -lcurl -lz -lssl -lcrypto -lz -lxml2 -lz -liconv -lm 1>&5
/usr/local/lib/libxml2.so: undefined reference to `pthread_cond_signal'
/usr/local/lib/libxml2.so: undefined reference to `pthread_getspecific'
/usr/local/lib/libxml2.so: undefined reference to `pthread_equal'
/usr/local/lib/libxml2.so: undefined reference to `pthread_once'
/usr/local/lib/libxml2.so: undefined reference to `pthread_key_create'
/usr/local/lib/libxml2.so: undefined reference to `pthread_mutex_unlock'
/usr/local/lib/libxml2.so: undefined reference to `pthread_self'
/usr/local/lib/libxml2.so: undefined reference to `pthread_mutex_destroy'
/usr/local/lib/libxml2.so: undefined reference to `pthread_mutex_lock'
/usr/local/lib/libxml2.so: undefined reference to `pthread_cond_wait'
/usr/local/lib/libxml2.so: undefined reference to `pthread_mutex_init'
/usr/local/lib/libxml2.so: undefined reference to `pthread_setspecific'
I then recompiled mod_php with -pthread option gcc, and I was able to build
and compile php successfully. However on start sate apache still complains
about one pthread_ option:
Cannot load /usr/local/libexec/apache/libphp4.so into server:
/usr/local/lib/libxml2.so.5: Undefined symbol "pthread_equal"
I have already recompiled libxml2 completely, it does use -pthread option.
nm /usr/local/lib/libxml2.so.5|grep pthread
U pthread_cond_signal
U pthread_cond_wait
U pthread_equal
U pthread_getspecific
U pthread_key_create
U pthread_mutex_destroy
U pthread_mutex_init
U pthread_mutex_lock
U pthread_mutex_unlock
U pthread_once
U pthread_self
U pthread_setspecific
does anyone know how to get php working. Please let me know, thank you
this is my configure line from ports, there is some repetition, but as far
as i can see there is no apparent problem in it.
./configure --with-apxs=/usr/local/sbin/apxs --with-config-file-path=/usr/l
ocal/etc --enable-versioning --with-regex=system
--with-gd --enable-exif --with-cyrus --with-mysql --with-gd=/usr/local --en
able-gd-native-ttf --with-freetype-dir=/usr/local
--with-jpeg-dir=/usr/local --with-png-dir=/usr/local --with-zlib --with-bz2=
/usr --with-crack=/usr/local --with-mcrypt=/usr/lo
cal --with-mhash=/usr/local --with-pdflib=/usr/local --with-zlib-dir=/usr --
with-jpeg-dir=/usr/local --with-png-dir=/usr/local
--with-tiff-dir=/usr/local --with-imap=/usr/local --with-imap-ssl=/usr/loca
l --with-mysql=/usr/local --with-openssl=/usr --wi
th-snmp=/usr/local --enable-ucd-snmp-hack --with-openssl=/usr --with-expat-d
ir=/usr/local --with-xmlrpc --enable-xslt --with-x
slt-sablot=/usr/local --enable-wddx --with-dom=/usr/local --enable-ftp --wit
h-curl=/usr/local --with-gettext=/usr/local --with
-iconv=/usr/local --with-pspell=/usr/local --enable-mbregex --enable-mbstrin
g --enable-bcmath --enable-sockets --enable-trans-
sid --prefix=/usr/local i386-portbld-freebsd4.8
attached mail follows:
You should try to base64_encode the data. There might be a problem with
a character in your hidden tag.
Josh
Mack Paul wrote:
> porque el dato del formulario no completo!!
> why the form data is not complete??!!!
>
> here two files:
> aqui dos archivos:
>
> data00.php
> /**********************************/
> <!doctype html public "-//W3C//DTD HTML 4.0 file://EN>
> <html>
> <head>
> <title>Title here!</title>
> </head>
> <body>
> <form name"form01" action="data01.php" method="POST">
>
> <input type="hidden" name="data"
> value="%3C%3Fphp%0A%2F%2A+%0A+%2A+Protect+against+very+old+versions+of+4.0+%
> 28like+4.0RC1%29+which++%0A+%2A+don%27t+implicitly+create+a+new+stdClass%28%
> 29+when+you+use+a+variable+%0A+%2A+like+a+class.+%0A+%2A%2F+%0Aif+%28%21%24g
> allery%29+%7B+%0A++++++++%24gallery+%3D+new+stdClass%28%29%3B+%0A%7D%0Aif+%2
> 8%21%24gallery-%3Eapp%29+%7B+%0A++++++++%24gallery-%3Eapp+%3D+new+stdClass%2
> 8%29%3B+%0A%7D%0A%0A%2F%2A+Version++%2A%2F%0A%24gallery-%3Eapp-%3Econfig_ver
> sion+%3D+31%3B%0A%0A%2F%2A+Features+%2A%2F%0A%24gallery-%3Eapp-%3Efeature%5B
> %22zip%22%5D+%3D+1%3B%0A%24gallery-%3Eapp-%3Efeature%5B%22rewrite%22%5D+%3D+
> 0%3B+%2F%2F+%28missing+%3Ci%3EGALLERY_REWRITE_OK%3C%2Fi%3E+--+it%27s+optiona
> l%29%0A%24gallery-%3Eapp-%3Efeature%5B%22mirror%22%5D+%3D+0%3B+%2F%2F+%28mis
> sing+%3Ci%3EmirrorSites%3C%2Fi%3E+--+it%27s+optional%29%0A%0A%2F%2A+Constant
> s+%2A%2F%0A%24gallery-%3Eapp-%3EgalleryTitle+%3D+%22Galeria%22%3B%0A%24galle
> ry-%3Eapp-%3EpnmDir+%3D+%22%2Fhome%2Faruni%2Fpaul%2Fpublic_html%2Fmodules%2F
> gallery%2Fnetpbm%22%3B%0A%2F%2F+optional+%3Ci%3EImPath%3C%2Fi%3E+missing%0A%
> 24gallery-%3Eapp-%3Egraphics+%3D+%22NetPBM%22%3B%0A%24gallery-%3Eapp-%3Ehigh
> light_size+%3D+%22200%22%3B%0A%24gallery-%3Eapp-%3Ezipinfo+%3D+%22%2Fusr%2Fb
> in%2Fzipinfo%22%3B%0A%24gallery-%3Eapp-%3Eunzip+%3D+%22%2Fusr%2Fbin%2Funzip%
> 22%3B%0A%2F%2F+optional+%3Ci%3Euse_exif%3C%2Fi%3E+missing%0A%24gallery-%3Eap
> p-%3EmovieThumbnail+%3D+%22%2Fhome%2Faruni%2Fpaul%2Fpublic_html%2Fmodules%2F
> gallery%2Fimages%2Fmovie.thumb.jpg%22%3B%0A%24gallery-%3Eapp-%3EalbumDir+%3D
> +%22%2Fhome%2Faruni%2Fpaul%2Fpublic_html%2Fmodules%2Fgallery%2Falbums%22%3B%
> 0A%24gallery-%3Eapp-%3EtmpDir+%3D+%22%2Ftmp%22%3B%0A%24gallery-%3Eapp-%3Epho
> toAlbumURL+%3D+%22http%3A%2F%2Faruni.uni.edu.pe%2F%7Epaul%2Fmodules%2Fgaller
> y%22%3B%0A%24gallery-%3Eapp-%3EalbumDirURL+%3D+%22http%3A%2F%2Faruni.uni.edu
> .pe%2F%7Epaul%2Fmodules%2Fgallery%2Falbums%22%3B%0A%2F%2F+optional+%3Ci%3Emi
> rrorSites%3C%2Fi%3E+missing%0A%24gallery-%3Eapp-%3EshowAlbumTree+%3D+%22no%2
> 2%3B%0A%24gallery-%3Eapp-%3EcacheExif+%3D+%22no%22%3B%0A%24gallery-%3Eapp-%3
> EjpegImageQuality+%3D+%2295%22%3B%0A%24gallery-%3Eapp-%3EtimeLimit+%3D+%2230
> %22%3B%0A%24gallery-%3Eapp-%3Edebug+%3D+%22no%22%3B%0A%24gallery-%3Eapp-%3Eu
> se_flock+%3D+%22yes%22%3B%0A%24gallery-%3Eapp-%3EexpectedExecStatus+%3D+%220
> %22%3B%0A%24gallery-%3Eapp-%3EsessionVar+%3D+%22gallery_session%22%3B%0A%24g
> allery-%3Eapp-%3EuserDir+%3D+%22%2Fhome%2Faruni%2Fpaul%2Fpublic_html%2Fmodul
> es%2Fgallery%2Falbums%2F.users%22%3B%0A%24gallery-%3Eapp-%3Epnmtojpeg+%3D+%2
> 2ppmtojpeg%22%3B%0A%0A%2F%2A+Defaults+%2A%2F%0A%24gallery-%3Eapp-%3Edefault%
> 5B%22bordercolor%22%5D+%3D+%22black%22%3B%0A%24gallery-%3Eapp-%3Edefault%5B%
> 22border%22%5D+%3D+%221%22%3B%0A%24gallery-%3Eapp-%3Edefault%5B%22font%22%5D
> +%3D+%22arial%22%3B%0A%24gallery-%3Eapp-%3Edefault%5B%22cols%22%5D+%3D+%223%
> 22%3B%0A%24gallery-%3Eapp-%3Edefault%5B%22rows%22%5D+%3D+%223%22%3B%0A%24gal
> lery-%3Eapp-%3Edefault%5B%22thumb_size%22%5D+%3D+%22150%22%3B%0A%24gallery-%
> 3Eapp-%3Edefault%5B%22resize_size%22%5D+%3D+%22640%22%3B%0A%24gallery-%3Eapp
> -%3Edefault%5B%22fit_to_window%22%5D+%3D+%22no%22%3B%0A%24gallery-%3Eapp-%3E
> default%5B%22use_fullOnly%22%5D+%3D+%22no%22%3B%0A%24gallery-%3Eapp-%3Edefau
> lt%5B%22print_photos%22%5D+%3D+%22shutterfly%22%3B%0A%24gallery-%3Eapp-%3Ede
> fault%5B%22returnto%22%5D+%3D+%22yes%22%3B%0A%24gallery-%3Eapp-%3Edefault%5B
> %22showOwners%22%5D+%3D+%22no%22%3B%0A%24gallery-%3Eapp-%3Edefault%5B%22albu
> msPerPage%22%5D+%3D+%225%22%3B%0A%24gallery-%3Eapp-%3Edefault%5B%22showSearc
> hEngine%22%5D+%3D+%22yes%22%3B%0A%24gallery-%3Eapp-%3Edefault%5B%22useOrigin
> alFileNames%22%5D+%3D+%22yes%22%3B%0A%24gallery-%3Eapp-%3Edefault%5B%22displ
> ay_clicks%22%5D+%3D+%22yes%22%3B%0A%24gallery-%3Eapp-%3Edefault%5B%22public_
> comments%22%5D+%3D+%22yes%22%3B%0A%3F%3E%0A">
>
> <input type="submit" value="Enviar">
>
> </form>
>
> </body>
> </html>
> /**********************************/
>
> data01.php
> /**********************************/
> <!doctype html public "-//W3C//DTD HTML 4.0 file://EN>
> <html>
> <head>
> <title>Title here!</title>
> </head>
> <body><?php
> foreach($_POST as $key=>$value){
> echo "nombre: ".$key."--valor: ".$value."<br>";
> }
> ?>
> </body>
> </html>
> /**********************************/
>
> and here the output:
> y aqui el resultado:
> /**********************************/
> nombre: data--valor:
> %3C%3Fphp%0A%2F%2A+%0A+%2A+Protect+against+very+old+versions+of+4.0+%28like+
> 4.0RC1%29+which++%0A+%2A+don%27t+implicitly+create+a+new+stdClass%28%29+when
> +you+use+a+variable+%0A+%2A+like+a+class.+%0A+%2A%2F+%0Aif+%28%21%24gallery%
> 29+%7B+%0A++++++++%24gallery+%3D+new+stdClass%28%29%3B+%0A%7D%0Aif+%28%21%24
> gallery-%3Eapp%29+%7B+%0A++++++++%24gallery-%3Eapp+%3D+new+stdClass%28%29%3B
> +%0A%7D%0A%0A%2F%2A+Version++%2A%2F%0A%24gallery-%3Eapp-%3Econfig_version+%3
> D+31%3B%0A%0A%2F%2A+Features+%2A%2F%0A%24gallery-%3Eapp-%3Efeature%5B%22zip%
> 22%5D+%3D+1%3B%0A%24gallery-%3Eapp-%3Efeature%5B%22rewrite%22%5D+%3D+0%3B+%2
> F%2F+%28missing+%3Ci%3EGALLERY_REWRITE_OK%3C%2Fi%3E+--+it%27s+optional%29%0A
> %24gallery-%3Eapp-%3Efeature%5B%22mirror%22%5D+%3D+0%3B+%2F%2F+%28missing+%3
> Ci%3EmirrorSites%3C%2Fi%3E+--+it%27s+optional%29%0A%0A%2F%2A+Constants+%2A%2
> F%0A%24gallery-%3Eapp-%3EgalleryTitle+%3D+%22Galeria%22%3B%0A%24gallery-%3Ea
> pp-%3EpnmDir+%3D+%22%2Fhome%2Faruni%2Fpaul%2Fpublic_html%2Fmodules%
> /**********************************/
>
> the setting of my server:
> mi servidor:
>
> PHP Version 4.3.2-RC1
>
> System Linux hostname 2.4.18-14 #1 Wed Sep 4 13:35:50 EDT 2002 i686
> Build Date Mar 29 2003 21:37:53
> Configure Command './configure' '--mandir=/usr/share/man'
> '--with-apxs2=/usr/local/httpd/bin/apxs' '--enable-track-vars' '--with-gd'
> '--enable-ftp' '--enable-sysvsem' '--enable-sysvshm' '--enable-sockets'
> '--with-zlib=/usr' '--with-bz2=/usr' '--enable-calendar' '--enable-ftp'
> '--enable-mbstring' '--enable-memory-limit' '--enable-bcmath'
> '--enable-shmop' '--enable-magic-quotes' '--enable-safe-mode'
> '--with-mysql=/usr/local/mysql' '--enable-gd-native-ttf' '--with-xmlrpc'
> '--enable-inline-optimization'
>
> Server API Apache 2.0 Handler
> Virtual Directory Support disabled
> Configuration File (php.ini) Path /usr/local/lib/php.ini
>
> magic_quotes_gpc On On
> magic_quotes_runtime Off Off
> magic_quotes_sybase Off Off
>
> register_argc_argv On On
> register_globals On On
> report_memleaks On On
> safe_mode Off Off
> safe_mode_exec_dir no value no value
> safe_mode_gid Off Off
>
> Apache Version Apache/2.0.44 (Unix) mod_perl/1.99_08 Perl/v5.8.0
> PHP/4.3.2-RC1
>
> core mod_access mod_auth mod_include mod_log_config mod_env mod_setenvif
> prefork http_core mod_mime mod_status mod_negotiation mod_dir mod_userdir
> mod_alias mod_so mod_perl sapi_apache2
>
>
> please, help me, did happen to me when installing the gallery application.
> (http://gallery.sourceforge.net)
> thank all.
>
>
>
>
attached mail follows:
Instead of redirecting, why not just include your form again???
-Shawn
"Shaun" <shaun@mania.plus.com> wrote in message
news:20030427230027.79508.qmail@pb1.pair.com...
> Hi,
>
> I have a page with a form. Upon submission of the form I include a file
and
> if a certain condition is met a redirect the user back to the form with
the
> header(Location: url) function. By doing this do I loose the information
in
> the POST variables sent from the form originally?
>
> Thanks for your help
>
>
attached mail follows:
hi
have a script that deletes some records based on the fact that the current date and goes 14 days back and deletes anything 14 days or older than todays date...
mysql_queryJ("delete from prayer where Posted <curdate()-interval 15 day");
problem i have is it works on windows mysql server but for some reason it wont work on any other one.. any idea how come?
all i get for the query is -1
attached mail follows:
Hi,
I would like to create a forum/message board for my site and would be
grateful if someone could point me in the direction of any tutorials /
resources on this.
Thanks for your time.
attached mail follows:
Look at www.phpBB.com
Thx
--Pushpinder
On Monday, April 28, 2003, at 03:57 PM, Shaun wrote:
> Hi,
>
> I would like to create a forum/message board for my site and would be
> grateful if someone could point me in the direction of any tutorials /
> resources on this.
>
> Thanks for your time.
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
attached mail follows:
Hi,
My advise to you is dont try to reinvent the wheel....
this is an excellient forum software and I use it myself
www.phpBB.com
HTH
Cheers,
-Ryan
----- Original Message -----
From: "Shaun" <shaun@mania.plus.com>
To: <php-general@lists.php.net>
Sent: Monday, April 28, 2003 10:57 PM
Subject: [PHP] Forum
> Hi,
>
> I would like to create a forum/message board for my site and would be
> grateful if someone could point me in the direction of any tutorials /
> resources on this.
>
> Thanks for your time.
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
attached mail follows:
"Shaun" <shaun@mania.plus.com> writes:
> Hi,
Hi ;-)
> I would like to create a forum/message board for my site and would be
> grateful if someone could point me in the direction of any tutorials /
> resources on this.
As already suggested I advise you to use already developped scripts. For
example, you can try phpbb. But it is far from being the only good
message board available in PHP. You can also try Invision Board
(phpBB-like but faster and lighter) or phorum (simpler interface, less
possibilities but really a lot lighter than phpBB).
Good search :-)
--
Pierrick LE GALL | http://www.z0rglub.com
| http://www.phpwebgallery.net
attached mail follows:
Ryan A wrote:
>
> Hi,
> My advise to you is dont try to reinvent the wheel....
Has it ever crossed anyone's mind that we'd only have one kind of
wheel if someone didn't take the time to re-invent the wheel from
time to time? *heheh*
Cheers,
Rob.
> this is an excellient forum software and I use it myself
> www.phpBB.com
>
> HTH
>
> Cheers,
> -Ryan
>
> ----- Original Message -----
> From: "Shaun" <shaun@mania.plus.com>
> To: <php-general@lists.php.net>
> Sent: Monday, April 28, 2003 10:57 PM
> Subject: [PHP] Forum
>
> > Hi,
> >
> > I would like to create a forum/message board for my site and would be
> > grateful if someone could point me in the direction of any tutorials /
> > resources on this.
> >
> > Thanks for your time.
> >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
--
.---------------------------------------------.
| Worlds of Carnage - http://www.wocmud.org |
:---------------------------------------------:
| Come visit a world of myth and legend where |
| fantastical creatures come to life and the |
| stuff of nightmares grasp for your soul. |
`---------------------------------------------'
attached mail follows:
I particularly suggest YaBB SE http://www.yabbse.org (handles my one
site quite well and it gets over a million hits a month) or phpBB.
Jeff
-----Original Message-----
From: Shaun [mailto:shaun@mania.plus.com]
Sent: Monday, April 28, 2003 4:58 PM
To: php-general@lists.php.net
Subject: [PHP] Forum
Hi,
I would like to create a forum/message board for my site and would be
grateful if someone could point me in the direction of any tutorials /
resources on this.
Thanks for your time.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
attached mail follows:
on 29/04/03 8:23 AM, Ryan A (ryan@jumac.com) wrote:
> My advise to you is dont try to reinvent the wheel....
> this is an excellient forum software and I use it myself
> www.phpBB.com
My advise would be that if you have the skills, or want the challenge,
create your own.
- you'll get exactly what you want
- you'll understand the source and inner workings implicitly, and will be
able to easily make changes, re-skin it, etc etc
- it will be easier to integrate the BB members into the rest of your
website/community if YOU create the membership and session code from scratch
- you'll learn more, and will have solved a problem you didn't know how to
solve
- you can choose to exclude features and bloatware that all these major BB
systems have, and get down to the guts of what your users need
By all means install a few of the top ones and see if they meet your needs,
and perhaps even learn a bit about how they work, but I'm glab I built my
own from scratch.
Cheers,
Justin
attached mail follows:
Hi,
I have a need to compile php with zlib, however after the compile
(--with-zlib and the rest of the --with options we use) some sites are
showing blank pages.
Compiling again *without* --with-zlib, everything works just fine.
What can be the problem?
Thanks
attached mail follows:
If your server is windows, you can direct all the mail to 'localhost' (at php.ini) and get a remailer, this should work. Or you can set an SMTP server at the same file.
Read this ftp://ftp.isi.edu/in-notes/rfc822.txt, or ftp://ftp.isi.edu/in-notes/rfc0822.txt if the first don't works.
Greetings.
Mario Soto
mario_s@amigo.net.gt
-.-.-.-
----- Original Message -----
From: "rzm" <rzm@mail.pt>
To: <php-general@lists.php.net>
Sent: Saturday, April 26, 2003 8:41 PM
Subject: [PHP] Help needed using mail function
>
> Hi there.
>
> While trying to send email in apache in windows XP with the PHP's mail()
> function, it returned server error, altough I had changed my php.ini file.
>
>
> The question is: I have no POP3 email address associated to my computer or
> any application to send email ... is any of these needed or can I use
> another email host like hotmail to send emails ?
>
> A quick answer would be really nice ;)
>
>
> Best regards and thank you in advance,
>
> The Portugal's RZM team
>
>
>
> PS: The host I was trying to send mail from is really alive (i made 'telnet
> <host> smtp' to check it out, but the result was the described on the top.
> --
> Adira já ao Net Dialup Light. Acesso profissional gratuito.
> NovisNet, a Internet de quem trabalha. http://www.novisnet.pt
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
attached mail follows:
Try:
------------------------------------------------------------------------
mail("mail@domain.com","new contact by $firstname $lastname" ,$text,
"Mime-Version:1.0\nContent-Type: text/plain;
charset=iso-8859-1\nContent-Transfer-Encoding: 8bit");
------------------------------------------------------------------------
This might not work properly with all the SMTP servers. Some servers don't allow to use the 8-bit extensions for the server. You should try this instead to have a more standarized message:
------------------------------------------------------------------------
$text=imap_8bit($text); //Converts a 8-bit string into a quoted printable string.
mail("mail@domain.com","new contact by $firstname $lastname" ,$text,
"Mime-Version:1.0\nContent-Type: text/plain;
charset=iso-8859-1\nContent-Transfer-Encoding: quoted-printable");
------------------------------------------------------------------------
If none works, change all the '\n' into '\r\n'.
Greetings.
Mario Soto
mario_s@amigo.net.gt
-.-.-.-
----- Original Message -----
From: "websteve" <websteve@web.de>
To: <php-general@lists.php.net>
Sent: Sunday, April 27, 2003 9:26 PM
Subject: [PHP] Mime Problem with mail funtion
Hi!
I have the problem that i have some german letters like 'ä' or 'ü' - i
found the right mime type to convert it to usual text/plain format but
it won't work - what's wrong?
mail("mail@domain.com","new contact by $firstname $lastname" ,$text,
"Mime-Version:1.0\nContent-Type: text/plain;
charset=\"iso-8859-1\nContent-Transfer-Encoding: 8bit\"");
I appreciate your help thank you.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
attached mail follows:
This function exists on the history of this list. You should check it. I haven't tried before, but it should work.
function encodemymail($txt) {
for ($i = 0; $i < strlen($txt); $i++) {
$ent .= "&#" . ord(substr($txt, $i, 1)) . ";";
}
return($ent);
}
echo encodemymail('ä ü ö [ ]');
Read (I'm getting used to send this address): ftp://ftp.isi.edu/in-notes/rfc2045.txt
Read this too: ftp://ftp.isi.edu/in-notes/rfc1345.txt
Mario Soto
mario_s@amigo.net.gt
-.-.-.-
----- Original Message -----
From: "websteve" <websteve@web.de>
To: <php-general@lists.php.net>
Sent: Sunday, April 27, 2003 6:50 PM
Subject: [PHP] Mail () problem with some letters
Hi!
I have a small problem with my forms.
I send it through the mail function
$text = $firstname." ".$lastname." ."Firstname ".$firstname."\nLastname:
".$lastname."\...... and so on;
mail("mail@mailadress.com","Contactform by $firstname $lastname",$text);
When the user has sent the form everything works well and I receive all
my informations.
But only letters like 'ö' or 'ü' or 'ä' and some more were not
displayed correctly.
Ie. Instead of 'ö' my mailprogram shows me ö
What do I have to do to send the form correctly.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
attached mail follows:
This is the second release candidate of the upcoming
maintenance release of PHP 4.3.2.
Please download and test it as much as possible on real-life
applications to uncover any remaining issues.
Sources:
http://www.php.net/~jani/RC/php-4.3.2RC2.tar.bz2
http://www.php.net/~jani/RC/php-4.3.2RC2.tar.gz
Windows binaries:
http://www.php.net/~jani/RC/php-4.3.2RC2-Win32.zip
md5sums:
1334a079197914ca553cd922a2c736fe php-4.3.2RC2.tar.bz2
ee851640d3ed4c8df3c3ef74dd0bd27e php-4.3.2RC2.tar.gz
673a2290366d93bf495ba9818110a7f0 php-4.3.2RC2-Win32.zip
List of additions/changes/fixes can be found here:
http://cvs.php.net/diff.php/php4/NEWS?r1=1.1247.2.35.4.1&r2=1.1247.2.181&tr2=1.1403&ty=h
attached mail follows:
On 28 Apr 2003 at 7:52, Prince wrote:
>
>
> ----- Original Message -----
> From: "David Robley" <robleyd@ozemail.com.au>
> To: <php-general@lists.php.net>
> Sent: Monday, April 28, 2003 7:25 AM
> Subject: [PHP] Re: script problems
>
>
> > In article <000901c30d75$04332020$2404a40c@andy>, friendly@kaltelnet.net
> > says...
> > > hi i have tis web page:
> > > <html>
> > > <head>
> > > <title>test web page</title>
> > > </head>
> > >
> > > <body>
> > > <form name="form1" action="index2.php" method="post">
> > >
> > > <input type="text" name="element1"><br>
> > > <input type="checkbox" name="checkbox" value="checkbox1" checked>
> > > <input type="submit"> </form> </body> </html>
> > >
> > > now the script index2.php??
> > >
> > > <?echo?>document.form1.element1.value<?;?>
> > > ....
> > > //all through the elements on the form...
> > >
> > >
> > > and my out put is:
> > > error on line 1 of index2.php?
> > > unknown or undefined object: document.form1.element1 is not defined
> > >
> > >
> > > im sort of lost now
> > >
> > > trying to use javascript with php
> >
> > Interesting syntax you have there :-) Input types are available under
> > PHP as a variable of the same name as the "name" assigned in the INPUT
> > tag - if you are using later versions of PHP with register_globals off
> > you will need to access them as $_POST{"name"} when using the post
> > method.
> >
> > If you want to access those values via javascript, you'll need to
> > include the correct javascript in your receiving script.
>
> the question is how to get the right values from php over to js script
>
> ??
Please keep you responses to the list - you are likely to get better
information than just asking one person.
Unless I misunderstand what you really want, I think you want to get the
values from the previous html page, not from PHP? This becomes a
javascript problem pure and simple. As I said, you need the correct
javascript in the receiving script; you can of course create the js
either as pure 'js in html' (outside php tags) or within php tags by
echoing the appropriate javascript.
--
David Robley
Quod subigo farinam
"I need an injection," Tom pleaded in vain.
attached mail follows:
php4.3.1 / ldap 2.0.25
...
$user["cn"] = "Sara Galitó";
...
I am trying to add that entry into my ldap db but the cn contain special char
which made ldap_add complaint loudly with:
ldap_add(): Add: Invalid syntax in /home/httpd/htdocs/s.php on line 47
please advise.
__________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.
http://search.yahoo.com
attached mail follows:
Ok I am begging now. Could someone please help show me
how to have a script display the site at
"http://www.wiu.edu/stu" when the script is called
(not a re-direct, but an inclusion of some kind).
everything is all messed up since they changed the
version of PHP on my server. include() won't work for
that particular site anymore. (fopen url is on)
thank you so much
__________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.
http://search.yahoo.com
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]