|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
From: php-general-digest-help
lists.php.netDate: Sun Aug 05 2001 - 01:03:29 CDT
php-general Digest 5 Aug 2001 06:03:29 -0000 Issue 797
Topics (messages 61249 through 61307):
Re: file downloads
61249 by: Rasmus Lerdorf
61253 by: Data Driven Design
61255 by: I_UNION
Converting HTTP_POST_VARS to HTTP_SESSION_VARS !
61250 by: Peter Dowie
61263 by: Yasuo Ohgaki
when i start apache have some problem
61251 by: Spear
61252 by: Rasmus Lerdorf
61254 by: Spear
61256 by: Spear
Matching Question
61257 by: Jeff Oien
61267 by: Mark Maggelet
61271 by: Jeff Oien
61292 by: hassan el forkani
file download fixed
61258 by: Data Driven Design
Cookies and servers problems
61259 by: Inércia Sensorial
61276 by: Richard Baskett
Re: most recent 5 rows
61260 by: John Monfort
making php problem
61261 by: Spear
61262 by: Spear
Re: Postgresql + Sessions + Large objects.
61264 by: Yasuo Ohgaki
61275 by: speedboy
Re: Q: Hiding Folder Directories from public while still...
61265 by: Marcus James Christian
61268 by: Jack Dempsey
Re: shtml or php ??
61266 by: Yasuo Ohgaki
Potential bug?
61269 by: Anthony Lieuallen
61272 by: Corin Rathbone
61278 by: Patrik Wallstrom
Update a SESSION_VAR on form submit
61270 by: Peter Dowie
chmod
61273 by: Manu Verhaegen
61274 by: Daniel Rezny
PHP + GD 2.0.1
61277 by: speedboy
61279 by: Rasmus Lerdorf
61284 by: speedboy
61285 by: Rasmus Lerdorf
61287 by: speedboy
61288 by: Rasmus Lerdorf
61289 by: speedboy
61290 by: Rasmus Lerdorf
Is there a setInterval function in PHP?
61280 by: Zlutarch G.
61281 by: Rasmus Lerdorf
php_gd.dll for windows, please help me....
61282 by: Marius Pertravèius
LE INTERESARA
61283 by: cursos
Call to undefined function: imap_open()
61286 by: Damiano Ferrari
Compiling PHP + GD 2.0.1 Documentation
61291 by: speedboy
newest PHP compile won't see pg_connect()
61293 by: Dan Troxell
61294 by: speedboy
md5 on different platform
61295 by: pierre-yves
61296 by: Rasmus Lerdorf
61297 by: Joe Conway
61299 by: pierre-yves
61303 by: Joe Conway
Free PHP/MySQL Web Hosting ?
61298 by: Arcadius A.
61300 by: Marius Pertravèius
Link request.
61301 by: Rajesh V. Tavakari
web hosting
61302 by: Damiano Ferrari
Re: php-4.0.6 on RH-7.1
61304 by: hunter
cvs make error: php_output.h
61305 by: Caffeinate The World
Re: include_once vs require_once
61306 by: Andrew Sterling Hanenkamp
Does PHP scripts always finish, or are they halted if the web page loading is halted?
61307 by: LDiablo
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:
> I made the changes you suggested and it's still a no go. I'm sure of the
> query because
>
> print "<img src=\"$path\">";
>
> Will display the image I'm trying to download.
How does that make the SQL query valid? You didn't implement the
mysql_query() error checking I suggested. That's likely what is causing
you problems.
-Rasmus
attached mail follows:
I usually put or die(mysql_error()) and make it work before I put in the
,
that's been done already. This will display the image
$result =
mysql_query($query);
$row = mysql_fetch_row($result);
$path = $row[0];
print "<img src=\"$path\">";
What I want is to display a 'save as' box to download the image whose file
path is stored in the variable $path. Am I doing something wrong in the
header section? The print statement would be commented out if I used this.
$file_path = basename($path);
header("Content-Type: application/download\n");
header("Content-Disposition: attachment; filename=$file_name");
header("Content-Transfer-Encoding: binary");
readfile($path);
Data Driven Design
1506 Tuscaloosa Ave
Holly Hill, Florida 32117
http://www.datadrivendesign.com
Phone: (386) 226-8979
Websites That WORK For You
----- Original Message -----
From: "Rasmus Lerdorf" <rasmus
php.net>
To: "Data Driven Design" <jeff
datadrivendesign.com>
Cc: <php-general
lists.php.net>
Sent: Saturday, August 04, 2001 1:01 PM
Subject: Re: [PHP] file downloads
> > I made the changes you suggested and it's still a no go. I'm sure of the
> > query because
> >
> > print "<img src=\"$path\">";
> >
> > Will display the image I'm trying to download.
>
> How does that make the SQL query valid? You didn't implement the
> mysql_query() error checking I suggested. That's likely what is causing
> you problems.
>
> -Rasmus
>
>
attached mail follows:
Hi
I'm very news in php
Anyone knows how can i submit sample HTML form by php and write into
database ???
I have anly one registration form username, password, First name last_name,
and phone
I need only small samples and all will be ok ..
thanks in advance
=========================================
----- Original Message -----
From: "Data Driven Design" <jeff
datadrivendesign.com>
To: "Rasmus Lerdorf" <rasmus
php.net>
Cc: <php-general
lists.php.net>
Sent: Saturday, August 04, 2001 10:27 PM
Subject: Re: [PHP] file downloads
> I usually put or die(mysql_error()) and make it work before I put in the
,
> that's been done already. This will display the image
>
> $result =
mysql_query($query);
> $row = mysql_fetch_row($result);
> $path = $row[0];
> print "<img src=\"$path\">";
>
> What I want is to display a 'save as' box to download the image whose file
> path is stored in the variable $path. Am I doing something wrong in the
> header section? The print statement would be commented out if I used this.
>
> $file_path = basename($path);
> header("Content-Type: application/download\n");
> header("Content-Disposition: attachment; filename=$file_name");
> header("Content-Transfer-Encoding: binary");
> readfile($path);
>
> Data Driven Design
> 1506 Tuscaloosa Ave
> Holly Hill, Florida 32117
>
> http://www.datadrivendesign.com
> Phone: (386) 226-8979
>
> Websites That WORK For You
> ----- Original Message -----
> From: "Rasmus Lerdorf" <rasmus
php.net>
> To: "Data Driven Design" <jeff
datadrivendesign.com>
> Cc: <php-general
lists.php.net>
> Sent: Saturday, August 04, 2001 1:01 PM
> Subject: Re: [PHP] file downloads
>
>
> > > I made the changes you suggested and it's still a no go. I'm sure of
the
> > > query because
> > >
> > > print "<img src=\"$path\">";
> > >
> > > Will display the image I'm trying to download.
> >
> > How does that make the SQL query valid? You didn't implement the
> > mysql_query() error checking I suggested. That's likely what is causing
> > you problems.
> >
> > -Rasmus
> >
> >
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> For additional commands, e-mail: php-general-help
lists.php.net
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
_________________________________________________________
Do You Yahoo!?
Get your free
yahoo.com address at http://mail.yahoo.com
attached mail follows:
Hi,
I'm using sessions and everytime my script is called, I want to add all
elements of $HTTP_POST_VARS to my $HTTP_SESSION_VARS
so that I can access them throughout the session.
I cant seem to get this working. This is what I have:
session_start();
while ( list($name,$value) = each($HTTP_POST_VARS)) {
if (is_array($value)) {
for($x=0;$x<count($value);$x++) {
session_register('$name');
$$name = $value[$x];
}
} else {
session_register('$name');
$$name = $value;
}
}
Can anyone help me on this ?
Also what is register_globals ?? Should I have this on or off ?
Thanks
Pete
attached mail follows:
"Peter Dowie" <pete
smackedout.com> wrote in message
news:001201c11d08$1b3fe280$021ea8c0
petexp...
> Hi,
>
> I'm using sessions and everytime my script is called, I want to add
all
> elements of $HTTP_POST_VARS to my $HTTP_SESSION_VARS
> so that I can access them throughout the session.
> I cant seem to get this working. This is what I have:
>
Why you don't use HTTP_SESSION_VARS???
You don't need to use ression_register/unregister() with
$HTTP_SESSION_VARS.
Do
foreach($HTTP_POST_VARS as $k => $v) {
$HTTP_SESSIN_VARS[$k] = $v;
}
OR
$HTTP_SESSION_VARS = array_merge($HTTP_SESSION_VARS, $HTTP_POST_VARS);
Important: This kind of code is VERY dangarous unless you check all
$HTTP_POST_VARS and you are sure safe to do that.
>
> Also what is register_globals ?? Should I have this on or off ?
off. unless you must use app assumes its on, and cannot fix it.
Much easier to write secure code with register_globals=off. (And a
little bit faster)
Regards
-- Yasuo Ohgaki
attached mail follows:
Syntax error on line 205 of /etc/httpd/conf/httpd.conf: Cannot load /var/www/libexec/libphp4.so into server: undefined symbol: gss_mech krb5 /var/www/bin/apachectl start: httpd could not be started any one can help?
attached mail follows:
> Syntax error on line 205 of /etc/httpd/conf/httpd.conf: > Cannot load /var/www/libexec/libphp4.so into server: undefined symbol: > gss_mech > krb5 > /var/www/bin/apachectl start: httpd could not be started > any one can help?
Add --with-kerberos to your PHP configure line
-Rasmus
attached mail follows:
the same problem occur
"Rasmus Lerdorf" <rasmus
php.net> ¼¶¼g©ó¶l¥ó
news:Pine.LNX.4.33.0108041013280.23875-100000
rasmus.php.net...
> > Syntax error on line 205 of /etc/httpd/conf/httpd.conf:
> > Cannot load /var/www/libexec/libphp4.so into server: undefined symbol:
> > gss_mech
> > krb5
> > /var/www/bin/apachectl start: httpd could not be started
> > any one can help?
>
> Add --with-kerberos to your PHP configure line
>
> -Rasmus
>
attached mail follows:
oh is other problem
Cannot load /var/www/libexec/libphp4.so into server: undefined symbol:
SSL_CTX_
et_tmp_rsa_callback
"Spear" <aa
aa.com> ¼¶¼g©ó¶l¥ó
news:20010804172841.8083.qmail
pb1.pair.com...
> the same problem occur
> "Rasmus Lerdorf" <rasmus
php.net> ¼¶¼g©ó¶l¥ó
> news:Pine.LNX.4.33.0108041013280.23875-100000
rasmus.php.net...
> > > Syntax error on line 205 of /etc/httpd/conf/httpd.conf:
> > > Cannot load /var/www/libexec/libphp4.so into server: undefined symbol:
> > > gss_mech
> > > krb5
> > > /var/www/bin/apachectl start: httpd could not be started
> > > any one can help?
> >
> > Add --with-kerberos to your PHP configure line
> >
> > -Rasmus
> >
>
>
attached mail follows:
After a sign up page I want to check if someone is already entered into a database. The First Name, Last Name and Address all have to match exactly in order for it to be considered a duplicate. However this isn't doing what I want. I get the Error produced if the Address matches but the name doesn't. Not sure what I'm doing wrong. Thanks. Jeff Oien
while ($row = mysql_fetch_array($result)) { $First_Name = $row['First_Name']; $Last_Name = $row['Last_Name']; $Address = $row['Address']; if (($M_First_Name || $F_First_Name == $First_Name) && ($M_Last_Name || $F_Last_Name == $Last_Name) && ($Address1 == $Address)) { echo " <html><head><title>Error</title> </head> <body bgcolor=\"#FFFFFF\" text=\"#000000\" link=\"#0000ff\" vlink=\"#660099\"> <h3>Error</h3> etc...
attached mail follows:
On Sat, 4 Aug 2001 12:40:42 -0500, Jeff Oien (jeff
webdesigns1.com)
wrote:
>After a sign up page I want to check if someone is already entered
>into a database. The First Name, Last Name and Address all have
>to match exactly in order for it to be considered a duplicate.
>However
>this isn't doing what I want. I get the Error produced if the
>Address matches
>but the name doesn't. Not sure what I'm doing wrong. Thanks.
>Jeff Oien
you're going about this the wrong way. try it like this:
$result=mysql_query("select * from table where first='$first' and last='$last' and address='$address'");
if(mysql_num_rows($result)){ // error code }
you want to keep the result sets that mysql gives back as small as possible because they take up tons of resources.
>while ($row = mysql_fetch_array($result)) {
> $First_Name = $row['First_Name'];
> $Last_Name = $row['Last_Name'];
> $Address = $row['Address'];
>
> if (($M_First_Name || $F_First_Name == $First_Name) &&
> ($M_Last_Name || $F_Last_Name == $Last_Name)
> && ($Address1 == $Address)) {
> echo "
> <html><head><title>Error</title> </head>
> <body bgcolor=\"#FFFFFF\" text=\"#000000\" link=\"#0000ff\"
>vlink=\"#660099\">
> <h3>Error</h3>
>etc...
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
>For additional commands, e-mail: php-general-help
lists.php.net
>To contact the list administrators, e-mail: php-list-
>admin
lists.php.net
attached mail follows:
Thank you. That worked and I'm sure will have made it work a lot faster later on when there is a lot of data in the database. Jeff Oien
> On Sat, 4 Aug 2001 12:40:42 -0500, Jeff Oien (jeff
webdesigns1.com)
> wrote:
> >After a sign up page I want to check if someone is already entered
> >into a database. The First Name, Last Name and Address all have
> >to match exactly in order for it to be considered a duplicate.
> >However
> >this isn't doing what I want. I get the Error produced if the
> >Address matches
> >but the name doesn't. Not sure what I'm doing wrong. Thanks.
> >Jeff Oien
>
> you're going about this the wrong way.
> try it like this:
>
> $result=mysql_query("select * from table where first='$first' and
> last='$last' and address='$address'");
>
> if(mysql_num_rows($result)){
> // error code
> }
>
> you want to keep the result sets that mysql gives back as small as
> possible because they take up tons of resources.
>
> >while ($row = mysql_fetch_array($result)) {
> > $First_Name = $row['First_Name'];
> > $Last_Name = $row['Last_Name'];
> > $Address = $row['Address'];
> >
> > if (($M_First_Name || $F_First_Name == $First_Name) &&
> > ($M_Last_Name || $F_Last_Name == $Last_Name)
> > && ($Address1 == $Address)) {
> > echo "
> > <html><head><title>Error</title> </head>
> > <body bgcolor=\"#FFFFFF\" text=\"#000000\" link=\"#0000ff\"
> >vlink=\"#660099\">
> > <h3>Error</h3>
> >etc...
> >
> >--
> >PHP General Mailing List (http://www.php.net/)
> >To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> >For additional commands, e-mail: php-general-help
lists.php.net
> >To contact the list administrators, e-mail: php-list-
> >admin
lists.php.net
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> For additional commands, e-mail: php-general-help
lists.php.net
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
>
attached mail follows:
ok, if i understand you correctly, you're taking data from a form and want to check that it is not already in the database, right? then why don't you include the submitted vars in the query like this:
$sql = "SELECT First_Name, Last_Name, Address FROM $table_name
WHERE (Family_Position = 'H' or Family_Position = 'S') and "first_name =
'$form_First_Name' and last_name='$form_last_name' and
address='$form_address'";
$result =
mysql_query($sql,$connection) or die(" Couldn't execute query.");
$number_of_matches = mysql_num_rows($result);
if ($number_of_matches > 0)
{print "bla bla";
else{
//submitted info is ok and can be inserted ....
}
please correct me if i missunderstood your question
regards
At 21:52 04/08/01, you wrote:
>Here is the query part:
>
>$sql = "SELECT First_Name, Last_Name, Address FROM $table_name
>WHERE Family_Position = 'H' or Family_Position = 'S'";
>//$result =
mysql_query($sql,$connection) or die(" Couldn't execute query.");
>if(! $result = mysql_query($sql,$connection)) {
> print("ERROR ".mysql_errno().":
> ".mysql_error()."<br>\n$sql<br>\n");
> }
>
> >
> > whta does your query look like?
> >
> > At 19:40 04/08/01, you wrote:
> > >After a sign up page I want to check if someone is already entered
> > >into a database. The First Name, Last Name and Address all have
> > >to match exactly in order for it to be considered a duplicate. However
> > >this isn't doing what I want. I get the Error produced if the Address
> matches
> > >but the name doesn't. Not sure what I'm doing wrong. Thanks.
> > >Jeff Oien
> > >
> > >while ($row = mysql_fetch_array($result)) {
> > > $First_Name = $row['First_Name'];
> > > $Last_Name = $row['Last_Name'];
> > > $Address = $row['Address'];
> > >
> > > if (($M_First_Name || $F_First_Name == $First_Name) &&
> > > ($M_Last_Name || $F_Last_Name == $Last_Name)
> > > && ($Address1 == $Address)) {
> > > echo "
> > > <html><head><title>Error</title> </head>
> > > <body bgcolor=\"#FFFFFF\" text=\"#000000\" link=\"#0000ff\"
> > > vlink=\"#660099\">
> > > <h3>Error</h3>
> > >etc...
> > >
> > >--
> > >PHP General Mailing List (http://www.php.net/)
> > >To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> > >For additional commands, e-mail: php-general-help
lists.php.net
> > >To contact the list administrators, e-mail: php-list-admin
lists.php.net
> >
> >
attached mail follows:
Rasmus thatnks for your help, this code works.
<?php mysql_connect("localhost","user","pass"); mysql_select_db("db"); $query = "SELECT file_path from photos where photos_id=$photos_id"; $result = mysql_query($query) or die(mysql_error()); $row = mysql_fetch_row($result); $path = $row[0]; $file_name = basename($path); header("Content-type: application/octet-stream"); header("Content-Disposition: attachment; filename=\"$file_name\""); header("Content-Transfer-Encoding: binary"); readfile($path); ?>
Data Driven Design 1506 Tuscaloosa Ave Holly Hil, FL 32117
http://www.datadrivendesign.com http://www.rossidesigns.net
attached mail follows:
Hi All,
I used to run a customized version of Php-Nuke (www.phpnuke.org) on a server that had PHP 4.05, Linux and Apache. Used to run fine.
Now I am trying to run the same, just downloaded and uploaded to the new server, but it is a Windows, IIS, with PHP 4.0.3pl1. The phpinfo(); of the new server can be seen here:
http://www.arubaito.com.br/info.php
Okay, now with the problem. I customized Nuke to allow users to be attached to 'companies', and the articles be displayed only for certain companies. So, only an user from a specific company can have access to the article.
But now, it is not working. The sql query is feed by a "WHERE company='$user_company'" part, where the $user_company comes from another sql query, based on the login name from a cookie.
If I change $user_company to 1, it grabs the articles.
So, the problem is with the cookies. The new server is not sending it right. I tested on 2 or 3 machines, all with different Operating Systems and browsers (win98, win2k, IE, Netscape, Opera).
Anyone have an idea if the new server I am on and its configuration has some kind of trouble to manage cookies properly?
Thanks in advance,
Julio Nobrega.
attached mail follows:
I couldnt get php's cookies working at all, so finally I decided to send a header cookies which worked perfectly. So try this:
header("Set-Cookie: Login[Email]=$Email; path=/; expires=$oneYear");
I made a function for $oneYear, but you can replace it with whatever date you would like :)
I hope this answers your question.
Rick
> Hi All,
>
> I used to run a customized version of Php-Nuke (www.phpnuke.org) on a
> server that had PHP 4.05, Linux and Apache. Used to run fine.
>
> Now I am trying to run the same, just downloaded and uploaded to the new
> server, but it is a Windows, IIS, with PHP 4.0.3pl1. The phpinfo(); of the
> new server can be seen here:
>
> http://www.arubaito.com.br/info.php
>
> Okay, now with the problem. I customized Nuke to allow users to be
> attached to 'companies', and the articles be displayed only for certain
> companies. So, only an user from a specific company can have access to the
> article.
>
> But now, it is not working. The sql query is feed by a "WHERE
> company='$user_company'" part, where the $user_company comes from another
> sql query, based on the login name from a cookie.
>
> If I change $user_company to 1, it grabs the articles.
>
> So, the problem is with the cookies. The new server is not sending it
> right. I tested on 2 or 3 machines, all with different Operating Systems and
> browsers (win98, win2k, IE, Netscape, Opera).
>
> Anyone have an idea if the new server I am on and its configuration has
> some kind of trouble to manage cookies properly?
>
> Thanks in advance,
>
> Julio Nobrega.
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> For additional commands, e-mail: php-general-help
lists.php.net
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
>
attached mail follows:
Or, you could do two steps
1) retrieve the last inserted ID, with mysql_last_inserted_ID (or something like that).
2) then, all records with id(s) greater then the_last_id_number minus five.
something like
$most_recent = select mysql_last_id();
select * from TABLE where id > '$most_recent - 5';
...or something to that effect. There's probably a more efficient way to do it, but this guarantees the most recent five.
__________John Monfort_________________ _+-----------------------------------+_ P E P I E D E S I G N S www.pepiedesigns.com "The world is waiting, are you ready?" -+___________________________________+-
On Sat, 4 Aug 2001, Jeff Lewis wrote:
> It will give you the 5 HIGHEST values in your auto incremented field. If it
> was returneding the first 5, or the wrong 5, repace the DESC with ASC.
>
> Jeff
>
> > -----Original Message-----
> > From: Justin French [mailto:justin
indent.com.au]
> > Sent: Saturday, August 04, 2001 6:09 AM
> > To: jeff
hyrum.net
> > Cc: php
> > Subject: Re: [PHP] most recent 5 rows
> >
> >
> > Jeff Lewis wrote:
> >
> > > Try this SQL Justin:
> > >
> > > $sql = "SELECT * FROM news DESC LIMIT 5";
> >
> >
> > Hrm,
> >
> > Won't that retrieve the FIRST 5 rows, not the LAST 5?
> >
> >
> > Justin French
> >
> >
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> For additional commands, e-mail: php-general-help
lists.php.net
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
>
attached mail follows:
In file included from libmysql.c:10: global.h:240: warning: redefinition of `uint' /usr/include/sys/types.h:146: warning: `uint' previously declared here global.h:241: warning: redefinition of `ushort' /usr/include/sys/types.h:145: warning: `ushort' previously declared here In file included from libmysql.c:13: m_string.h:180: parse error before `__extension__' m_string.h:180: parse error before `&&' make[4]: *** [libmysql.lo] Error 1 make[4]: Leaving directory `/usr/local/php-4.0.6/ext/mysql/libmysql' make[3]: *** [install-recursive] Error 1 make[3]: Leaving directory `/usr/local/php-4.0.6/ext/mysql/libmysql' make[2]: *** [install-recursive] Error 1 make[2]: Leaving directory `/usr/local/php-4.0.6/ext/mysql' make[1]: *** [install-recursive] Error 1 make[1]: Leaving directory `/usr/local/php-4.0.6/ext'. anyone can help?
attached mail follows:
this is the main probelm mysql_version.h:15:41: warning: "MYSQL_UNIX_ADDR" redefined
"Spear" <aa
aa.com> ¼¶¼g©ó¶l¥ó
news:20010804185550.48950.qmail
pb1.pair.com...
> In file included from libmysql.c:10:
> global.h:240: warning: redefinition of `uint'
> /usr/include/sys/types.h:146: warning: `uint' previously declared here
> global.h:241: warning: redefinition of `ushort'
> /usr/include/sys/types.h:145: warning: `ushort' previously declared here
> In file included from libmysql.c:13:
> m_string.h:180: parse error before `__extension__'
> m_string.h:180: parse error before `&&'
> make[4]: *** [libmysql.lo] Error 1
> make[4]: Leaving directory `/usr/local/php-4.0.6/ext/mysql/libmysql'
> make[3]: *** [install-recursive] Error 1
> make[3]: Leaving directory `/usr/local/php-4.0.6/ext/mysql/libmysql'
> make[2]: *** [install-recursive] Error 1
> make[2]: Leaving directory `/usr/local/php-4.0.6/ext/mysql'
> make[1]: *** [install-recursive] Error 1
> make[1]: Leaving directory `/usr/local/php-4.0.6/ext'.
> anyone can help?
>
>
attached mail follows:
Do you have session db and your data db on the same db?
If you do, most likely, transaction is started in session open handler. You cannot nest transaction and lo_read/open etc fails.
If you have situation like this, create dedicated database for session db.
Regards,
-- Yasuo Ohgaki"Speedboy" <speedboy
nomicrosoft.org> wrote in message news:Pine.LNX.4.21.0108042153020.3263-100000
b.evark.com... > I am having trouble with the following function working _with_ > sessions. If I turn off my session checking function it enables you to > download the file flawlessly, if sessions are turned on then Internet > Explorer displays an error: > > Internet Explorer cannot download ...URL > > Internet Explorer was not able to open this Internet site. The requested > site is either unavailable or cannot be found. Please try again later. > > Is there a way I can download large objects from postgresql _with_ > sessions? Thankyou. > > function retrieve_file($id) { > global $dbconn1; > > $result1 = pg_exec ($dbconn1, "select data, file_name from files where > id='$id';"); > $image_oid = pg_result($result1 ,0, 'data'); > $file_name = pg_result($result1 ,0, 'file_name'); > > header ("Content-disposition: filename=\"$file_name\""); > header("Content-type: application/download"); > > pg_exec ($dbconn1, "begin transaction;"); > $image_handle = pg_loopen ($dbconn1, $image_oid, 'r'); > > pg_loreadall ($image_handle); pg_loclose ($image_handle); > pg_exec ($dbconn1, "commit transaction;"); } > } >
attached mail follows:
> Do you have session db and your data db on the same db?
No, the sessions are php sessions with data stored in flat files.
attached mail follows:
Hmm so lets say in my "images" folder for the site if I just put an index somewhere in there it prevents access?
Man that would be so cool. I really don't need some big security thing happening with .htaccess etc, that would be way overkill
thanks, Marcus
Jon Yaggie wrote:
> i dont know if this is elagant but ti works. but a fake index.htmlin your
> directory for browsers to default to. . ..
>
> ----- Original Message -----
> From: "Marcus James Christian" <marcus
mjchristianunlimited.com>
> To: <php-general
lists.php.net>
> Sent: Friday, August 03, 2001 12:30 AM
> Subject: [PHP] Q: Hiding Folder Directories from public while still...
>
> > Hello,
> >
> > How does one do the trick of hiding a folder's directory listing from a
> > public browser?
> >
> > i.e. Lets say the full address is www.mysite.com/php/magicphppage.php
> >
> > Well I still need some other files to read and write to
> > magicphppage.php I don't want the public to be able to simply type
> > www.mysite.com/php/ and have all of my php files show up on a funky
> > "virtual directory".
> >
> > Thanks,
> > Marcus
> >
> > --
> > Marcus James Christian - UNLIMITED -
> > Multimedia Internet Design
> > http://mjchristianunlimited.com
> >
> > Proudly presents the music of CHROMATICUS
> > at http://chromaticus.com
> > and http://artists.mp3s.com/artists/275/chromaticus.html
> >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> > For additional commands, e-mail: php-general-help
lists.php.net
> > To contact the list administrators, e-mail: php-list-admin
lists.php.net
-- Marcus James Christian -- UNLIMITED Multimedia Internet Design http://mjchristianunlimited.com
attached mail follows:
Actually it wouldn't be overkill or big...its really a small quick file to setup...if you just put the index file in there, someone won't be able to get a directory listing, but they'll still have access to your files...if you put the htaccess file in there, they're secure...
jack
-----Original Message-----
From: Marcus James Christian [mailto:marcus
mjchristianunlimited.com]
Sent: Saturday, August 04, 2001 4:05 PM
To: php-general
lists.php.net
Subject: Re: [PHP] Q: Hiding Folder Directories from public while
still...
Hmm so lets say in my "images" folder for the site if I just put an index somewhere in there it prevents access?
Man that would be so cool. I really don't need some big security thing happening with .htaccess etc, that would be way overkill
thanks, Marcus
Jon Yaggie wrote:
> i dont know if this is elagant but ti works. but a fake index.htmlin
your
> directory for browsers to default to. . ..
>
> ----- Original Message -----
> From: "Marcus James Christian" <marcus
mjchristianunlimited.com>
> To: <php-general
lists.php.net>
> Sent: Friday, August 03, 2001 12:30 AM
> Subject: [PHP] Q: Hiding Folder Directories from public while still...
>
> > Hello,
> >
> > How does one do the trick of hiding a folder's directory listing
from a
> > public browser?
> >
> > i.e. Lets say the full address is
www.mysite.com/php/magicphppage.php
> >
> > Well I still need some other files to read and write to
> > magicphppage.php I don't want the public to be able to simply type
> > www.mysite.com/php/ and have all of my php files show up on a
funky
> > "virtual directory".
> >
> > Thanks,
> > Marcus
> >
> > --
> > Marcus James Christian - UNLIMITED -
> > Multimedia Internet Design
> > http://mjchristianunlimited.com
> >
> > Proudly presents the music of CHROMATICUS
> > at http://chromaticus.com
> > and http://artists.mp3s.com/artists/275/chromaticus.html
> >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> > For additional commands, e-mail: php-general-help
lists.php.net
> > To contact the list administrators, e-mail:
php-list-admin
lists.php.net
-- Marcus James Christian -- UNLIMITED Multimedia Internet Design http://mjchristianunlimited.com-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net For additional commands, e-mail: php-general-help
lists.php.net To contact the list administrators, e-mail: php-list-admin
lists.php.net
attached mail follows:
"Dave.O" <Dave.O
tinyonline.co.uk> wrote in message
news:000401c11ce9$c1ebd360$c0147ad5
tinypc...
> This brings me back to an original problem I had before, I do have
the
> instruction in my conf file to load php as a module but I get the
following
> error:-
>
> [warn] loaded DSO c:/usr/php/sapi/php4apache.dll uses plain apache
1.3 api,
> this module might crash under EAPI! (please recompile it
with -DEAPI)
>
> I have downloaded this binary from php.net I have tried 4.0.5 and
4.0.6 and
> I get this error on both.
>
> Any suggestions
This warning say, your apache is compiled with mod_ssl and uses EAPI, but your php does not compiled with EAPI.
So it can crush. I guess you need build windows binary by yourself. (If you cannot find binary compiled with -DEAPI)
-- Yasuo Ohgaki
attached mail follows:
I've just discovered a weird quirk in PHP. I'd first like to check if it is a known bug/weird feature/something else already known. I've not yet tested it much, except I see it doesn't happen on every script, but either of the two results are quite strange to me.
Suituation: file myscript.php exists, directory myscript/ does not. If I browse to http://myhost/myscript.php all is well. But http://myhost/myscript/ does return something, where I expect a '404 not found'. Sometimes it just returns myscript.php. BUT sometimes it returns the PHP source (minus PHP comments). Aslo, http://myhost/myscript/anything/anything/bla.bla.bla returns the same.
I was running PHP 4.0.4pl1 on RedHat Linux 6.2, kernel 2.4.6. I upgraded to PHP 4.0.6 and still see this behavior.
P.S. For the curious I discovered this because a personal site I have uses directory/admin.php for site admin, while another site I am developing at work uses directory/admin/ and I typed the wrong one at home :)
attached mail follows:
I have the same problem running Win98, Apache 1.3.17 and PHP 4.0.6 as an Apache Module. It doesn't return the source, but it's strange...
-----Original Message-----
From: Anthony Lieuallen [mailto:arantius
yahoo.com]
Sent: 22 July 2001 16:30
To: php-general
lists.php.net
Subject: [PHP] Potential bug?
I've just discovered a weird quirk in PHP. I'd first like to check if it is a known bug/weird feature/something else already known. I've not yet tested it much, except I see it doesn't happen on every script, but either of the two results are quite strange to me.
Suituation: file myscript.php exists, directory myscript/ does not. If I browse to http://myhost/myscript.php all is well. But http://myhost/myscript/ does return something, where I expect a '404 not found'. Sometimes it just returns myscript.php. BUT sometimes it returns the PHP source (minus PHP comments). Aslo, http://myhost/myscript/anything/anything/bla.bla.bla returns the same.
I was running PHP 4.0.4pl1 on RedHat Linux 6.2, kernel 2.4.6. I upgraded to PHP 4.0.6 and still see this behavior.
P.S. For the curious I discovered this because a personal site I have uses directory/admin.php for site admin, while another site I am developing at work uses directory/admin/ and I typed the wrong one at home :)
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribelists.php.net For additional commands, e-mail: php-general-help
lists.php.net To contact the list administrators, e-mail: php-list-admin
lists.php.net
attached mail follows:
On Sun, 22 Jul 2001, Anthony Lieuallen wrote:
> I've just discovered a weird quirk in PHP. I'd first like to check if it is > a known bug/weird feature/something else already known. I've not yet tested > it much, except I see it doesn't happen on every script, but either of the > two results are quite strange to me. > > Suituation: file myscript.php exists, directory myscript/ does not. If I > browse to http://myhost/myscript.php all is well. But > http://myhost/myscript/ does return something, where I expect a '404 not > found'. Sometimes it just returns myscript.php. BUT sometimes it returns > the PHP source (minus PHP comments). Aslo, > http://myhost/myscript/anything/anything/bla.bla.bla returns the same. > > I was running PHP 4.0.4pl1 on RedHat Linux 6.2, kernel 2.4.6. I upgraded to > PHP 4.0.6 and still see this behavior. > > P.S. For the curious I discovered this because a personal site I have uses > directory/admin.php for site admin, while another site I am developing at > work uses directory/admin/ and I typed the wrong one at home :)
I haven't seen this with the php source problem, but otherwise this is a feature of a default installation of apache. Turn off MultiViews for the directories with this problem (or globally in httpd.conf).
http://httpd.apache.org/docs/mod/mod_negotiation.html
-- patrik wallstrom | f o o d f i g h t tel: +46-8-6188428 | s t o c k h o l m gsm: +46-709580442 | - - - - - - - - -
attached mail follows:
hello,
I have a Session variable $Stage which I want to update (increment by 1)when my form submit button is pressed. <FORM Method=\"post\" Action=\"$PHP_SELF\"> how can I update this session variable ? I dont want to update it at the start of the script, because if the Reload button is pressed, it will keep updating it and it will mess up the script Please can someone help me out.
Thanks Pete
attached mail follows:
I have the following question : I have a directory on my ftp server and i want give access to this directory by group (the name of the group is test) % ls % /ftp/test % chmod 070 test how can i do this
Greetings, Manu
attached mail follows:
Hello Manu,
Saturday, August 04, 2001, 11:25:16 PM, you wrote:
MV> I have the following question : MV> I have a directory on my ftp server and i want give access to this directory MV> by group (the name of the group is test) MV> % ls MV> % /ftp/test MV> % chmod 070 test MV> how can i do this
Use exec() or system(). With both you can run external program. e.g. system("chmod 0700 test");
I hope it helps
-- Best regards, Daniel mailto:danielrezny.sk
attached mail follows:
Has anyone got PHP successfully compiled and using GD 2.0.1?
If so what was your configure line please and any other changes you had to make in order to get PHP to compile. Thanks.
attached mail follows:
> Has anyone got PHP successfully compiled and using GD 2.0.1? > > If so what was your configure line please and any other changes you had to > make in order to get PHP to compile. Thanks.
Build gd-2.0.1 with these two lines in your GD2 Makefile:
CFLAGS=-g -DHAVE_LIBPNG -DHAVE_LIBJPEG -DHAVE_LIBFREETYPE LIBS=libgd.a -lpng -lz -ljpeg -lfreetype -lm
Don't install the lib anywhere, just leave them in the gd-2.0.1 directory.
Then build PHP using:
--with-gd=/home/<your_dir>/gd-2.0.1 --with-freetype-dir=/usr --enable-gd-native-ttf (note there was a typo in 4.0.6 on this one) use: --enable-gd-native-tt if you are using 4.0.6 --enable-gd-imgstrttf --with-jpeg-dir=/usr --with-png-dir=/usr --with-xpm-dir=/usr/X11R6
This assumes that you have freetype2 installed along with the libjpeg and libpng libs under /usr
-Rasmus
attached mail follows:
> > Has anyone got PHP successfully compiled and using GD 2.0.1? > > > > If so what was your configure line please and any other changes you had to > > make in order to get PHP to compile. Thanks. > > Build gd-2.0.1 with these two lines in your GD2 Makefile: > > CFLAGS=-g -DHAVE_LIBPNG -DHAVE_LIBJPEG -DHAVE_LIBFREETYPE
CFLAGS=-g -DHAVE_LIBPNG -DHAVE_LIBJPEG -DHAVE_LIBFREETYPE
Same as mine.
> LIBS=libgd.a -lpng -lz -ljpeg -lfreetype -lm
LIBS=libgd.a -lpng -lz -ljpeg -lfreetype -lm
Same as mine.
> Don't install the lib anywhere, just leave them in the gd-2.0.1 directory.
[root
b gd-2.0.1] ~ make test
gcc -I. -I/usr/include/freetype2 -I/usr/include/X11 -I/usr/X11R6/include/X11 -I/usr/local/include gdtest.o -o gdtest -L/usr/local/lib -L/usr/lib/X11 -L/usr/X11R6/lib libgd.a -lpng -lz -ljpeg -lfreetype -lm
gcc: libgd.a: No such file or directory
make: *** [gdtest] Error 1
[root
b gd-2.0.1] ~
It's obviously a simple error but I have no idea about C.
Thanks.
attached mail follows:
> > > Has anyone got PHP successfully compiled and using GD 2.0.1?
> > >
> > > If so what was your configure line please and any other changes you had to
> > > make in order to get PHP to compile. Thanks.
> >
> > Build gd-2.0.1 with these two lines in your GD2 Makefile:
> >
> > CFLAGS=-g -DHAVE_LIBPNG -DHAVE_LIBJPEG -DHAVE_LIBFREETYPE
>
> CFLAGS=-g -DHAVE_LIBPNG -DHAVE_LIBJPEG -DHAVE_LIBFREETYPE
>
> Same as mine.
>
> > LIBS=libgd.a -lpng -lz -ljpeg -lfreetype -lm
>
> LIBS=libgd.a -lpng -lz -ljpeg -lfreetype -lm
>
> Same as mine.
>
> > Don't install the lib anywhere, just leave them in the gd-2.0.1 directory.
>
> [root
b gd-2.0.1] ~ make test
> gcc -I. -I/usr/include/freetype2 -I/usr/include/X11 -I/usr/X11R6/include/X11 -I/usr/local/include gdtest.o -o gdtest -L/usr/local/lib -L/usr/lib/X11 -L/usr/X11R6/lib libgd.a -lpng -lz -ljpeg -lfreetype -lm
> gcc: libgd.a: No such file or directory
> make: *** [gdtest] Error 1
> [root
b gd-2.0.1] ~
>
> It's obviously a simple error but I have no idea about C.
You left out your PHP configure line
-Rasmus
attached mail follows:
> > > Build gd-2.0.1 with these two lines in your GD2 Makefile:
> > >
> > > CFLAGS=-g -DHAVE_LIBPNG -DHAVE_LIBJPEG -DHAVE_LIBFREETYPE
> >
> > CFLAGS=-g -DHAVE_LIBPNG -DHAVE_LIBJPEG -DHAVE_LIBFREETYPE
> >
> > Same as mine.
> >
> > > LIBS=libgd.a -lpng -lz -ljpeg -lfreetype -lm
> >
> > LIBS=libgd.a -lpng -lz -ljpeg -lfreetype -lm
> >
> > Same as mine.
> >
> > > Don't install the lib anywhere, just leave them in the gd-2.0.1 directory.
> >
> > [root
b gd-2.0.1] ~ make test
> > gcc -I. -I/usr/include/freetype2 -I/usr/include/X11 -I/usr/X11R6/include/X11 -I/usr/local/include gdtest.o -o gdtest -L/usr/local/lib -L/usr/lib/X11 -L/usr/X11R6/lib libgd.a -lpng -lz -ljpeg -lfreetype -lm
> > gcc: libgd.a: No such file or directory
> > make: *** [gdtest] Error 1
> > [root
b gd-2.0.1] ~
> >
> > It's obviously a simple error but I have no idea about C.
>
> You left out your PHP configure line
I was trying to make gd-2.0.1, are you saying don't make GD at all, just go straight to configuring php?
In that case here's my php configure line:
./configure --with-apache=../apache_1.3.20 --enable-trans-sid --with-jpeg-dir=/usr/local --with-gd=/tmp/www/gd-2.0.1 --with-tiff-dir=../tiffv3.5.6-beta --with-png-dir=../libpng-1.0.12 --with-zlib-dir=../zlib-1.1.3 --with-pdflib --with-pgsql --enable-static-pdflib --enable-ftp --enable-gd-native-tt --enable-gd-imgstrttf --with-freetype-dir=/usr/local/include/freetype2
checking for freetype(2)... yes
checking whether to include include FreeType 1.x support... no
checking whether to include T1lib support... no
configure: error: Unable to find libgd.(a|so) anywhere under
/usr/local/include/freetype2
[root
b php-4.0.6] ~
Thankyou.
attached mail follows:
> > > [root
b gd-2.0.1] ~ make test
> > > gcc -I. -I/usr/include/freetype2 -I/usr/include/X11 -I/usr/X11R6/include/X11 -I/usr/local/include gdtest.o -o gdtest -L/usr/local/lib -L/usr/lib/X11 -L/usr/X11R6/lib libgd.a -lpng -lz -ljpeg -lfreetype -lm
> > > gcc: libgd.a: No such file or directory
> > > make: *** [gdtest] Error 1
> > > [root
b gd-2.0.1] ~
> > >
> > > It's obviously a simple error but I have no idea about C.
> >
> > You left out your PHP configure line
>
> I was trying to make gd-2.0.1, are you saying don't make GD at all,
> just go straight to configuring php?
Ah, no, type: make libgd.a in your gd dir.
-Rasmus
attached mail follows:
> > > > It's obviously a simple error but I have no idea about C. > > > > > > You left out your PHP configure line > > > > I was trying to make gd-2.0.1, are you saying don't make GD at all, > > just go straight to configuring php? > > Ah, no, type: make libgd.a > in your gd dir.
Ok, making libgd.a worked and php configure worked.
Make php failed:
Making all in gd
make[2]: Entering directory `/tmp/www/php-4.0.6/ext/gd'
make[3]: Entering directory `/tmp/www/php-4.0.6/ext/gd'
gcc -I. -I/tmp/www/php-4.0.6/ext/gd -I/tmp/www/php-4.0.6/main
-I/tmp/www/php-4.0.6 -I/tmp/www/apache_1.3.20/src/include
-I/tmp/www/apache_1.3.20/src/os/unix -I/tmp/www/php-4.0.6/Zend
-I/usr/local/include -I/usr/local/include/freetype2/freetype
-I/tmp/www/gd-2.0.1/ -I/tmp/www/php-4.0.6/ext/mysql/libmysql
-I/tmp/www/php-4.0.6/ext/xml/expat/xmltok
-I/tmp/www/php-4.0.6/ext/xml/expat/xmlparse -I/tmp/www/php-4.0.6/TSRM
-DSUPPORT_UTF8 -DXML_BYTE_ORDER=12 -g -O2 -c gd.c && touch gd.lo
gd.c: In function `php_minit_gd':
gd.c:296: `gdPie' undeclared (first use in this function)
gd.c:296: (Each undeclared identifier is reported only once
gd.c:296: for each function it appears in.)
gd.c:297: `gdChord' undeclared (first use in this function)
gd.c:298: `gdNoFill' undeclared (first use in this function)
gd.c:299: `gdEdged' undeclared (first use in this function)
gd.c: In function `php_if_imagecreatetruecolor':
gd.c:577: warning: assignment makes pointer from integer without a cast
make[3]: *** [gd.lo] Error 1
make[3]: Leaving directory `/tmp/www/php-4.0.6/ext/gd'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/tmp/www/php-4.0.6/ext/gd'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/www/php-4.0.6/ext'
make: *** [all-recursive] Error 1
[root
b php-4.0.6] ~
Thanks.
attached mail follows:
> Make php failed:
Make sure you don't have gd-1.x header files in /usr/local/include
-Rasmus
attached mail follows:
Hi, I couldn't find a similar function in the official documentation. Does anyone know if there is a setInterval function in PHP? i.e., making repeated calls to a function separated by a given time period. Is such a function even possible in PHP? One way to do it, without a PHP function, is to use a HTML meta tag, but then the whole script would be called, not just a specific function. That's what I have been using, but it's a poor man's way of doing things, not very elegant. I thought a function such as setInterval would be the way to go, and it would be an esay way to stream data.
Zlutarch
_________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
attached mail follows:
Yes, see http://php.net/declare
-Rasmus
On Sat, 4 Aug 2001, Zlutarch G. wrote:
> Hi, I couldn't find a similar function in the official documentation. Does > anyone know if there is a setInterval function in PHP? i.e., making repeated > calls to a function separated by a given time period. Is such a function > even possible in PHP? One way to do it, without a PHP function, is to use a > HTML meta tag, but then the whole script would be called, not just a > specific function. That's what I have been using, but it's a poor man's way > of doing things, not very elegant. I thought a function such as setInterval > would be the way to go, and it would be an esay way to stream data. > > Zlutarch > > _________________________________________________________________ > Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp > > >
attached mail follows:
Sveiki, PHP,
Does anyone here has good php_gd.dll file that supports GD in windows.I can't download it from http://php.weblogs.com/php_gd , because it is damaged or smth. If you have, please email to me with this file. I need it very very much... Thank you
____________________________
2001.08.05, sekmadienis
Marius Pertravèius
iCQ: #125733984
Lietuva
xxx.lt
attached mail follows:
OFERTA PARA MEXICO:
php-general
lists.php.net
1.8.2001.Publicidad/Enseñanza a Distancia
Hola que tal:
El motivo de la presente carta es informarte de la posibilidad de poder
realizar algún curso a distancia de tu interés, cursos relacionados con tu
trabajo inquietudes y ocio.ect.El conocimiento es el mayor patrimonio de
que podemos disponer.
Nos dedicamos desde 1996.a impartir cursos a distancia disponemos
de una amplia variedad de cursos sencillos para poder seguirlos
comodamente desde cualquier parte del mundo y a unos precios muy
competitivos.
NET
------------
Redes y Sistemas
Sistemas Servers
Diseño Web
BUSSINES
------------
Gestion Comercial y Marketing
Relaciones Publicas
Recursos Humanos
Comercio Exterior
Direccion Comercial
Gestión Medio Ambiental
SALUD SUPERACION PERSONAL ------------------------------------- Psicoterapia Psicologia Practica Nutrí terapia y Salud Monitor Yoga Tai-Chi Hipnoterapia Quiromasaje y Reflexoterapia Aromaterapia Cosmética Natural Hierbas Medicinales -------------------------------------- CURSOS BECADOS:
Los cursos son de 200.horas lectivas el precio standar por curso es de 35.000.pts(Despues de beca)España a plazos.Iberoamerica 150.usa dolar aplazados.(Despues de beca)
El Diploma:
"Técnico Especialista"
El tiempo aproximado por curso dependiendo de los conocimientos en areas similares de que se disponga,es entre 2-6.meses.aprox. Si desean que les ampliemos información pueden enviar un e-mail les contestaremos con la mayor brevedad y les indicaremos nuestro espacio web que se encuentra en reformas.No lo pienses mas y envia un e-mail y recibiras todo tipo de informes y detalles muy en breve. Envie e-mail:
COTFORTR
terra.es
Sin otra que rogarte me envies un e-mail si estas interesado/a
Te enviamos un saludo.
Si desea no recibir mas e-mail. remove/mail CUERRT
terra.es
distancia.20
wanadoo.es
Jose Garceran Broker-COFOR Gestion Integral 1.SL
C/Constitucion.34 03310-Alicante España ------------------
attached mail follows:
I just tried to use the IMAP functions on my website. When I run the first script, I get this error:
Call to undefined function: imap_open()
Does this mean the IMAP functions are not installed?
Damiano
attached mail follows:
> > Make php failed: > > Make sure you don't have gd-1.x header files in /usr/local/include
Excellent! That worked.
For everyone else, my documentation for installing:
Apache with GD, zlib, png, jpg, tiff, pdf support
is at:
http://database.sourceforge.net/Installing_apache_with_gd_zlib_png_jpg_tiff_pdf_support.html
Thankyou.
attached mail follows:
On linux 6.1, I've installed fresh builds of postgres 6.0.4, apache 1.3.20, php 4.0.6.
Apache was first installed as a static install with php, but I've since rebuilt for dynamic shared libraries and rebuilt php accordingly. PHPLIB is also installed with some custom classes, some still interred in the local.inc.
The dynamic version runs, but won't see pg_connect(). Is there some build requirments to properly identify the pgsql.so? The statically built version of apache/php/postgres is working fine except for the spooky occurences below.
The local.inc file appears to be "frozen". I can't add new classes, or functions to existing classes, but bogus edits to the file will still break it.
Any help is greatly appreciated.
Dan Troxell
attached mail follows:
> On linux 6.1, I've installed fresh builds of postgres 6.0.4, apache 1.3.20, > php 4.0.6.
Get postgresql 7.1.2, make and install.
Configure php --with-pgsql
./configure --help
Will show you all available configure options.
attached mail follows:
Hello,
excuse my ignorance on that field, but if I use md5 in a java server page (jsp), can I decrypt it in php ? Is the implemantation of md5 the same on both language ?
py
attached mail follows:
> excuse my ignorance on that field, but if I use md5 in a java server page > (jsp), can I decrypt it > in php ? Is the implemantation of md5 the same on both language ?
Sure, but you don't decrypt md5. You md5 again and compare the two md5's
-Rasmus
attached mail follows:
> excuse my ignorance on that field, but if I use md5 in a java server page > (jsp), can I decrypt it > in php ? Is the implemantation of md5 the same on both language ? >
Well . . . the implementations *should* produce the same result, but md5 is a *one-way* hash function -- i.e. you cannot decrypt it at all.
-- Joe
attached mail follows:
Sorry, I meant compare and I wrote decrypt, We will: - encrypt in jsp - compare in php I am curious about the "should" you wrote ....
py
----- Original Message -----
From: "Joe Conway" <joseph.conway
home.com>
To: "pierre-yves" <pylem
sympatico.ca>; <php-general
lists.php.net>
Sent: Saturday, August 04, 2001 10:03 PM
Subject: Re: [PHP] md5 on different platform
> > excuse my ignorance on that field, but if I use md5 in a java server
page
> > (jsp), can I decrypt it
> > in php ? Is the implemantation of md5 the same on both language ?
> >
>
> Well . . . the implementations *should* produce the same result, but md5
is
> a *one-way* hash function -- i.e. you cannot decrypt it at all.
>
> -- Joe
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> For additional commands, e-mail: php-general-help
lists.php.net
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
>
attached mail follows:
I just didn't want to vouch that the particular jsp algorithm you are using has been properly implemented. If you want some assurance, try the test vectors from rfc 1321 (at the very end of the document) --> ftp://ftp.isi.edu/in-notes/rfc1321.txt
HTH
Joe
> Sorry, I meant compare and I wrote decrypt,
> We will:
> - encrypt in jsp
> - compare in php
> I am curious about the "should" you wrote ....
>
> py
>
>
> ----- Original Message -----
> From: "Joe Conway" <joseph.conway
home.com>
> To: "pierre-yves" <pylem
sympatico.ca>; <php-general
lists.php.net>
> Sent: Saturday, August 04, 2001 10:03 PM
> Subject: Re: [PHP] md5 on different platform
>
>
> > > excuse my ignorance on that field, but if I use md5 in a java server
> page
> > > (jsp), can I decrypt it
> > > in php ? Is the implemantation of md5 the same on both language ?
> > >
> >
> > Well . . . the implementations *should* produce the same result, but md5
> is
> > a *one-way* hash function -- i.e. you cannot decrypt it at all.
> >
> > -- Joe
> >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> > For additional commands, e-mail: php-general-help
lists.php.net
> > To contact the list administrators, e-mail: php-list-admin
lists.php.net
> >
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> For additional commands, e-mail: php-general-help
lists.php.net
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
>
>
attached mail follows:
Hello ! Is there any free PHP/MySQL Web Hosting without add ? ... or ... at least , I could have the choice to choose where to place their banner on my pages ? Thanks... Arcad.
attached mail follows:
Sveiki, Arcadius,
2001 m. rugpjûèio 5 d.(sekmadienis), 14:26:56, jûs raðëte: AA> Hello ! AA> Is there any free PHP/MySQL Web Hosting without add ? ... or ... at least , AA> I could have the choice to choose where to place their banner on my pages AA> ? AA> Thanks... AA> Arcad.
www.f2s.com
____________________________
2001.08.05, sekmadienis
Marius Pertravèius
Lietuva
xxx.lt
attached mail follows:
Hello!
Let me introduce myself. My name is Mr. Rajesh Tavakari from www.website-promotion-ranking-services.com, and you can contact
me at rajesh
website-promotion-ranking-services.com or tavakari
yahoo.com.
I enjoyed visiting your interesting site at http://www.e-gineer.com/articles/php-hackers-paradise-revisited.phtml. You may know that having high link popularity can help you in the search engine ranking. Link popularity is defined as the number of web sites that link back to your site. Links from other pages are one of the main sources of web traffic, and they are becoming increasingly important for other reasons.
There have been studies that show the majority of traffic to web sites comes from people clicking on links from other sites. The Search engines are also beginning to use the number (and in some cases quality) of links to your pages to assist in their ranking of your site. For these reasons and others, you need to have links to your site from other sites if you want to increase traffic to your site.
I am looking forward to add your URL to our website at http://www.website-promotion-ranking-services.com/links.htm. To add your website link to our website please visit : http://www.website-promotion-ranking-services.com/links.htm.
It would be kind of you, if you could link back to me, thus increasing link popularity of both sites.
As soon as you add our link on your website, You Get 3 Bonus :
1. Submission of your website in the appropriate categories. Our SEO Experts will submit your individual link pages in appropriate category every 15 days for 1 month.
2. Basic Directory Listing with 6 month Classified Ad* with Sunny Side Business Directory
3. FREE ! Three Ultimate E-books on Web promotion and Optimization worth 125 $.
Best Regards,
Rajesh. V. Tavakari [ Specialist in Web Promotion & Web Optimization ] CEO - WebPromotionGuru.com & - Website-Promotion-Ranking-Services.com.
Address : B-I/3, P & T Quarters. Kavalbyrasandra. R.T Nagar Post. BANGALORE - 32. State : Karnataka. INDIA.
E-Mail : rajesh
website-promotion-ranking-services.com
E-Mail : raju
webpromotionguru.com
URL : www.Website-Promotion-Ranking-Services.com URL : www.WebPromotionGuru.com
Phone : ( 00 91 ) 9845089687.
Contact Us Online at :
ICQ : 19511229.
Yahoo Messenger : tavakari
yahoo.com
MSN : r_tavakari
hotmail.com
attached mail follows:
Since I am tired of switching from one web host to another because of the limitations that are imposed... does anybody know of a host provider that supports PHP & MySQL and that, differently from my current host, will also allow me to upload files and install the IMAP functions?
Damiano
attached mail follows:
I am trying to compile and install php-4.0.6 on a redhat-7.1 linux-2.4.3 server using the following for configure:
./configure --prefix=/usr --with-apxs=/usr/sbin/ apxs --enable-versioning --with-mysql --enable-track-vars --with-xml --disable- debug --enable-pic --enable-shared --enable-inline-optimization --with-regex=sy stem --with-gettext --with-gd --with-png --with-ttf --with-zlib --with-db2 --wi th-db3 --with-gdbm --with-openssl --with-layout=GNU --enable-debugger --enable- magic-quotes --enable-safe-mode --enable-sockets --enable-sysvsem --enable-sysv shm --enable-yp --enable-ftp --enable-wddx --without-oracle --without-oci8
and when i make i receive the following error: /bin/sh ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../main -DLINUX=22 -DMOD_SSL=208104 -DEAPI -DUSE_EXPAT -DSUPPORT_UTF8 -DXML_BYTE_ORDER=12 -g -O2 -c ./zend_execute.c ./zend_execute.c: In function `execute': ./zend_execute.c:2360: Internal compiler error in ggc_recalculate_in_use_p, at ggc-page.c:880 Please submit a full bug report. See <URL:http://bugzilla.redhat.com/bugzilla/> for instructions. make[1]: *** [zend_execute.lo] Error 1 make[1]: Leaving directory `/root/temp/php-4.0.6/Zend' make: *** [all-recursive] Error 1
this is after i patched php with redhat's patches...funny thing is that without the --with-apxs option, it makes just fine, but i wanted to build a DSO so that i could drop it in to apache-1.3.20 as a loadable module, so i added that option and did a make clean and reconfigured, and thats when i received the error. I didnt see the error without the --with-apxs option
Has anyone got any ideas on how to correct this? Any assistance would be appreciated.
-- Michael B. Weiner, Linux+, Linux+ SME Systems Administrator/Partner The UserFriendly Network (UFN) -- Linux Registered User #94900 Have you been counted? http://counter.li.orgPGP: 30 1D CC BA 30 30 63 35 CD 58 E0 89 A9 17 CC C0 8C 55 F7 72
......... Escape the 'Gates' of Hell `:::' ....... ...... ::: * `::. ::' ::: .:: .:.::. .:: .:: `::. :' ::: :: :: :: :: :: :::. ::: .::. .:: ::. `::::. .:' ::. ...:::.....................::' .::::.. --
- application/x-pkcs7-signature attachment: S/MIME Cryptographic Signature
attached mail follows:
Making all in main make: don't know how to make ../php/php4-current/php4/ext/standard/php_output.h. Stop
__________________________________________________ Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/
attached mail follows:
Perhaps the manual should be made to reflect this since, my understanding came from the online version of the manual.
Sterling
Philip Olson wrote:
> Yes, this is essentially true. Zeev posted this to the list awhile ago,
> see the following :
>
> http://www.faqts.com/knowledge_base/view.phtml/aid/6/
>
> Essentially the difference now is the type of error that's produced, one
> being a warning (include) while the other being FATAL! (require).
>
> Regards,
> Philip
>
>
> On Tue, 31 Jul 2001, CC Zona wrote:
>
>
>>In article <B78CC02E.F4D9%php-l
bakednotfried.com>,
>> php-l
bakednotfried.com (Mike Cullerton) wrote:
>>
>>
>>>so the difference is _when_ they happen.
>>>
>>>ok, another question then.
>>>
>>>if my script includes the line
>>> require_once($file);
>>>
>>>and $file contains the line
>>> include_once($other_file);
>>>
>>>what happens then?
>>>
>>Rasmus has stated before that there is no longer any difference between
>>include_once() vs. require_once(), or include() vs. require(). I forget
>>which version that became the case, but if you are using a current version
>>of PHP the above two lines should produce identical results.
>>
>>--
>>CC
>>
>>--
>>PHP General Mailing List (http://www.php.net/)
>>To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
>>For additional commands, e-mail: php-general-help
lists.php.net
>>To contact the list administrators, e-mail: php-list-admin
lists.php.net
>>
>>
>
attached mail follows:
I've made some scripts that let a user work on a MySQL database via the web. When a web user clicks a button in an HTML form, a new page is loaded which runs PHP scripts which in turn manipulate the database accourding to the users's request.
However I'm worried that the scripts may halt if the web user halts the loading of the web page which is running the scripts, leaving the database "corrupt" due to incomplete manipulation. I'm also worried the same could happen if the web page is not successfully loaded due to network problems.
So to the real question:
Does PHP always finish off the execution of scripts, or does that depend on whether the web page is indeed successfully loaded?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]