|
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: Fri Feb 09 2001 - 10:54:58 CST
php-general Digest 9 Feb 2001 16:54:58 -0000 Issue 502
Topics (messages 38895 through 38969):
Re: echo vs print
38895 by: Jeff Oien
38898 by: Maxim Maletsky
38908 by: Philip Olson
version'ng problem with php4 and apache 1.3.17 ...
38896 by: The Hermit Hacker
TCP/IP Question
38897 by: JCampell
looping variables
38899 by: Wen Ni Leong
38912 by: Michael Dearman
Re: UN-Escaping text from a form submit?
38900 by: Ankur Verma
Re: PHP File Uplaod Path
38901 by: Ankur Verma
PHP support for hexadecimal
38902 by: Michael
Re: PEAR
38903 by: Dean Hall
Re: Converting CFML to PHP
38904 by: Dean Hall
38948 by: Michael Kimsal
Re: include("blah.php?var=this"); doesn't work?!
38905 by: Dean Hall
Re: Super SQL problem! Please advise!
38906 by: Graham Reeves
looking for a class to replace our own tags with it's HTML equiva lent
38907 by: Maxim Maletsky
Raspuns: [PHP] Cron + PHP
38909 by: Ovidiu EFTIMIE
38917 by: Jørg V. Bryne
Re: Web Based Project Management Tools
38910 by: Nold, Mark
38953 by: Louis LeBlanc
Raspuns: [PHP] indexing text
38911 by: Ovidiu EFTIMIE
Re: Wierd OCI Problem... [Urgent, and please help]
38913 by: Nold, Mark
test
38914 by: Plamen Slavov
http_user_agent and proxy
38915 by: Plamen Slavov
Cannot unsubscribe this mailing list.
38916 by: Ørjan Vøllestad
Why do we want to give YOU money?
38918 by: thisisyours.msn.com
Re: preg_match() vs. preg_match_all()
38919 by: Michael Dearman
Re: PHP as Scripting Language
38920 by: Maxim Derkachev
PDF Library
38921 by: WebMax
38968 by: Michael Stearne
Arrays through URL
38922 by: Jamie
38923 by: Jørg V. Bryne
38929 by: Christian Reiniger
38932 by: Jørg V. Bryne
38965 by: Christian Reiniger
Spliting
38924 by: Murat Saygili
Cookies
38925 by: Matt
38926 by: Matthew Bean
38928 by: Ankur Verma
38942 by: Brian V Bonini
Re: Mail-Encryption
38927 by: Christian Reiniger
Runing php with cron
38930 by: Janez Dovc
38931 by: Ankur Verma
MySQL error
38933 by: Augusto Cesar Castoldi
38940 by: Jason Stechschulte
How does one build a big chat system?
38934 by: Jens Kisters
38966 by: Christian Reiniger
38967 by: Michael Stearne
Decoding E-Mails
38935 by: Jens Kisters
More problems with MySql...
38936 by: Felipe Lopes
good free/cheap IDE for PHP
38937 by: Dennis von Ferenczy
38938 by: Jon Haworth
38943 by: John Vanderbeck
copy PEAR
38939 by: Conover, Ryan
38944 by: Martin A. Marques
Re: PHP4.0.4pl1 with Apache 1.3.17/SSL and Frontpage ...
38941 by: Larry Rosenman
PHP/WML Site
38945 by: Augusto Cesar Castoldi
38960 by: Philip Olson
ftp_fput
38946 by: Marisol Díaz E.
38959 by: Marisol Díaz E.
mysql not reporting errors
38947 by: Christian Dechery
38950 by: Martin A. Marques
38951 by: Christian Dechery
38954 by: Jason Stechschulte
upload and content-type problems
38949 by: Jim McCormack
fread() a remote file
38952 by: Tyler Longren
38957 by: Jason Stechschulte
Re: Insert Data AS400
38955 by: Karl J. Stubsjoen
Cookies reprise...
38956 by: Matt
mysql default cfg
38958 by: Christian Dechery
how to know which web dir you're in
38961 by: Jason Jacobs
38962 by: John Vanderbeck
38963 by: Matt
Spider script in PHP.
38964 by: Angerer, Chad
Re: Files only available via HTTPS
38969 by: Adam Knight
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:
From recent posts:
http://www.zend.com/zend/tut/using-strings.php
also see the doc for print in the PHP manual:
http://www.php.net/manual/en/function.print.php
Jeff Oien
> I have "Profession PHP Programming" and I see that echo() and print()
> are used alomst interchangeably. When should each one be used?
>
> Also, I see "<?php" and "<?" used. Is there a preference?
>
> And how about "};" versus "}" to end a block? I see both.
>
> Todd
>
> --
> Todd Cary
> Ariste Software
> todd
aristesoftware.com
attached mail follows:
If you search archives you'll find some blody battles on this kind of
issues,
there are some slight differences but work both well and are very similar in
performance - so this is the question of style. You see, Professional PHP
Programming was written by 5 young guys (including Sascha) and that is why
the yprobably coulnd't stick to one single style : couse they have some deep
preferences.
Anyway, "<?php" , "<?" are quite same too, except that php3 used to have
"<?php" while older versions use mainly "<?", this is just about
compatibility.
}; and } same things, it should be }; but the parser was then simplified to
understand } and so everyone uses this.
just like :
if($me && $you)
// is same as:
if($me and $you)
if($me || $you)
// is same as:
if($me or $you)
or like
$var = 1;
if($var) {
echo $var;
}
else {
echo 'Var is not set, sorry';
}
// is equal to
$var = 1;
echo $var ? $var : 'Var is not set, sorry';
It is generally all about your style,
Cheers,
Maxim Maletsky
-----Original Message-----
From: Todd Cary [mailto:todd
aristesoftware.com]
Sent: Friday, February 09, 2001 12:26 PM
To: php-general
lists.php.net
Subject: [PHP] echo vs print
I have "Profession PHP Programming" and I see that echo() and print()
are used alomst interchangeably. When should each one be used?
Also, I see "<?php" and "<?" used. Is there a preference?
And how about "};" versus "}" to end a block? I see both.
Todd
-- Todd Cary Ariste Software toddaristesoftware.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:
On Thu, 8 Feb 2001, Todd Cary wrote:
> I have "Profession PHP Programming" and I see that echo() and print() > are used alomst interchangeably. When should each one be used?
What is the difference between echo and print ? ------------------------------------------------------------- http://www.faqts.com/knowledge_base/view.phtml/aid/1/fid/41 > Also, I see "<?php" and "<?" used. Is there a preference?
<? is a short tag, <?php is not. <?php will always work, everywhere, always. This is what should be used. <? will most likely always work wherever your script may travel but keep in mind, this setting can be turned off. See :
http://www.php.net/manual/en/configuration.php#ini.short-open-tag
> And how about "};" versus "}" to end a block? I see both.
Don't do }; as it looks funny. Btw, I've never seen }; used within the manual.
Regards,
Philip
attached mail follows:
I feel sooooo dense :( I've gotten into a habit of upgrading my apache with a simple 'make install-program', but, of course, php needs 'make install-include' to happen as well ...
so, my include files for apache was out of sync with the server, causing the problem ...
all appears well now ...
Marc G. Fournier ICQ#7615664 IRC Nick: Scrappy
Systems Administrator
hub.org
primary: scrappy
hub.org secondary: scrappy
{freebsd|postgresql}.org
attached mail follows:
I'm working on a TCP/IP server using PHP, but the example I found on www.php.net is only a one connection. Does anyone have an example of a multiple connection php script? I'd really appreciate looking at it..
<Jon> www.PictureArena.com =============================== The lack of humility before nature thats being displayed here staggers me. =============================== </Jon> www.PictureArena.com
attached mail follows:
Please help me to solve this problem. I have looping selected menu and I want to use javascript to control each function. For example if select Text Form,the javascript will automate to open new window. Right now my problem is I can't differentiate from which menu or location I had selected because all of them are looping. So please help me to look at the coding below. See what I need to change. Thanks.
print "<SCRIPT LANGUAGE = \"JavaScript\">
function chg_list(temp_val,form_property,num) {
var value = temp_val; var count = 1; var max_count = document.theform.result.value; var loc = document.theform.docvar.value;
while (count < max_count) { var var_temp = \"title_\"+count+\"_lf\"; if(value == \"text\") { newWindow = window.open(\"newwin.php?doc_var=$doc_var'\", \"newWindow\", \"toolbar=no,menubar=no,scrollbars=yes,width=783,height=400,top=0,left=0\"); }
if(value == \"exist_doc\") { alert(\"testing=\"+value+\"\"); } count++; } return true; }
</SCRIPT>\n";
<form> while ($count < $last_row_no) { $doc_var = "title_"."$count"."_lf";
if ($count =="1") { print "<TD align=center><b>Start</b></TD>\n"; } else { print "<TD><a name=\"$var_loc\"></a> <font size=3><select name=\"$doc_var\" onchange=\"chg_list(this.form.$doc_var.options[this.form.$doc_var.selectedIndex].value, form.$doc_var.options[0])\">\n";
if ($doc_title == "") {print "<option value=\"\" selected>\n";} else {print "<option value=\"$doc_title\" selected>$doc_title\n";}
print "<option value=\"new_doc\">New Document <option value=\"exist_doc\">Existing Document <option value=\"\">--------------- End Of List -------------- </select></font></TD>\n"; }
print "<input type=hidden name=\"docvar\" value=\"$doc_var\">\n"; </form>
attached mail follows:
Hey Wen, Had me going there for a bit, cause I had just put down a book on C, where variables are not preceded by such things as $. But for PHP, your missing a few $'s on your variables.
And, your taking care of matching that javascript opening tag from where your calling this function?
MD
Wen Ni Leong wrote: > > Please help me to solve this problem. I have looping selected menu and > I want to use javascript to control each function. For example if > select Text Form,the javascript will automate to open new window. > Right now my problem is I can't differentiate from which menu or > location I had selected because all of them are looping. So please help > me to look at the coding below. See what I need to change. Thanks. > > print "<SCRIPT LANGUAGE = \"JavaScript\"> > > function chg_list(temp_val,form_property,num) > { > > var value = temp_val; > var count = 1; > var max_count = document.theform.result.value; > var loc = document.theform.docvar.value; > > while (count < max_count) > {
attached mail follows:
there are two ways of achieving thi -
stripslashes($data)
or if you want this to be global, then set
magic_quotes_gpc = Off
in php.ini file
hope that helps
regards
Ankur Verma
> ----- Original Message -----
> From: "John Vanderbeck" <agathorn
cfl.rr.com>
> To: <php-general
lists.php.net>
> Sent: Thursday, February 08, 2001 9:17 AM
> Subject: [PHP] UN-Escaping text from a form submit?
>
>
> > Hello again,
> >
> > I have a form that is used to submit data to my script. If the user
> enters
> > something like:
> >
> > The title of this book doesn't really matter to "me"!
> >
> > When I get that back, and read it from the file, it always ends up like:
> >
> > The title of this book doesn\'t really matter to \"me\"!
> >
> > Note the addition of the escape sequences. How can I stop this? Is
there
> > some function in PHP? Or am I goign to have to write a character routine
> to
> > strip out escape sequences? <shudder>
> >
> > - John Vanderbeck
> > - Admin, GameDesign
> >
> >
> > --
> > 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:
The default file upload path is the Temporary directory of your system.
But the problem that I percieve in your case is that when PHP uploads the file, it gives it a temporary file name ( such as /tmp/shsgtW ). if you are loooking to store the files in an intelligent manner, I would suggest that you do not change the file upload path. Let php copy the file where it does by default. Once the file has been uploaded, copy it to the directory you want the files to reside in . This way you can also specify a legible name for the file.
Look in the Uploading files section of the PHP manual and for a good article on uploadingfiles at phpbuilder.com
hope that helps
regards
Ankur Verma HCL Technologies A1CD, Sec -16 Noida, UP India
> ----- Original Message -----
> From: "Dhaval Desai" <dhaval_adams
yahoo.com>
> To: <php-general
lists.php.net>
> Sent: Wednesday, February 07, 2001 2:12 PM
> Subject: [PHP] PHP File Uplaod Path
>
>
> > Hi!
> >
> > I need help with uploading files with php.
> > What is the default directory where the files are
> > uploaded..?
> > I want to specify a particular directory where the
> > files have to come after they are uploaded.
> >
> > Is it possible to specify a path in the script where
> > the files will automatically be copied after uploading
> > to the temporary directory.
> >
> > Please help me out ...
> >
> > Thank You
> > Dhaval Desai
> >
> >
> >
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Yahoo! Auctions - Buy the things you want at great prices.
> > http://auctions.yahoo.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:
Hi,
I have a question about PHP's support for unsigned integers. I was trying out the following code fragment....
$val = 0x80000000; $hexval_str = sprintf("%X", $val); echo $hexval_str;
result= -80000000
It seems here that I can not represent $val as an unsigned integer. Since settype does not have unsigned types, does anyone know how I can use sprintf to format an unsigned value?
Any help would be greatly appreciated. TIA!
Michael
attached mail follows:
> Can anyone point me in the direction of a good site documenting PEAR?
There is none. Although you should look at <http://pear.php.net>. Also see <http://www.phpdoc.de/pear/index2.html>. Also check out the stuff in the pear directory of the source installation.
Dean.
attached mail follows:
Seeing as how CFML is just more markup and PHP is an embedded language, your task will be interesting. IMHO, CFML is the worst thing out; it's not a real scripting language, and it blurs the distinction between markup and logic.
Sorry I couldn't help. (Just wanted to voice my opinion -- no flamebait intended.)
Dean.
""Kevin Queen"" <kqueen
anydevice.com> wrote in message
news:NEBBKMMPGMEIJCNLKNDGKEDCCGAA.kqueen
anydevice.com...
> List,
> I have been given the task of converting all of our current ColdFusion
pages
> to PHP, I am wondering if there is some kind of converting tool out there
> for this. I don't need 100% accuracy as I can/will fix any errors, I am
> just looking for the easiest way to convert 500+ files.
>
> TIA,
>
> Kevin Queen ____
> Software Developer ||""||
> AnyDevice ||__||
> Atlanta, Ga [ -=.]
> http://www.anydevice.com =======:0~
>
> (w) (404)260.4155
> (p) (888)645.2815
> (e) kqueen
anydevice.com
>
> "Ah, I see!", said the blind man to the deaf mute. -Unknown
>
>
> --
> 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 didn't see the original post before, but this is interesting. It's not often we hear of people switching FROM CF to PHP. It must happen, but I can't think of too many companies that I know using CF who would "throw away" that investment, so to speak.
Kevin, could you shed some light on why the change is being made? Was it financial? Or something deeper than that?
Dean Hall wrote:
> Seeing as how CFML is just more markup and PHP is an embedded language, your
> task will be interesting. IMHO, CFML is the worst thing out; it's not a real
> scripting language, and it blurs the distinction between markup and logic.
>
> Sorry I couldn't help. (Just wanted to voice my opinion -- no flamebait
> intended.)
>
> Dean.
>
> ""Kevin Queen"" <kqueen
anydevice.com> wrote in message
> news:NEBBKMMPGMEIJCNLKNDGKEDCCGAA.kqueen
anydevice.com...
> > List,
> > I have been given the task of converting all of our current ColdFusion
> pages
> > to PHP, I am wondering if there is some kind of converting tool out there
> > for this. I don't need 100% accuracy as I can/will fix any errors, I am
> > just looking for the easiest way to convert 500+ files.
> >
> > TIA,
> >
> > Kevin Queen ____
> > Software Developer ||""||
> > AnyDevice ||__||
> > Atlanta, Ga [ -=.]
> > http://www.anydevice.com =======:0~
> >
> > (w) (404)260.4155
> > (p) (888)645.2815
> > (e) kqueen
anydevice.com
> >
> > "Ah, I see!", said the blind man to the deaf mute. -Unknown
> >
> >
> > --
> > 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:
> Uh, why? Adding ?asin$asin makes absolutely no sense in an include since > included files share the same namespace as the parent file. You can > simply do:
Er, Rasmus. Do you mean "scope"? You're usually right on target with your comments, so I'm sure that's what you meant.... :-)
Speaking of namespaces....
Let me encourage the PHP development folks to add namespace support ASAP. I'd really like to make some of my apps PEAR-compliant, but I refuse to use the inane naming convention for classes that I'd need to.
Dean.
>
> $asin = 123;
> include 'book_reviews.php';
>
> And the $asin variable will be accessible to you book_reviews.php script.
>
> -Rasmus
>
> On Thu, 8 Feb 2001, John Vanderbeck wrote:
>
> > I need to be able to do:
> >
> > <?
> > if (isset($asin))
> > {
> > include("book_reviews.php?asin=$asin");
> > }
> > else
> > {
> > include("book_reviews.php");
> > }?>
> >
> > This is embeded in one of my sites pages..However, the call with the var
> > added on won't work, it seems like its looking for a file with that
whole
> > name. Does anyone know how I can do this?
> >
> > - John Vanderbeck
> > - Admin, GameDesign
> >
> >
> > --
> > 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:
Sandeep try this
SELECT d.id, d.thedate, d.topic, d.entry, count(c.id) AS comments FROM diary d left outer join comments c on (d.id = c.id) WHERE d.month='$month' GROUP BY c.id ORDER BY d.id DESC "
Cheers
_____________ Graham Reeves Consultant
PQ Africa - Q Data Consulting www.pqafrica.co.za
Tel No : +27 +43 +722 1111
Cell No: 082 870 3205
----- Original Message -----
From: Sandeep Hundal <sandeep_wde
yahoo.com>
To: <php-general
lists.php.net>
Sent: Thursday, February 08, 2001 6:11 AM
Subject: [PHP] Super SQL problem! Please advise!
> Hey all,
>
> I got this massive query, which I hope you'll be able to understand:
>
> SELECT diary.id, diary.thedate, diary.topic, diary.entry,
> count(comments.id) AS comments FROM diary, comments WHERE
> diary.month='$month' AND diary.id = comments.id GROUP BY comments.id
> ORDER BY diary.id DESC "
>
> Basically what I've done is made a diary table, and allowed people to
> comment on each diary entry, with the comments stored in a seperate
> comments table. What i'm doing there is getting the diary entry, plus
> the number of comments posted for that entry.
>
> Now the problem is that this query only displays entries from the
> diary table when a comment is added for that entry, otherwise it
> comes up with a blank, because (diary.id = comments.id) isn't true.
>
> Now, is there a way to make sure that it displays all diary entries
> anyway? because if i remove that check (diary.id = comments.id) -
> then all the numbers come up messed up.
>
> Thanks
> Sunny
>
> __________________________________________________
> Do You Yahoo!?
> Get personalized email addresses from Yahoo! Mail - only $35
> a year! http://personal.mail.yahoo.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:
Hi, I refer to: http://forums.devshed.com/index.php?action=bbcode <http://forums.devshed.com/index.php?action=bbcode> Do you guys know who has written something like that before? I am looking for a class that could do that kind of job. What I am trying to do is to parse articles replacing some staff with it's HTML equivalents. I know I can invent one, but isn't it made by someone else already? why to reinvent the wheel? Cheers,
Maxim Maletsky - maxim
j-door.com <mailto:maxim
j-door.com>
Webmaster, J-Door.com / J
pan Inc.
LINC Media, Inc.
TEL: 03-3499-2175 x 1271
FAX: 03-3499-3109
http://www.j-door.com <http://www.j-door.com/> http://www.japaninc.net <http://www.japaninc.net/> http://www.lincmedia.co.jp <http://www.lincmedia.co.jp/>
attached mail follows:
0 20 * * * lynx -dump http://localhost/file.php every day at 20:00 this file will be executed
Ovidiu
-----Mesaj original-----
De la: GAYTAN BAHAMONDEZ DANIEL EDUARDO [mailto:dgaytan
cec.uchile.cl]
Trimis: Friday, February 09, 2001 12:37 AM
Catre: php-general
lists.php.net
Subiect: [PHP] Cron + PHP
How can i make a crontab run a php file??? should i add something like this in the file:
path/to/file.php ????
Thanks in advance...
-- 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:
or even better; compile PHP as CGI in addition to an Apache module, and put it somewhere in the path. You can then set cron to:
0 20 * * * php -q myphpfile.php > results_to_this_file.txt
This could be useful if you need to run a script that is not available on the web-server, for instance.
-J
----- Original Message -----
From: "Ovidiu EFTIMIE" <eovidiu
rds.ro>
To: "GAYTAN BAHAMONDEZ DANIEL EDUARDO" <dgaytan
cec.uchile.cl>;
<php-general
lists.php.net>
Sent: Friday, February 09, 2001 8:31 AM
Subject: [PHP] Raspuns: [PHP] Cron + PHP
> 0 20 * * * lynx -dump http://localhost/file.php
> every day at 20:00 this file will be executed
>
>
> Ovidiu
>
> -----Mesaj original-----
> De la: GAYTAN BAHAMONDEZ DANIEL EDUARDO [mailto:dgaytan
cec.uchile.cl]
> Trimis: Friday, February 09, 2001 12:37 AM
> Catre: php-general
lists.php.net
> Subiect: [PHP] Cron + PHP
>
>
> How can i make a crontab run a php file???
> should i add something like this in the file:
>
> path/to/file.php ????
>
>
> Thanks in advance...
>
>
> --
> 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:
----------------------------------------------------------------------------
-----------------
Disclaimer: The information contained in this email is intended only for the
use of the person(s) to whom it is addressed and may be confidential or
contain legally privileged information. If you are not the intended
recipient you are hereby notified that any perusal, use, distribution,
copying or disclosure is strictly prohibited. If you have received this
email in error please immediately advise us by return email at
postmaster
normandy.com.au and delete the email document without making a
copy.
----------------------------------------------------------------------------
-----------------
PHPProjekt looks good.
Mark Nold
markn
enspace.com <mailto:markn
enspace.com>
Senior Consultant
Change is inevitable, except from vending machines.
-----Original Message-----
From: David Robley [mailto:huntsman
hermes.nisu.flinders.edu.au]
Sent: Friday, February 09, 2001 11:38 AM
To: Nathan Cook; Php List
Subject: Re: [PHP] Web Based Project Management Tools
On Fri, 9 Feb 2001 11:46, Nathan Cook wrote:
> Do any of you know of a comprehensive web-based project management tool
> written in php?
>
> Thank You!
> .:: Nathan Cook [ ncook
pcsedu.com ] ::.
> Systems & Network Administrator :: Programmer
> [ phone - 208.343.3110 ][ pager - 208.387.9983 ]
Keystone? http://www.stonekeep.com/keystone.php3
It and some others are listed on the projects page of your favourite PHP mirror.
-- David Robley | WEBMASTER & Mail List Admin RESEARCH CENTRE FOR INJURY STUDIES | http://www.nisu.flinders.edu.au/ AusEinet | http://auseinet.flinders.edu.au/ Flinders University, ADELAIDE, SOUTH AUSTRALIA
attached mail follows:
I assume everyone knows about SourceForge? http://sourceforge.net/projects/alexandria/ It is a 'self managed' project. SourceForge manages thousands of open source projects on the net, so you can be sure it is fairly robust. Pretty cool features, too.
L
"Nold, Mark" wrote:
>
> ----------------------------------------------------------------------------
> -----------------
> Disclaimer: The information contained in this email is intended only for the
> use of the person(s) to whom it is addressed and may be confidential or
> contain legally privileged information. If you are not the intended
> recipient you are hereby notified that any perusal, use, distribution,
> copying or disclosure is strictly prohibited. If you have received this
> email in error please immediately advise us by return email at
> postmaster
normandy.com.au and delete the email document without making a
> copy.
> ----------------------------------------------------------------------------
> -----------------
>
> PHPProjekt looks good.
>
> Mark Nold
> markn
enspace.com <mailto:markn
enspace.com>
> Senior Consultant
>
> Change is inevitable, except from vending machines.
>
> -----Original Message-----
> From: David Robley [mailto:huntsman
hermes.nisu.flinders.edu.au]
> Sent: Friday, February 09, 2001 11:38 AM
> To: Nathan Cook; Php List
> Subject: Re: [PHP] Web Based Project Management Tools
>
> On Fri, 9 Feb 2001 11:46, Nathan Cook wrote:
> > Do any of you know of a comprehensive web-based project management tool
> > written in php?
> >
> > Thank You!
> > .:: Nathan Cook [ ncook
pcsedu.com ] ::.
> > Systems & Network Administrator :: Programmer
> > [ phone - 208.343.3110 ][ pager - 208.387.9983 ]
>
> Keystone? http://www.stonekeep.com/keystone.php3
>
> It and some others are listed on the projects page of your favourite PHP
> mirror.
>
> --
> David Robley | WEBMASTER & Mail List Admin
> RESEARCH CENTRE FOR INJURY STUDIES | http://www.nisu.flinders.edu.au/
> AusEinet | http://auseinet.flinders.edu.au/
> Flinders University, ADELAIDE, SOUTH AUSTRALIA
>
> --
> 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
-- Louis LeBlanc Fully Funded Hobbyist, KeySlapper Extrordinaire :) leblancacadia.ne.mediaone.net http://acadia.ne.mediaone.net
attached mail follows:
Try here http://www.searchtools.com/tools/tools-unix.html
Ovidiu
-----Mesaj original-----
De la: Robert Mena [mailto:rt_mena
yahoo.com]
Trimis: Friday, February 09, 2001 4:35 AM
Catre: php mailing list
Subiect: [PHP] indexing text
Hi, i am trying to store some digital books under mysql and give a chapter/page access using php as scripting lanaguage.
Besides htdig is there any other solution (perhaps written in php) to index a content of a TEXT field in order to have an "altavista-like" search engine for my use ?
I've read that the new version of mysql does "full-text-indexing" whatever that means...
thanks.
__________________________________________________ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/
-- 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:
----------------------------------------------------------------------------
-----------------
Disclaimer: The information contained in this email is intended only for the
use of the person(s) to whom it is addressed and may be confidential or
contain legally privileged information. If you are not the intended
recipient you are hereby notified that any perusal, use, distribution,
copying or disclosure is strictly prohibited. If you have received this
email in error please immediately advise us by return email at
postmaster
normandy.com.au and delete the email document without making a
copy.
----------------------------------------------------------------------------
-----------------
I always compile PHP (with exactly the same config) with --enable-sigchild and as a CGI not module. I had similiar problems until i took both these steps. (I think we also moved away from Plogon due to not using the PHP module anymore)
I assume you've patched 8.05 (i had to connect to ora 7.3.3 on a remote machine)
You problem 'could' be 1. Improperly configured Oracle on the DB server end (maybe a limit to no. of connections?) 2. Not using --enable-sigchild 3. Not using PHP as CGI 4. Not patching Ora 8.0.5
Or simply that when a CGI process die it dies a lot more quietly... and the users simply rerun the page.
Just some gueses but i have 3 boxes configured the way you describe access remote Oracle DB servers (7.3.3 to 8.1.6) and they work reliably. The whole sites are oracle driven, but only receive 100 hits or so an hour. (so it could be something due to load i havent experienced)
mn
Mark Nold
markn
enspace.com <mailto:markn
enspace.com>
Senior Consultant
Change is inevitable, except from vending machines.
-----Original Message-----
From: Chien-Pin Wang [mailto:cpw
twins.veryHuman.com]
Sent: Friday, February 09, 2001 11:21 AM
To: php-general
lists.php.net
Cc: shufu
veryhuman.com
Subject: Wierd OCI Problem... [Urgent, and please help]
Dear all,
My server is running RedHat6.2/Apache 1.3.14/PHP 4.0.4pl1/Oracle 8.0.5. The way I make connection from PHP to Oracle is through php's Oracle 8 extension OCIPLogon.
Since the server was made available to the public, *EVERY ONCE A WHILE* I got error messages logged in apache's error log as found in the attachement (sorry the oracle message is in Big5 characters). The error sequence starts with ORA-00022, saying 'invalid session id; access denied', but a connection resource is returned. Then all kinds of ORA-/PLS- errors come after it. The persistent connection affects only the attached apache process, not everyone. That explains when user reload the page, the problem cannot be reproduced everytime. The only way I've found to stop it is by restarting apache.
I use quite a lot of Oralce stored procedures and return query results by cursor variables. But I doubt this the reason to it. My guess is that somewhere between apache process and oracle connection is interrupted.
I've been working on this issue for a while but got no clue now to move any further. When errors come, the error log got filled up pretty quick. Please help......, and thanks in advance.
Chien-pin
attached mail follows:
test
attached mail follows:
Hi guys, I have this problem: I am using a script like this to make php use a remote proxy to get pages using a remote proxy: $data1 = fsockopen($proxy, $port, &$errno, &$errstr); if( !$data1 ) { echo "proxy not available !"; fclose($resultfile); // exit(); } else { fputs($data1,"GET $myfiles/ HTTP/1.0\n\n"); while (!feof($data1)) { $mydata = fgets($data1,1000); echo "$mydata"; } }
The problem is that i want to set the HTTP_USER_AGENT to something different than a blank field, but have no idea how to do that.
attached mail follows:
A little problem, I subscribed with an email alias, and
now it looks like I cannot unsubscribe..
Have sent an empty mail to "php-general-unsubscribe
lists.php.net"
and gets reply - confirm that I want the email adress "user
host.com"
removed from the mailing list, but when I so that, I get a reply that
says failure,
the email does not exists..
How do I remove my email alias from the mailing list?
Med hilsen
Ørjan Vøllestad
i|Networkconsulent, iTet System as
t|Alkeveien 4, Postboks 2033
e|9265 Tromsø
t|Telefon: 77 64 78 22 / 77 67 91 00
|Mobil: 959 24 677
a|Mail: orjan.vollestad
itet.no
s|Web: http://www.itet.no
attached mail follows:
Simple answer, you were randomly selected from our recently purchased opt-in lists. OK so why are we giving away money you ask?
Another simple answer. We want you to discover what 10,000's of other people just like you already know... our Casino is fast-paced, interactive and just plain old fun.
So if you like to gamble or if you've never tried but always wanted to.... click on one of the links below now and collect your $25.00 in bonus casino chips.
************************************************* http://www.click-collect.com.com *************************************************
But that's not all, fabulous instaprizes and millions in bonus dollars will also be won during the download. What if you were lucky enough to win a...
** Mercedes Benz ** ** 3.5 Carat Diamond Ring ** ** Rolex Oyster Watch ** ** 25,000 cool cash ** ** Porsche Boxster **
This could be your lucky day so don't wait... click now and win!!
************************************************* http://www.click-collect.com *************************************************
***************************************************************************** Delivered to referrals and opt-ins *only*. All remove requests are honored. All players must be 21 years and over. Bonus dollars are only available to credit card depositors. We guarantee minimum wins. Good luck!
*****************************************************************************
REMOVE
mailto:getmeoffnow
china.com
attached mail follows:
CC Zona wrote: > > What is the functional difference between preg_match() and > preg_match_all()? I've puzzled over the manual descriptions for both, > checked the list archives and faqts.com, and still can't figure out why > they seem to return different results for the same pattern searches. >
Use a some text to match against where there's many places for a match to occur. When you use the PREG_PATTERN_ORDER, for the order argument with preg_match_all, it's like a global match, collecting the matches and subpatterns (obtained by using parenthesis, which will 'remember' the subpatterns) in the 2dim array for your viewing pleasure.
Something like that. I usually have to wrestle with it a bit to get it straight how the results from the subpattern matches (from the memorizing parens) are ordered in the array to get the a loop to spit everything back out correctly. If your nesting parens, I think it's you just start counting the opening paren from the left, and they'll match sequentially as indexes in the associated array for that particular match. Well, the 0 index is the entire match, and the subpat matches pick up at index 1.
But, if the winds blowing from the east, and ..... ;-) MD
> TIA
>
> --
> 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:
Hello Bill,
Thursday, February 08, 2001, 9:17:34 PM, you wrote:
BR> <b>Warning</b>: Cannot send session cookie - headers already sent in BR> <b>Unknown</b> on line <b>0</b><br> BR> <br> BR> <b>Warning</b>: Cannot send session cache limiter - headers already BR> sent in <b>Unknown</b> on line <b>0</b><br>
BR> hello world
BR> Any ideas on what I've got configured wrong?
set session.auto_start = 0 in the php.ini.
-- Best regards, Maxim Derkachev mailto:kotbooks.ru Symbol-Plus Publishing Ltd. phone: +7 (812) 324-53-53 http://www.Books.Ru -- All Books of Russia
attached mail follows:
How can I configure PDF Library on WIndows. It is not in the help file.
Regards
attached mail follows:
Search the archives for "PDF Windows" or something similar. Someone pointed to a link for preccompiled PDF binaries for Win32.
Michael
WebMax wrote:
> How can I configure PDF Library on WIndows. It is not in the help file.
>
> Regards
>
> --
> 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'm trying to pass a multi dimensional array through a url link but I'm having a hard time doing this. Is it actually possible? from what I can tell the url just shows .......$form_options_array=Array.... Is there a better way to do this? thanks jamie
attached mail follows:
check out: serialize();
----- Original Message -----
From: "Jamie" <jssmith
echidna.stu.cowan.edu.au>
To: "PHP" <php-general
lists.php.net>
Sent: Friday, February 09, 2001 10:28 AM
Subject: [PHP] Arrays through URL
> I'm trying to pass a multi dimensional array through a url link but I'm
> having a hard time doing this. Is it actually possible? from what I can
tell
> the url just shows .......$form_options_array=Array....
> Is there a better way to do this?
> thanks
> jamie
>
>
> --
> 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:
On Friday 09 February 2001 10:31, Jørg V. Bryne wrote: > check out: serialize();
> > I'm trying to pass a multi dimensional array through a url link but > > I'm having a hard time doing this. Is it actually possible? from what
It's possible (with serialize), but not desirable if the array can become big (which is easy with multidim. arrays). Better:
$ArrayS = serialize ($TheArray); $AKey = md5 ($ArrayS);
// insert into database (key: $AKey, value: $ArrayS)
$Url = $baseurl . "?key=$AKey"
plus the matching reading code
-- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/)"Software is like sex: the best is for free" -- Linus Torvalds
attached mail follows:
i would agree that serialize isn't good for huge arrays, yes, but if you're considering databases, why not use sessions?
-J
----- Original Message -----
From: "Christian Reiniger" <creinig
mayn.de>
To: "PHP" <php-general
lists.php.net>
Sent: Friday, February 09, 2001 11:32 AM
Subject: Re: [PHP] Arrays through URL
On Friday 09 February 2001 10:31, Jørg V. Bryne wrote: > check out: serialize();
> > I'm trying to pass a multi dimensional array through a url link but > > I'm having a hard time doing this. Is it actually possible? from what
It's possible (with serialize), but not desirable if the array can become big (which is easy with multidim. arrays). Better:
$ArrayS = serialize ($TheArray); $AKey = md5 ($ArrayS);
// insert into database (key: $AKey, value: $ArrayS)
$Url = $baseurl . "?key=$AKey"
plus the matching reading code
-- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/)"Software is like sex: the best is for free" -- Linus Torvalds
-- 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:
On Friday 09 February 2001 11:58, Jørg V. Bryne wrote: > i would agree that serialize isn't good for huge arrays, yes, but if > you're considering databases, why not use sessions?
Well, if sessions are useful for you, go ahead and use them. If you only want to pass something on 1-5 links on your entire site, sessions are overkill, but otherwise they'd be my tool of choice.
BTW - arrays don't have to be "huge" to generate unwieldy (and dangerous) URLs
> > > I'm trying to pass a multi dimensional array through a url link but > > > I'm having a hard time doing this. Is it actually possible? from > > > what
-- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/)Google results 1-10 of about 142,000,000 for e. Search took 0.18 seconds.
attached mail follows:
Hello friends, Suppose that I have a page andf I splitted it into two upper side has input fields and buttons and lower side is report that is every line includes database information. Now I have a question when I choose one of the lines below this page how can I get the values to upper pages input fields is it possible. Do I need javascript or php can solve my problem. Thanks Murat
attached mail follows:
I am having major problems with cookies, it's been stressing me out for over 9 hours.
I have a script that can set cookies, and it does that, just fine.
What it doesn't do is READ the cookies off the hard drive when the page is reloaded. I have tried everything, messing with the domains, expiration time, setting it to the root, using the php setcookie function as well as doing it through http headers. In each case the script WILL set the cookie on the computer, but it absolutely REFUSES to read it back up, even when called in the same exact scope.
Yes, I've checked the spelling too, and the page is rather complex, with various nested includes and so forth. PHP version is 4.0 I use both IE 5.5 and Netscape 6, it does the same thing in both of them.
Any help or suggestions would be greatly appreciated, this has been bugging the hell out of me.
Thanks. --Matt
attached mail follows:
I am having major problems with cookies, it's been stressing me out for over 9 hours.
I have a script that can set cookies, and it does that, just fine.
What it doesn't do is READ the cookies off the hard drive when the page is reloaded. I have tried everything, messing with the domains, expiration time, setting it to the root, using the php setcookie function as well as doing it through http headers. In each case the script WILL set the cookie on the computer, but it absolutely REFUSES to read it back up, even when called in the same exact scope.
Yes, I've checked the spelling too, and the page is rather complex, with various nested includes and so forth. PHP version is 4.0 I use both IE 5.5 and Netscape 6, it does the same thing in both of them.
Any help or suggestions would be greatly appreciated, this has been bugging the hell out of me.
Thanks. --Matt
attached mail follows:
Hi
I also faced the problem once. the cookie not being read by either of the browsers
The cause of the problem was traced back to a wrong setting of the date on the client machine as compared with the server. you cancheck thjis up to confirm.
Another reason can be the path in the cookie but i believe you have already tried it up.
Hope that helps
regards
Ankur Verma
----- Original Message -----
From: "Matt" <bean
yaysoft.com>
To: <php-general
lists.php.net>
Sent: Friday, February 09, 2001 3:32 PM
Subject: [PHP] Cookies
> I am having major problems with cookies, it's been stressing me out for
> over 9 hours.
>
> I have a script that can set cookies, and it does that, just fine.
>
> What it doesn't do is READ the cookies off the hard drive when the page is
> reloaded.
> I have tried everything, messing with the domains, expiration time,
setting
> it to the root,
> using the php setcookie function as well as doing it through http headers.
> In each case the
> script WILL set the cookie on the computer, but it absolutely REFUSES to
> read it back up,
> even when called in the same exact scope.
>
> Yes, I've checked the spelling too, and the page is rather complex, with
> various nested includes and so forth.
> PHP version is 4.0
> I use both IE 5.5 and Netscape 6, it does the same thing in both of them.
>
> Any help or suggestions would be greatly appreciated, this has been
bugging
> the hell out of me.
>
> Thanks.
> --Matt
>
>
>
> --
> 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:
lets see some code..
> -----Original Message-----
> From: Matthew Bean [mailto:mpbean
pmail.net]
> Sent: Friday, February 09, 2001 5:01 AM
> To: php-general
lists.php.net
> Subject: [PHP] Cookies
>
>
> I am having major problems with cookies, it's been stressing me out for
> over 9 hours.
>
> I have a script that can set cookies, and it does that, just fine.
>
> What it doesn't do is READ the cookies off the hard drive when
> the page is
> reloaded.
> I have tried everything, messing with the domains, expiration
> time, setting
> it to the root,
> using the php setcookie function as well as doing it through http
> headers.
> In each case the
> script WILL set the cookie on the computer, but it absolutely REFUSES to
> read it back up,
> even when called in the same exact scope.
>
> Yes, I've checked the spelling too, and the page is rather complex, with
> various nested includes and so forth.
> PHP version is 4.0
> I use both IE 5.5 and Netscape 6, it does the same thing in both of them.
>
> Any help or suggestions would be greatly appreciated, this has
> been bugging
> the hell out of me.
>
> Thanks.
> --Matt
>
>
>
> --
> 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:
On Wednesday 07 February 2001 22:42, Rodolfo Gonzalez Gonzalez wrote:
> I found a pgp class and took parts of it to work with gpg, but it > doesn't work in safe-mode. I'm using this pipe to pass the data to > encrypt to gpg: > > $comm = "echo '$data' | $this->gpg-commmand"; > $fd = popen("$comm","r");
> This returns echoes the part after the | in safe-mode.
echo only outputs something. it doesn't return anything. Write $comm = "$data | " . $this->gpg_command;
and: $this->gpg-kommand is an illegal (no minus in identifiers!)
-- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/)"Software is like sex: the best is for free" -- Linus Torvalds
attached mail follows:
I would like to run some php scripts with cron - email reminders. How can I do that?
Regards,
Janez
attached mail follows:
you will need to compile php as a binary ans use it to executethe scripts without using the browser.
search the mail archives from www.php.net . This question has been very nicely answered in the last couple of days only.
regards
Ankur Verma HCL Technologies A1CD, Sec -16 Noida, UP India
----- Original Message -----
From: "Janez Dovc" <janez.dovc
ijs.si>
To: <php-general
lists.php.net>
Sent: Friday, February 09, 2001 4:24 PM
Subject: [PHP] Runing php with cron
> I would like to run some php scripts with cron - email reminders. How can
I
> do that?
>
> Regards,
>
> Janez
>
>
> --
> 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'm receiving this error message: ------------------------- Warning: 1 is not a MySQL result index in /home/httpd/html/fiesc_test/fiesccontato.php3 on line 24 -------------------- From this line: --------------------------- $dados=mysql_query($sql) or die("Não Encontrados registros na Tabela 1."); -------------------------
What's wrong? He could't find any data?
thanks,
Augusto Cesar Castoldi
attached mail follows:
On Fri, Feb 09, 2001 at 09:26:17AM -0200, Augusto Cesar Castoldi wrote: > ------------------------- > Warning: 1 is not a MySQL result index in > /home/httpd/html/fiesc_test/fiesccontato.php3 on line 24 > --------------------
Whenever you see this message, echo the sql that you are using and also echo mysql_error() so you can see what is wrong with your query.
-- Jason Stechschulte jpstechunoh.edu -- That wouldn't be good enough. -- Larry Wall in <199710131621.JAA14907
wall.org>
attached mail follows:
The approaches i've so far using PHP is letting a script run (almost) infinitely and refresh the output every 500ms or so, but this will require a httpd-Process to run for every chatter, consuming several MB per User.
Any other suggestions which will cause less server load?
I don't think that refreshing the page on the clientside is a very clean solution, it really looks quite ugly.
-- Grüße aus dem schönen Kleve Jens Kisters+++++++ neue Anschrift +++++++
rosomm et partner Agentur für neue Medien GmbH Dienstleistungszentrum am Weißen Tor - Eingang B Gocher Landstrasse 2 47551 Kleve / Bedburg-Hau
Telefon: 02821 - 97856-20 Telefax: 02821 - 97856-77 j.kisters
rosomm-partner.de www.rosomm-partner.de
attached mail follows:
On Friday 09 February 2001 12:23, Jens Kisters wrote: > The approaches i've so far using PHP is letting a script run (almost) > infinitely and refresh the output every 500ms or so, but this will > require a httpd-Process to run for every chatter, consuming several MB > per User. > > Any other suggestions which will cause less server load?
Grab one of the many java IRC applets from http://freshmeat.net and run an irc server on your box. http wasn't designed for this type of thing.
-- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/)Google results 1-10 of about 142,000,000 for e. Search took 0.18 seconds.
attached mail follows:
> How does one build a big chat system? > Not in PHP :-). Really though, PHP is probably not the optimal language to do something like that in. I would think a Java Servlet or a C program or a Java applet (client) would be better for building something like that. PHP was not designed to keep a long script running and running, either was ASP, Perl or any scripting language. A Java program on the server or a Java applet in the browser would be better suited because it is used to running for the long periods of time that a chat program requires.
Michael
Jens Kisters wrote:
> The approaches i've so far using PHP is letting a script run (almost)
> infinitely and refresh the output every 500ms or so, but this will
> require a httpd-Process to run for every chatter, consuming several MB
> per User.
>
> Any other suggestions which will cause less server load?
>
> I don't think that refreshing the page on the clientside is a very clean
> solution, it really looks quite ugly.
> --
> Grüße aus dem schönen Kleve
> Jens Kisters
>
> +++++++ neue Anschrift +++++++
>
> rosomm et partner
> Agentur für neue Medien GmbH
> Dienstleistungszentrum am
> Weißen Tor - Eingang B
> Gocher Landstrasse 2
> 47551 Kleve / Bedburg-Hau
>
> Telefon: 02821 - 97856-20
> Telefax: 02821 - 97856-77
> j.kisters
rosomm-partner.de
> www.rosomm-partner.de
>
> --
> 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:
We started to build an Online-Mailclient using PHP and dicovered that there are quite a lot methods of encoding mails, does anyone have classes to decode MIME / ... (what other common methods are there?)
It would be great to extract Header, plain text, formatted text and maybe file attachments. Any hints?
thanks in advance Jens
-- Grüße aus dem schönen Kleve Jens Kisters+++++++ neue Anschrift +++++++
rosomm et partner Agentur für neue Medien GmbH Dienstleistungszentrum am Weißen Tor - Eingang B Gocher Landstrasse 2 47551 Kleve / Bedburg-Hau
Telefon: 02821 - 97856-20 Telefax: 02821 - 97856-77 j.kisters
rosomm-partner.de www.rosomm-partner.de
attached mail follows:
Hey guys, I have another problem... Now, when I try login to Mysql it says that my user-password is wrong :-( So I need to know what is the "equation" to delete, or to change, my password-user? What is the "equation" to insert a user after I delete my last user? Thank you again!!! Felipe Lopes MailBR - O e-mail do Brasil -- http://www.mailbr.com.br Faça já o seu. É gratuito!!!
attached mail follows:
can anybody please tell me which good IDEs are theee, that are optimized for PHP? It acztually doesn't need to do much more, than just code highlighting and line numbering for me purposes, althoug i would of course appreciate additionla features. thx in advance
attached mail follows:
I'm sticking my vote in for Edit Plus 2 (www.editplus.com), although there are approx. 1,000,000 editors that would be suitable for your needs.
I suggest a visit to www.download.com and a search for "text editors".
Cheers Jon
-----Original Message-----
From: Dennis von Ferenczy [mailto:ferenczy
web.de]
Sent: 09 February 2001 13:08
To: Php-General
Subject: [PHP] good free/cheap IDE for PHP
can anybody please tell me which good IDEs are theee, that are optimized for PHP? It acztually doesn't need to do much more, than just code highlighting and line numbering for me purposes, althoug i would of course appreciate additionla features. thx in advance
-- 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:
I use UltraEdit (ultraedit.com). It does syntax highlighting and ALOT more. The one feature that I REALLY like is the ability to treat files on my FTP as if they were local files. It greatly simplifies things, and speed up my development.
- John Vanderbeck - Admin, GameDesign
----- Original Message -----
From: "Dennis von Ferenczy" <ferenczy
web.de>
To: "Php-General" <php-general
lists.php.net>
Sent: Friday, February 09, 2001 8:08 AM
Subject: [PHP] good free/cheap IDE for PHP
> can anybody please tell me which good IDEs are theee, that are optimized
for
> PHP?
> It acztually doesn't need to do much more, than just code highlighting and
> line numbering for me purposes, althoug i would of course appreciate
> additionla features.
> thx in advance
>
>
> --
> 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 was wondering if PEAR is built into the Win distribuition of php 4.0.4pl1. Or can I download it somewhere, and where?
attached mail follows:
El Vie 09 Feb 2001 10:37, Conover, Ryan escribió: > I was wondering if PEAR is built into the Win distribuition of php > 4.0.4pl1. Or can I download it somewhere, and where?
PEAR is just a bunch of very good php code which you can include in your code. It comes with the source.
Saludos... ;-)
-- System Administration: It's a dirty job, but someone told I had to do it. ----------------------------------------------------------------- Martín Marqués email: martinmath.unl.edu.ar Santa Fe - Argentina http://math.unl.edu.ar/~martin/ Administrador de sistemas en math.unl.edu.ar -----------------------------------------------------------------
attached mail follows:
* The Hermit Hacker <scrappy
hub.org> [010208 21:39]:
> On Thu, 8 Feb 2001, Larry Rosenman wrote:
>
> > * The Hermit Hacker <scrappy
hub.org> [010208 21:12]:
> > >
> > > Simple ... everything compiles cleanly, but as soon as I try and run it, I
> > > get:
> > >
> > > pegasus# /usr/local/apache/bin/httpsd
> > > httpsd: module "mod_php4.c" is not compatible with this version of Apache.
> > > Please contact the vendor for the correct version.
> > >
> > > The only thing I can find on the list archives deals with a -DEPI switch,
> > -DEAPI
> >
> > Are you using Ports?
>
> Nope, compiling straight from source ...
>
> my configure is:
>
> #!/bin/tcsh
> setenv CFLAGS "-I/usr/local/include/gd"
> ./configure \
> --enable-force-cgi-redirect \
> --disable-debug \
> --with-jpeg-dir=/usr/local \
> --with-tiff-dir=/usr/local \
> --enable-ftp \
> --without-mysql \
> --with-gd \
> --with-pgsql \
> --with-gdbm \
> --enable-track-vars \
> --enable-sysvsem \
> --with-apxs=/usr/local/apache/bin/apxs \
> --enable-sysvshm
>
> Does anything look wrong with that?
>
> I build apache 1.3.17 as follows, just in case I screwed something up
> there ...
>
> #!/bin/sh
> ./configure \
> --prefix=/usr/local/apache \
> --with-layout=Apache \
> --enable-module=auth_dbm \
> --enable-module=log_agent \
> --enable-module=log_referer \
> --enable-module=expires \
> --enable-module=headers \
> --enable-module=rewrite \
> --enable-suexec \
> --suexec-caller=nobody \
> --add-module=mod_frontpage.c \
> --enable-rule=SHARED_CORE --enable-module=so
did you add mod_ssl? how did you add it?
LER
>
-- Larry Rosenman http://www.lerctr.org/~ler Phone: +1 972-414-9812 E-Mail: lerlerctr.org US Mail: 1905 Steamboat Springs Drive, Garland, TX 75044-6749
attached mail follows:
Anyone knows a good (can be a bad) site of PHP and WML?
regards,
Augusto Cesar Castoldi
attached mail follows:
This may help :
Building WML Applications Using PHP : ------------------------------------------------- http://www.zend.com/zend/tut/wap.php
WAP-Enabling a Website with PHP3 : ------------------------------------------------- http://www.devshed.com/Server_Side/PHP/PHP_WAP/
WAP In Perspective : ------------------------------------------------- http://phpbuilder.com/columns/markaw20001204.php3
Introduction to WML, Apache, and PHP : ------------------------------------------------- http://phpbuilder.com/columns/mike20010118.php3
As well as :
http://directory.google.com/Top/Computers/Mobile_Computing/Wireless_Data/WAP/
Regards,
Philip Olson http://www.cornado.com/
On Fri, 9 Feb 2001, Augusto Cesar Castoldi wrote:
> Anyone knows a good (can be a bad) site of PHP and WML?
>
> regards,
>
> Augusto Cesar Castoldi
>
>
>
> --
> 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:
Hi
Please help me
I don't knowk that is wrong, in this code, for ftp_fput Don't copy the archive, when copy the archive , this has other extension, and the size is 0kb.
<? $fp = ftp_connect('192.168.57.2', 21);
$con = ftp_login($fp, "mdiaz", "root1997");
$destino="public_html/abyayala/ftp/ftp";
$desti=ftp_chdir($fp,$destino);
$archivo="C:\\abm\\Abm.gdb";
$fpr = fopen ($archivo, "a+");
$subir=ftp_fput($fp,$archivo,$fpr,FTP_BINARY);
fclose($fpr);
ftp_quit($fp);
?>
Thanks.
Marisol Díaz E.
attached mail follows:
Hello
I need to know what mode i have to use, for coping a file with ftp_fput
$archivo="C:\\abm\\Abm.gdb"; $fpr = fopen ($archivo, "??????");
$subir=ftp_fput($fp,$archivo,$fpr,FTP_BINARY);
Marisol Díaz E.
attached mail follows:
WHy PHP is not showing SQL syntax (or any) errors?
I'm using Win98Me with Apache 1.3.12 and PHP 4.x.
it works... if I run a correct query it runs normally, but if I go like:
$query="selct nonexistingfield from nonexistingtable with all crazy syntax"; mysql_query($query);
it doesn't tell me there's an error... in fact it doesn't show anything...
why is that?
_________________________________
. Christian Dechery - Webdeveloper
.. Diretor de Tecnologia
Webstyle!
.. http://www.webstyle.com.br
.. http://www.tanamesa.com.br
attached mail follows:
El Vie 09 Feb 2001 11:38, Christian Dechery escribió: > WHy PHP is not showing SQL syntax (or any) errors? > > I'm using Win98Me with Apache 1.3.12 and PHP 4.x. > > it works... if I run a correct query it runs normally, but if I go like: > > $query="selct nonexistingfield from nonexistingtable with all crazy > syntax"; mysql_query($query); > > it doesn't tell me there's an error... in fact it doesn't show anything... > why is that?
Check the apache error log.
Saludos... ;-)
-- System Administration: It's a dirty job, but someone told I had to do it. ----------------------------------------------------------------- Martín Marqués email: martinmath.unl.edu.ar Santa Fe - Argentina http://math.unl.edu.ar/~martin/ Administrador de sistemas en math.unl.edu.ar -----------------------------------------------------------------
attached mail follows:
At 15:42 9/2/2001 +0100, Dominick Vansevenant wrote: >Try to put this immediately after the mysql_query: > >echo mysql_errno().": ".mysql_error()."<BR>"; > >I think this outputs your error.
yeah, I know that... but it used to report automatically... and this is
kinda stupid don't u think? there's no way someone can code having to stop
at every query line of code to see if there was an mysql_error()....
_________________________________
. Christian Dechery - Webdeveloper
.. Diretor de Tecnologia
Webstyle!
.. http://www.webstyle.com.br
.. http://www.tanamesa.com.br
attached mail follows:
On Fri, Feb 09, 2001 at 12:48:46PM -0200, Christian Dechery wrote: > yeah, I know that... but it used to report automatically... and this is > kinda stupid don't u think?
Yes, I do agree that it was kind of stupid to report automatically. It is much better to allow the user to trap the error and decide what to do.
-- Jason Stechschulte jpstechunoh.edu -- : I used to think that this was just another demonstration of Larry's : enormous skill at pulling off what other people would fail or balk at.
Well, everyone else knew it was impossible, so they didn't try. :-) -- Larry Wall in <199705101952.MAA00756
wall.org>
attached mail follows:
Hello All:
I am using a simple script to upload files to allow users to upload files to a website. All of the various scripts I have tried basicaly use the recommendations from the PHP manual regarding file uploads. The user posts a file, which is temporarily held in the temp directory specified by php.ini and then the system copies the files to it's ultimate destination directory. Everything works great with one exception:
All files that are uploaded get corrupted by adding the line:
"Content-Type:something/whatever" and a blank line below it
I am not sure what is causing this to be added to the files, php or apache but it is driving me nuts.
As a desperate measure I use a shell script to whack the two top lines off every file after they are uploaded, but this seems absurd.
Can anyone shed any light on this?
Cheers,
Jim
attached mail follows:
Hello everybody,
Could you perform fread() on a remote file? Example: $file = fopen("http://www.myurl.com/test.html", "rb"); $data = fread($file, filesize('http://www.myurl.com/test.html'));
???
Thanks! Tyler Longren
attached mail follows:
On Fri, Feb 09, 2001 at 09:02:04AM -0600, Tyler Longren wrote: > Could you perform fread() on a remote file?
Yes I could, and so can you, so why not try it?
An example:
$handle = fopen("http://www.php.net/manual/en/function.fread.php", "r"); while($line = fread($handle, 255)) { echo "$line"; } fclose($handle);
-- Jason Stechschulte jpstechunoh.edu -- One of the reasons Perl is faster than certain other unnamed interpreted languages is that it binds variable names to a particular package (or scope) at compile time rather than at run time. -- Larry Wall in <199709050035.RAA29328
wall.org>
attached mail follows:
Richard, > If that doesn't help, just start throwing out columns. Or throw them all > out and build it up 1 column at a time) until you find out which one it > doesn't like.
I have gone as far as creating a single table with a single alpa field. No luck there either. It gives me the exact same error.
> PS Am I to assume you actually have a working PHP<->AS400 connection? If > you could build a PHP/AS400 page, you would probably get much traffic. > People keep asking about AS400, and I've never even seen one.
I am succesfully selecting data from the AS400. But no insert yet. Haven't tried creating tables or anything else beyond that.
Karl *end of my reply*
----- Original Message -----
From: "Richard Lynch" <richard
zend.com>
To: <php-general
lists.php.net>
Sent: Thursday, February 08, 2001 8:21 PM
Subject: Re: [PHP] Insert Data AS400
> > I'm having troubles inserting records into our AS400. I've tried just
> about
> > every combination I can think of when trying to insert a record, but
> nothing
> > is working. Here is the most recent error I keep getting:
> >
> > Warning: SQL error: [IBM][CLI Driver][AS] SQL7008N REXX variable
"WBO230P
> "
> > contains inconsistent data. SQLSTATE=55019 , SQL state 55019 in
SQLExecute
> >
> > And here is the SQL command:
> > INSERT INTO WEBTEST.wbo230p (WOSTS, WOORD, WOCUS, WOST, WSNAM, WSAD1,
> WSAD2,
> > WSADX, WSAD3, WSSTA, WSZIP, WOPO, WODTTM, WONORD, WINVDT, WPHONE,
WEMAIL,
> > WSBSTA, WSAMT) VALUES ('1',0000000001,000001,0001,'t ','t ','t ','t ','t
> > ','t ','t ','t ',00000000000001,'t ','t ','t ','t ','t ','t ')
>
> Like, unless AS400/IBM/CLI/AS SQL is way different from SQL92, you either
> don't need WEBTEST, or there should be no .wbo230p, or you aren't telling
us
> that you are doing something funky like trying to insert into one database
> (WEBTEST) even though you are connected to another...
>
> But, even so, WEBTEST.wbo230p maybe be fine, and it's just one of those
> columns whose data it doesn't like.
>
> The question, of course, is which one.
>
> The leading 0's on WOORD and WOCUS and [mumble] look pretty darned
> suspicious to me. If those are integer, they should just be 1, not
000001.
> If they are *not* integer, you need apostrophes on them just like the
> others.
>
> If that doesn't help, just start throwing out columns. Or throw them all
> out and build it up 1 column at a time) until you find out which one it
> doesn't like.
>
> I dunno why SQL engines are so darned non-specific in their error
messages.
> My favorite:
> syntax error near ','
> Thanks guys! Like what non-trivial SQL statement *doesn't* have a
bazillion
> commas in it?!
>
> PS Am I to assume you actually have a working PHP<->AS400 connection? If
> you could build a PHP/AS400 page, you would probably get much traffic.
> People keep asking about AS400, and I've never even seen one.
>
> --
> Visit the Zend Store at http://www.zend.com/store/
> Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm
> Volunteer a little time: http://chatmusic.com/volunteer.htm
>
>
>
>
> --
> 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:
At 08:12 AM 2/9/2001, you wrote: lets see some code..
Okay, for those so inclined....
I did say the page the cookie script was included on was rather complex. I will say that I double checked and made sure the cookie variables weren't overwritten in another include file.
You can see what I mean by going to http://www.yaysoft.com (use IE if at all possible) and on the right side bar where it says "User Status" and has a message saying "You are not logged in" you can click on the login link below it. I created an account for anyone who wants to try (everything works except the login cookie) so you don't have to waste your time signing up with the script, note it is case sensitive: user name: php password: php after you click the login thing the cookies will be set and the page will not view them.
If you used IE and you navigate to c:\windows\temporary internet files or wherever your cookies are stored, you should notice that a cookie has been set... with the path set to the root "/" and the domain set to "www.yaysoft.com" but the cookies will not show up in the browser.
I have copied the script to a text file at http://www.yaysoft.com/yaylogin.txt
And for any who want to quickly glance at it, here is the code snippet where the cookies are set: if ($item[0]>0) { setcookie("ucrumb", $uname, time()+31536000, "/", "www.yaysoft.com", 0); setcookie("pcrumb", $pass, time()+31536000, "/", "www.yaysoft.com", 0); header("Location: http://www.yaysoft.com"); } else header("Location: $PHP_SELF?l_action=login&bad=1");
And here is a slice from where they are supposedly supposed to be accessed: // Now check to see if we are currently logged in to the Yaysystem... // First check to see if the variables plain out don't exist... if ((!$ucrumb)||(!$pcrumb)) { echo "You are not logged in.<br>"; echo "<font size=\"1\">"; echo "<br>[<a href=\"http://www.yaysoft.com/yaylogin.php?l_action=login\">Login</a>] "; echo "[<a href=\"http://www.yaysoft.com/yaylogin.php?l_action=new\">New</a>]"; echo "</font>"; // If they DO exist make sure they are a correct pair as per the database... } else {
However, I've outputted the contents of $ucrumb and $pcrumb once I get to the little segment where they are supposed to be accessed and they contain nothing, so it seems to me that they aren't being sent to the script (which resides in the root path where the cookie is set to!) I've used HTTP headers to set the cookies as well, and the problem still persists.
I know this is long and boring and tedious crap, so I don't really expect anyone to reply, BUT if any of you have the time or inclination, any help/suggestions/advice would be greatly appreciated.
Regards, Matt
attached mail follows:
Isn't default config for mysql to report syntax errors on queries and stuff
like that??... it always did, I never altered any config in mysql. And then
today it just STOPPED reporting errors.
_________________________________
. Christian Dechery - Webdeveloper
.. Diretor de Tecnologia
Webstyle!
.. http://www.webstyle.com.br
.. http://www.tanamesa.com.br
attached mail follows:
Anyone got any ideas on how to tell what the url you're at? One of my sites is for a bank with a bunch of branches, and when people go to a site for a branch, I want the "prequalify for loan" to know where the person came from (it's the same page for all branches, but it just has a select box) and make the location they came from be the selected one when the prequal page comes up. Whaddya think?
Thanks. Jason
attached mail follows:
Well... $PHPSELF gives the full url to the current webpage..so if you are at: http://gamedesign.incagold.com/index.php
then $PHPSELF = http://gamedesign.incagold.com/index.php
- John Vanderbeck - Admin, GameDesign
----- Original Message -----
From: "Jason Jacobs" <jason
factory7.com>
To: <php-general
lists.php.net>
Sent: Friday, February 09, 2001 10:40 AM
Subject: [PHP] how to know which web dir you're in
> Anyone got any ideas on how to tell what the url you're at? One of my
sites
> is for a bank with a bunch of branches, and when people go to a site for a
> branch, I want the "prequalify for loan" to know where the person came
from
> (it's the same page for all branches, but it just has a select box) and
make
> the location they came from be the selected one when the prequal page
comes
> up. Whaddya think?
>
> Thanks.
> Jason
>
>
> --
> 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:
Your best bet would probably be to use the environment variables
getenv("REQUEST_URI") will get you the URL minus the host name, so basically it's the relative path.
getenv("HTTP_HOST") will return the hostname (www.whatever.com)
Hope this helps.
Regards, Matt
At 09:40 AM 2/9/2001, you wrote: Anyone got any ideas on how to tell what the url you're at? One of my sites is for a bank with a bunch of branches, and when people go to a site for a branch, I want the "prequalify for loan" to know where the person came from (it's the same page for all branches, but it just has a select box) and make the location they came from be the selected one when the prequal page comes up. Whaddya think?
Thanks. Jason
-- 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:
I am not sure if this is the correct wording. But I am wondering about a good tutorial about writing a PHP script that will spider a directory structure and extract the file names and insert them into a database. Also this spidering would be done on a directory and its child with mp3 files and I would like to extract the ID3 tag from it. Any pointers to a good starting point/reference point would be greatly appreciated.
Thanks.
Chad
attached mail follows:
On Fri, 9 Feb 2001, Daniel Tryba wrote:
>On Thu, Feb 01, 2001 at 04:29:09PM -0800, Michael Conley wrote: >> I have several PHP files that I only want users to be able to access via >> HTTPS. How can I control that on an Apache 1.3.14 server running on RedHat >> 7? I have openssl and mod_ssl working fine. Currently, I can access all of >> the files on my site via either http or https. I want to keep certain files >> (with interesting information) from being accessed via http. I realize this >> isn't really a PHP question, but I have no idea how to do this. > >You could check on which port the request was made for the php file. >https is usually port 443 > >if ($SERVER_PORT!=443) > header("Location: https://server/$PHP_SELF");
While that will usually (99.9% of the time) work, this is closer to 100%: if(preg_match("!/^https/i", REQUEST_URL)) { ... }
But the other answer about seperating the server root of the SSL server and standard server is really, truely, a 100%-of-the-time solution since the files cannot be accessed any other way, and it doesn't require every page to be parsed by PHP, so you can isolate PDF, plain text, and graphic files as well as HTML.
-- ____________________________________________________________________________ Adam Knight <ahknightgraphitebox.com> AIM: AdamKnight ICQ: 3848971 ______________________________Codito, ergo sum______________________________ I'm not expendable, I'm not stupid, and I'm not going.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]