[PHP] Re: I get "headers already sent by" error each time I use setcookie function
It will fail if the first line is a blank line. For example (numbers are line numbers): 1. 2. While: 1. It should work... -- Julio Nobrega A hora está chegando: http://toca.sourceforge.net "Ha Minh Nguyen" <[EMAIL PROTECTED]> wrote in message 006701c12bbd$49a2bda0$[EMAIL PROTECTED]">news:006701c12bbd$49a2bda0$[EMAIL PROTECTED]... Hi, I don't know why I get : "Warning: Cannot add header information - headers already sent by (output started at c:\windows\bureau\cookie1.php:2) in c:\windows\bureau\cookie1.php on line 6" message each time I use setcookie function. The second line is : at the end of the file. Do you have any ideas ? Thank you, Ha Minh NGUYEN -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Printf fails on large files
He said no, here's the error: Warning: printf(): too few arguments in /htdocs/content.php on line 20 And here's the code. Remember that only fails on large files: SITUAÇÃO DA CAIXA POSTAL Resultado da Consulta para: . SITUAÇÃO DA CAIXA POSTAL\n\n"); $situacao = `ls -ld $login_usuario`; printf ("$situacao\n"); printf ("CONTEÚDO DA CAIXA POSTAL\n\n"); $conteudo = `mailx -H -f /var/mail/$login_usuario`; printf ("$conteudo\n"); } else { printf ("O usuário $login_usuario não foi encontrado.\n"); } ?> -- Julio Nobrega A hora está chegando: http://toca.sourceforge.net "John Meyer" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... At 05:14 PM 8/17/01 -0300, Inércia Sensorial Trabalhando wrote: > Hi All, > > A friend of mine said his printf is failing when he parses a variable from >a 4.5 mega file. On smaller files, it works fine. > > There's a limit on the printf or somewhere else? > > Thanks. Is he throwing the _entire_ 4.5 MB file into that variable and trying to print that? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Printf fails on large files
Hi All, A friend of mine said his printf is failing when he parses a variable from a 4.5 mega file. On smaller files, it works fine. There's a limit on the printf or somewhere else? Thanks. -- Julio Nobrega A hora está chegando: http://toca.sourceforge.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: "searching" arrays
in_array(); -- Julio Nobrega. 2B||!BB - That's the question. "Raphael Pirker" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi, > > Is there a possibility to search arrays in PHP? For example I'd like to find > out the index-number of > > $countries["singapore"]; > > but only if that country exists in the array. > > TIA, > > Raphael > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: saving the client's file upload location
On the form processing page, register the variable on a session. And put session_start(); on the form's page, so the value is remembered and echo()ed on the field. -- Julio Nobrega. 2B||!BB - That's the question. "Bob" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > i have people upload a file from their computer but if my form comes > back with an error then they have to go select their file location > again. is there any way of saving that location so they don't have to > pick it again??? > upload file [ c:/temp/picture.jpg ] > > > > > _ > Do You Yahoo!? > Get your free @yahoo.com address at http://mail.yahoo.com > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: PHP to embed font
Here's how, but it does not use PHP: http://cnet.com/webbuilding/pages/Authoring/Typography/ss01.html -- Julio Nobrega. 2B||!BB - That's the question. "Admin" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Is there anyway to use PHP to embed font types into web pages to the person > visiting the page sees what you want them to even if they dont have the > same fonts on their computer. > Pat > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: server run page
I have seen this question before on a brazilian newsgroup I visit, and the only solutions we came (without going away from a default php installation) is to use the function include(); (and similars) or sessions. If anyone knows a different way, I would also be interested to know, to inform my friends from the other news. -- Julio Nobrega. 2B||!BB - That's the question. "Lolodev" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]... > i m beginner with php. > > i developp under asp or cold fusion. > with this language, when you request a page, the server runs automatiquely a > page: global.asa with asp and application.cfm with cold fusion. > > can i do the same thing under php ? > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: Passing LARGE (1500-2500 chars) variable from JScript to PHP?
I don't think it is possible to pass so much chars in a href, or URL for the matter. Is it really necessary? Couldn't you first write somewhere (db/file) those chars and retrieve it later, referencing it on the href? -- Julio Nobrega. 2B||!BB - That's the question. "News.Fbcc.Com" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]... > I want to pass a large (easily 1500-2500 characters) variable between a > DHTML object using Jscript over to a PHP script to ultimately update a MySQL > database. I know that I can pass a variable along with the link, i.e. > location.href=etc. etc., but I believe there is a limit on the size of an > href. What I am doing is editting text and am using MSIE specific functions > to create HTML on the fly which I then want to pass to a PHP script to > update my database. > > Any help would be SINCERELY appreciated!! > Merci, (or is that mercy?) > Andre > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: submit form problem
I haven't found a way to disable the Enter key to submit the form, as I believe it does exists, but, found a way so when Enter is pressed works like Tab, moving to the next form field. Here: http://www.faqts.com/knowledge_base/view.phtml/aid/6793/fid/129 Google search used: http://www.google.com/search?q=javascript+disable+enter+form&sourceid=opera&; num=0 Sadly, it is Javascript, so an user can disable, but for those mistake key presses, should work. -- Julio Nobrega. 2B||!BB - That's the question. "Ivo Stoykov" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]... > Well, here's the problem I faced. > > I've a script accepting four different forms depending on the user choice. > Some of the forms have two submit buttons forcking actions accordingly to > the pressed button. > > The problem is: $HTTP_POST_VARS["submit"] is not set if the user press ENTER > instead of clicking the button and the scripts cannot return a response for > it is not clear which button has been pressed. > > Hidden field cannot works with two submit buttons for I'll have two values, > but again cannot cach the user choice in case of ENTER press. > > Any help? Thank you > > Ivo > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: htaccess & php
Here: http://hotwired.lycos.com/webmonkey/00/05/index2a.html?tw=programming -- Julio Nobrega. 2B||!BB - That's the question. "Chris Kay" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > Hi > > My question is that i am about to start a database and i have been asked to > make the login/password like htaccess, now they also want to be able to > modify passwords ect so i was going to do it with mysql. > > I have seen or been told that there is something where you can use sql/php > and make it use something that look like htaccess but is not. > > is this true? > > if so where would i start looking for something along these lines.. > > Answers/Comments welcome > > > > > Chris Kay - Tech Support - IDEAL Internet > email: [EMAIL PROTECTED] phone: +61 2 4628 fax: +61 2 4628 8890 > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: PHP in corporate settings?
I don't think the problem is the open source nature. Corporate people usually do not see flaws on it. But they do not see the advantages too because there is little advertising. -- Julio Nobrega. 2B||!BB - That's the question. "Jeff Lewis" <[EMAIL PROTECTED]> wrote in message 00dd01c1203b$60d62210$76a1a8c0@LEWISJCIT">news:00dd01c1203b$60d62210$76a1a8c0@LEWISJCIT... I still rarely ever see PHP mentioned in job listings and the like. Especially here in Canada I find it very hard to find any kinds of contacts for companies using PHP. My previous employer that I was with for 3+ years insisted on Micro$oft products and wanted to go with ASP. My current employer, a HUGE media/newspaper in Ontario goes with strictly Java. Is it that people still are hesitant to go wth open source based technology? Jeff Lewis -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: Newbie: Simple site search >> To bit more Complex...
You might want to have a look on this script: http://www.digitalgenesis.com/software/dgssearch.html It can search specified directories/file extensions/databases, or deny search for the same, and many other options. -- Julio Nobrega. 2B||!BB - That's the question. "Steve Wright" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hey, > > I have just developed a simple site search.. .and am after learning how to > get it to search all directories... at present, it only searches the one it > is in!! > > > Here's the code: > > include("include/common.inc"); > $title = "Search"; > include("include/header.inc"); > ?> > > " METHOD="POST"> > " >SIZE="20" MAXLENGTH="30"> > > > > if ( ! empty($searchstr) ) { > // empty() is used to check if we've any search string > // if we do, call grep and display the results. > echo "\n"; > // call grep with case-insensitive search mode on all files > $cmdstr = "grep -i $searchstr *"; > $fp = popen( $cmdstr, "r" ); file://open the output of command > as a pipe > $myresult = array(); // to hold my search results > while( $buffer = fgetss ($fp, 4096 )) { > // grep returns in the format > // filename: line > // So, we use split() to split the data > list($fname, $fline) = split(":",$buffer, 2); > // we take only the first hit per file > if ( !defined($myresult[$fname])) > $myresult[$fname] = $fline; > } > // we have results in a hash. lets walk through it and print > it > if ( count($myresult) ){ > echo "\n"; > while(list($fname,$fline) = each($myresult)) > echo " >$fname : $fline \n"; > echo "\n"; > } else { > // no hits > echo "Sorry. Search on $searchstr > returned no results.\n"; > } > pclose($fp); > } > ?> > include("include/footer.inc"); > ?> > > > > I think it centers around the line whcich contains but am not definate: > while( $buffer = fgetss ($fp, 4096 )) { > > > Any help much appreciated.. > > Steve Wright > > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Cookies and servers problems
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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: Attitude of B van Ouwerkerk
When on mailing lists such discussion get longer and longer, like 'Attitude of B van Ouwerkerk', I always remember of this email. Could everyone give a moment of thought and get back to the purpose of this list? I know that this includes myself too, which I apologize for my behavior: Q: How many mailing list subscribers does it take to change a light bulb? A: Thousands! 1 to change the light bulb and post to the list that the light bulb has been changed. 14 to share similar experiences of changing light bulbs and how the light bulb could have been changed differently. 7 to caution about the dangers of changing light bulbs. 27 to point out spelling and grammatical errors in posts about changing light bulbs. 53 to flame the spell checkers. 156 to write to the list administrator complaining about the light bulb discussion and its inappropriateness to this mail list. 41 to correct spelling in the spelling/grammar flames. 109 to post that this list is not about light bulbs and would they kindly take this email exchange to alt.lite.bulb. 203 to demand that cross posting to alt.grammar, alt.spelling and alt.punctuation about changing light bulbs be stopped. 111 to defend the posting to this list saying that we all use light bulbs and therefore the posts **are** relevant to this mail list. 306 to debate which method of changing light bulbs is superior, where to buy the best light bulbs, what brand of light bulbs work best for this technique, and what brands are faulty. 27 to post URLs where one can see examples of different light bulbs. 14 to post that the URLs were posted incorrectly, and to ask for corrected URLs. 3 to post about links they found from the URLs that are relevant to this list which makes light bulbs relevant to this list. 33 to summarize all posts to date, then quote them including all headers and footers, and then add "Me Too." 12 to post to the list that they are unsubscribing because they cannot handle the light bulb controversy. 19 to quote the "Me Too's" to say, "Me Three." 4 to suggest that posters request the light bulb FAQ. 1 to propose new alt.change.lite.bulb newsgroup. 47 to say this is just what alt.physic.cold_fusion was meant for, so leave it there. 143 votes for alt.lite.bulb. 27 to post in HTML because they are using the IE or Netscape that had it turned on by default and are too clueless to look. 48 to complain about the HTML posts. 27 to post 'sorry I didn't realize it was on' -- in HTML. 96 to complain about more HTML and post detailed instructions on how to change the setting. 58 to mumble something about using a web browser to read mail. 12 MIME posts with useless colors and bolds saying thanks for the help with the HTML mail. 1 to post a GIF/JPG of the lightbulb hanging too close to his digital camera. 58 to complain about the binary post. 14 to say they liked the binary and didn't mind it. 1 post about how you can M*A*K*E M*O*N*E*Y FA$T! by selling lightbulbs and this report available for only $5. 1328 to reply to the list with the full spam attached and then put 'remove' at the end. 3 to flame the other morons for replying to the spammer and CC'ing the list. 1 from the list admin notifying that the list is looking for a bigger server to handle the load. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: Spot the difference?
FUD! "Kyle Smith" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Whats the difference between ASP and PHP cause ASP has gotta have something good about it cause microsoft uses it! -lk6- http://www.StupeedStudios.f2s.com Home of the burning lego man! ICQ: 115852509 MSN: [EMAIL PROTECTED] AIM: legokiller666 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Adopt A Newbie (ME)
"Kyle Smith" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]... > zillion is actually a number? Yes, a number performed by some old cartoon, anime style :-) > i just downloaded a program which reads out > text for you cause it just gets really boring reading the text, so now its > goinfg to be like having a techer in the room... you got a gun? A Zillion gun? In fact I do! Okay Kyle. I know the list is an amazing place to solve your doubts. By I highly recommend you read some tutorials first. Go to www.hotscripts.com/PHP , section 'Tips and Tutorials', and read, maybe on this order: 1) Introduction to PHP, Form Processing, Data and Time, Counters, Mailing Lists, Database-Related, Sessions. If you go for it (reading), you can finish them in 3 or 4 days. In one week, almost all of your previous asked questions here will be answered. That's not only to save our bandwith, but, you sure need to develop other ways to find the information you need on the internet ;-) > > > -lk6- > http://www.StupeedStudios.f2s.com > Home of the burning lego man! > > ICQ: 115852509 > MSN: [EMAIL PROTECTED] > AIM: legokiller666 > > > - Original Message - > From: "B. van Ouwerkerk" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Thursday, August 02, 2001 6:53 AM > Subject: Re: [PHP] Adopt A Newbie (ME) > > > > At 13:36 2-8-01 -0700, Kyle Smith wrote: > > >Ok, im trying to cut down on the posts here but this time im really > stuck, > > >so could somebody guide me through the usage of mySQL and PHP and show me > > >how to input data into a mySQL database and read it, or just redirect me > > >to another page (which is what normally happens) > > > > > >NOTE: i am using phpMyAdmin > > > > www.devshed.com > > php newbie php beginner phpbuilder > > > > Just go through the tutorials.. you'll see.. much more fun then sending a > > zillion messages to this list. > > > > Bye, > > > > > > B. > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: Multi Uploads
Use the source, Luke! Okay, not quite easy. You have this option to accomplish multi-uploads. But, as an user, I think it is better to have only one Upload Field, and one browse/submit button. When I choose a file, the page is reloaded, with information about the file I just uploaded, and two options. Either upload another or click at somekind of 'Done with Uploading' button. Pretty much like when you attach something using Hotmail's email, or at www.delphi.com and attach stuff too. But that is just my opinion... "Gary" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I have a page that clients are able to up load to their site. I want to > elimanate have? a bunch of upload buttons. How would I go about using only > one button for uploads without losing the browse button for each form > object? Better yet how would I have the client enter a number for the > number of uploads they want? Yes you can RTFM me :) > > TIA > Gary > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: Fun Question - What if...
"Michael J. Seely" <[EMAIL PROTECTED]> wrote in message news:a04320400b78e010dcf12@[208.37.135.187]... > HI FOLKS, > > Imagine you had a PC Laptop, PHP installed, and a Ricochet/Sierra > Wireless AirCard 400 - 128 kbps NIC card. > > What boom pow applications can you imagine setting up and running > in this environment? What else would you need, if anything? A mailing list to announce! ;-) I didn't quite get what you are trying to accomplish here... > > Thanks - Mike > -- > > _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ > Michael Seely 408-777-9949 > > > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Re: How can I make a Loading... screen?
Something like: http://www.javascript-tricks.com/loading.html Found at Google, searched for 'page loading javascript'. There are more complex options, like with a bar graph. "Michael Champagne" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Thanks for the response. The only problem is that the page that I'm waiting > on is already a popped up window, so I'd hate to open up another popup window > on top of that to say that the first one is loading. Is there a way to do > this within the same window? > > Thanks! > Mike > > > I did this myself, for the exact same reason. First I define this > > javascript in my page: > > > > function itsThinkingOpen() { > > > > imgWindow=window.open("thinking.htm","thinkingWindow","toolbar=no,scrollbars > > =no,resizable=no,width=400,height=200"); > > } > > > > function itsThinkingClose() { > > imgWindow.close(); > > } > > > > and then at the beginning of the page, before the search begins, in php I > > put > > echo "itsThinkingOpen()"; > > > > and after the code to search the database I put > > echo "itsThinkingClose()"; > > > > It works fine here. > > > > Keith Jeffery > > [EMAIL PROTECTED] > > > > "Michael Champagne" <[EMAIL PROTECTED]> wrote in message > > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > > I have a popup window that populates a table with rows from a database and > > it > > > normally takes about 15 to 20 seconds to load. Does anyone know how I can > > > display a 'Loading... Please Wait.' that will disappear once the data > > comes > > > up? > > > > > > Thanks in advance for any responses, > > > Mike > > > > > > > > > > > > ** > > > This communication is for informational purposes only. It is not > > > intended as an offer or solicitation for the purchase or sale of > > > any financial instrument or as an official confirmation of any > > > transaction, unless specifically agreed otherwise. All market > > > prices, data and other information are not warranted as to > > > completeness or accuracy and are subject to change without > > > notice. Any comments or statements made herein do not > > > necessarily reflect the views or opinions of Capital Institutional > > > Services, Inc. Capital Institutional Services, Inc. accepts no > > > liability for any errors or omissions arising as a result of > > > transmission. Use of this communication by other than intended > > > recipients is prohibited. > > > ** > > > > > > > > > > -- > Michael Champagne, Software Engineer > Capital Institutional Services, Inc. > wk: [EMAIL PROTECTED] > hm: [EMAIL PROTECTED] > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: Directories & Files
There's an exemple right on the manual, function opendir();: if ($dir = @opendir("/tmp")) { while($file = readdir($dir)) { echo "$file\n"; } closedir($dir); } -- Julio Nobrega. 2B||!BB - That's the question. "Karl J. Stubsjoen" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > GlacierI need to do a few things with files... 1 of them being to iterate > through a directory and display each file. How do you do this? > > > Karl J. Stubsjoen > www.iexcelinlife.com > [EMAIL PROTECTED] > Phone: 602.447 > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: HELP!! What wrong with this code...
Escape the double quotes inside the echo "Your feedback has been sent to mailto:$address\";>$name"; -- Julio Nobrega. 2B||!BB - That's the question. "Steve Wright" <[EMAIL PROTECTED]> wrote in message 02c401c119db$b76a1700$0615fea9@COM">news:02c401c119db$b76a1700$0615fea9@COM... Hey, i am getting an error passed back for this line of code, the rest of the code is below: echo "Your feedback has been sent to mailto:$address";>$name"; the error is: Parse error: parse error, expecting `','' or `';'' in /www/customers/stevewrightonline.co.uk/form/do_sendform.php on line 20 Does anyone know y this is?? If i remove the a href tags it works fine. Can you not use links properly in PHP?? -- \n"; $mailheaders = "Reply-To: $sender_email\n\n"; /*The Message*/ $msg = "Sender:\t mailto:$sender_email \t $sender_name\n\n"; $msg = "Message:\t$message\n\n"; /*Mail to Me*/ mail($recipient, $subject, $msg, $mailheaders); /*Onscreen confirmation of sending*/ echo "Form Sent!"; echo "Thank You, $sender_name"; echo "Your feedback has been sent to mailto:$address";>$name"; echo ""; ?> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: Revision Tracking - program concept
I guess, you could create a table with some colums like, 'last_modified', 'who_modified', 'document_path'. Then when someone makes a change, you save this changed document in a folder with the name of the document, so it is easy, folder by folder, to find all modified documents. You can even put some kind of 'log' file on each folder, recording what has changed, if the second person does all changes, or create another mysql colum. Save every document with a different name (might be useful to store on format date_name.extension, to be useful sortable by date), and update the mysql table. Ops, first update the table, generate an ID by auto_increment, saving this ID on the 'log' file, to keep track of changes. -- Julio Nobrega. 2B||!BB - That's the question. "Dave Freeman" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > G'day All > > I'm writing an application for an intranet environment. At the moment I'm > writing a document control system. The intention is that people will be > able to check in documents (generally created in MS Word from > templates) and the app will upload them to the server. > > The process related to this involves other people then checking the > documents back out and making appropriate changes based on their > responsibilities and then checking the documents back into the system > again. > > What I would like to do is keep track of each revision of these documents > (ie. actually provide a capability to review earlier revisions, or, indeed, > revert to earlier revisions). > > At this stage I am planning to track information about each document in > an SQL table but not actually store the binary data in the table (there are > additional reasons behind this). > > The only solution I've come up with that will easily implement some sort of > revision system would be to store only the last five, for example, revisions > and then use duplicate SQL tables to store older iterations of the > document with suitable links in the SQL back to the current version. > > Can anyone suggest an alternate approach that will let me do this? > > More from a program logic point of view than from an actual code example > point of view really. I guess that makes this close to off-topic but there > you go - hopefully it won't be considered too out of place. > > CYA, Dave > > > --- > Outback Queensland Internet - Longreach, Outback Queensland - Australia > http://www.outbackqld.net.au mailto:[EMAIL PROTECTED] > --- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: A PHP Editor
I like to use PHPCoder, www.phpide.de -- Julio Nobrega. 2B||!BB - That's the question. "Augusto Cesar Castoldi" <[EMAIL PROTECTED]> wrote in message Pine.GSO.4.10.10107271605490.2482-10@minerva">news:Pine.GSO.4.10.10107271605490.2482-10@minerva... > Hi. > > I'm using the PHPEd (http://www.soysal.com/PHPEd) as my default editor. > > But this program aren't very good, it's instable. Something crash... > > Do you know a good php editor? > > thanks, > > Augusto > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: Frames, Sessions & Search Engines
Search Engines, usually, do not see individual frames. Not even Google, the (IMHO) best and largest one, do not. For example, if one page link to page.php and this page uses frames, and the search engine robot crawls to page.php, it will not index the individual frames. You can, however, especify a tag, or similar, I might be wrong on the wording, to generate some text, link or image for agents that can not see frames. On it, you might put some kind of link to a non-frame page. But on your specific question, might be useful to ereg() the $HTTP_REFERER, and if it does not find a browser, you can header(); to some place. I say ereg() the browsers because they exist in less numbers than search engines... It might be a little difficult to find them all, but I guess it is worth, if you go for this direction. Might exist 20 or 30 browsers anyway... (browscap.ini is helpful to find out). If you do not go for this solution, just remember most (almost all) search engines will not index the individual frames on your document. -- Julio Nobrega. 2B||!BB - That's the question. "Jeroen Geusebroek" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi there, I have a question about how Search Engines handle sessions and frames. Since my site uses frames, and i think search engines link to pages individualy and not the frameset, i wanted to use sessions to indicate if a user comes from a search engine (then it doesn't have a valid session) and if so just redirect the user to the main page. But i'm afraid that search engines will get redirected to the main page everytime it try's to index a page. What do you all think, and might there be another solution? Thanks, Jeroen Geusebroek P.S. Please CC me in your reply, i'm not a member of the list. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Example high-profile PHP sites
It is a great strategy if you have such client. I know of Amazon.com is using in some parts, processes on the background, and also Epinions.com. I believe their (epinions) template system is based on php. If you wish, the 3rd largest brazilian 'portal', www.ig.com.br, also uses it. It gets millions of pageviews daily. -- Julio Nobrega. 2B||!BB - That's the question. "Maurice Rickard" <[EMAIL PROTECTED]> wrote in message news:p05001914b785ffb082a7@[192.168.1.102]... > While I do appreciate people's contributions, let me frame the > discussion a little. The person I need to convince is an > administrator of an organization within North America, and he's never > heard of PHP. The response I'm hoping to provoke in him is something > like this: "You mean _ is using this PHP thing? Wow! They > know what they're doing, so we'd better use it, too!" > > Does this help frame things? Thanks for the suggestions! > > -Maurice > > At 10:59 AM -0600 7/26/01, Unni wrote: > >If every one is giving their website about mine > >http://www.malayalamovies.com > -- > Maurice Rickard > http://mauricerickard.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Unlink Woes
Run the function phpinfo(); -- Julio Nobrega. This is a man's world. But it would be nothing. It would be nothing without a woman or a girl. "Sheridan Saint-Michel" <[EMAIL PROTECTED]> wrote in message 02d101c1113d$f7a5ccc0$[EMAIL PROTECTED]">news:02d101c1113d$f7a5ccc0$[EMAIL PROTECTED]... > How can I find out if my server is in Safe mode? Do I have to call my Host > and ask them? > > Sheridan > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: please help.
Look at a folder named 'Benchmark' that comes with php's PEAR. It has a file named Time.php, and it has nice instructions about how to use it. -- Julio Nobrega. Because happiness is a warm gun Bang-bang shoot-shoot "McShen" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > hi > > I wanna see how long my scripts load. So, i copied this script from > phpbuilder > --- >$timeparts = explode(" ",microtime()); > $starttime = $timeparts[1].substr($timeparts[0],1); > $timeparts = explode(" ",microtime()); > $endtime = $timeparts[1].substr($timeparts[0],1); > echo bcsub($endtime,$starttime,6) > ?> > -- > > But i am not sure where to put that part. Can i put it anywhere within my > script? And bcsub() is not install on my server. What other fuctions can i > use? can i just use $endtime-$starttime? > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: PHP and XHTML
echo '<'."?xml version=\"1.0\" encoding=\"UTF-8\"?".'>'; Also, you may set short open tags off so php is only activated between . -- Julio Nobrega. Because happiness is a warm gun Bang-bang shoot-shoot "Daniel Rose" <[EMAIL PROTECTED]> wrote in message 004301c10f49$a9b18fe0$0a01a8c0@w98">news:004301c10f49$a9b18fe0$0a01a8c0@w98... > Hi, > I have looked through the history of the list, and I see that several people > have said that PHP fully supports XHTML. I have some problems using XHTML > with PHP, namely parse errors, such as a parse error on the first line of > every XHTML doc. > > > Version of PHP is 4.0.6, and it was compiled like so: > './configure' '--with-apxs=/usr/local/apache/bin/apxs' '--with-xml' > '--with-gd=/usr' '--with-jpeg-dir=/usr/local' '--with-png-dir=/usr/local' > '--with-zlib' '--with-mysql' '--enable-track-vars' '--with-mcrypt' > (all from phpinfo()) > > Does anyone have any ideas? > Please CC replies as I am not subscribed to the list > Sincerely, > > Daniel Rose > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: Code running function
eval(); ? -- Julio Nobrega. Because happiness is a warm gun Bang-bang shoot-shoot "B R" <[EMAIL PROTECTED]> wrote in message 005501c10ee3$e82b4740$c6655ad1@Test4">news:005501c10ee3$e82b4740$c6655ad1@Test4... > I know there's a function that takes a string argument and runs it as PHP > code. > i.e. function_name('echo $variable;'); > > I just can't remember what it is. Does any know? > > > _ > Do You Yahoo!? > Get your free @yahoo.com address at http://mail.yahoo.com > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: free email providers
Hi, I am not trying to discredit your decision to don't accept free emails, but look for example my situation. The only email accounts I have are on free email providers. I also connect to the internet using a free ISP, so there's no pratical reason to use a paid email. So it would be impossible to confirm my account on your service. If it is a public service, where anyone can sign up, I think yo should reconsider your decision, unless there is a strong reason behind to not do it... -- Julio Nobrega. Because happiness is a warm gun Bang-bang shoot-shoot "Egan" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi, > > I need to prohibit free email address domains when verifying account > information via email, and I found this list of free email providers: > > http://www.fepg.net/ > > > Does anyone know of other lists, or better yet, have a text file of > free email domains? > > > Egan > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: Confusion abounds here
Spaces or new lines can give this problem also. For example (left numbers are lines): 1. 2. Might give errors because of the first line (wich is empty). Check if the file logs.php doesn't have this problem. -- Julio Nobrega. Because happiness is a warm gun Bang-bang shoot-shoot "Tom Malone" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I just renamed a directory on my webserver (apache) and then did a > search&replace in my text editor to update all my files then uploaded them. > Now I am getting the following error on a page I am using to display all the > rows in a database that contains session data: > > Warning: Cannot send session cache limiter - headers already sent (output > started at /home/tgmalone/public_html/admin/logs.php:1) in > /home/tgmalone/public_html/admin/logs.php on line 1 > > but I'm not trying to send any headers! (or am I?) > > Confused! > Tom Malone > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Multiple languages
Hi All, I want to enable multiple languages on one of my scripts, so administrators or visitors can choose in what language they want to browse the site. I have seen a few ways to do it, like with switch, define or querying databases. But, considering performance, what is the best way to make a script with multiple languages? Thanks for any ideas. -- Julio Nobrega. You're asking me will my love grow, I don't know. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Re: Confirmation Requester
http://www.bosrup.com/web/overlib/ -- Julio Nobrega. You're asking me will my love grow, I don't know. "Dave Freeman" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... On 13 Jul 01, at 21:47, Inércia Sensorial wrote: > Maybe a pop-up or a CSS/javascript box with a 'true delete' link (That > would be elegant :-)). Yep, that's what I'm planning on - got any references on actually doing it? I'm still learning about this sort of stuff and it really helps to see working examples - or references to relevant code snippets etc. CYA, Dave --- Outback Queensland Internet - Longreach, Outback Queensland - Australia http://www.outbackqld.net.au mailto:[EMAIL PROTECTED] --- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Web application?
I am sorry, maybe going a little off-message here, but what would do you mean by eliminate 'table-scans'? -- Julio Nobrega. You're asking me will my love grow, I don't know. "Christopher Ostmo" <[EMAIL PROTECTED]> wrote in message news:3B4F343A.18504.2376C59B@localhost... > As Rasmus stated earlier in this thread, "You need to concentrate on > making an efficient schema and making sure you eliminate table-scans, > etc." -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: Confirmation Requester
Maybe a pop-up or a CSS/javascript box with a 'true delete' link (That would be elegant :-)). -- Julio Nobrega. You're asking me will my love grow, I don't know. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Error Message with sessoin variables.
Windows plataform? I was getting this error and solved by creating a dir named 'tmp', so create: c:\tmp That's where the session files will be stored... I think it's configurable in php.ini. -- Julio Nobrega. You're asking me will my love grow, I don't know. "Johnny Nguyen" <[EMAIL PROTECTED]> wrote in message 000e01c10be5$8960bfc0$[EMAIL PROTECTED]">news:000e01c10be5$8960bfc0$[EMAIL PROTECTED]... > I place at the top of my page and get this > > Warning: open(/tmp\sess_4821f31846678b2eda49a625b76ca14c, O_RDWR) failed: m > (2) in w:\apache\loginform.php on line 1 > Can somebody help? Do I need to make any changes to php.ini to get sessions > working? > Regards, > Johnny > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: Using an image as a reset button on a PHP script
From the html 4.1 manual (only saying this cause I don't know if it will work on agents that only support previous html versions)... Reset -- Julio Nobrega. You're asking me will my love grow, I don't know. "Brandon Orther" <[EMAIL PROTECTED]> wrote in message 01aa01c10be5$5d32ef40$5a52a040@webintel">news:01aa01c10be5$5d32ef40$5a52a040@webintel... > Hello, > > I am making a script at the moment and want to use images instead of the > usual buttons. Does anyone know how I can use the image as a reset > button? > Thank you, > > > Brandon Orther > WebIntellects Design/Development Manager > [EMAIL PROTECTED] > 800-994-6364 > www.webintellects.com > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Re: $HTTP_REFERER < 10
Thank you Scott for the various ideas. I am preventing an eventual 'no referer' situation with a default url provided by who opens an account. I am getting (and trying to give :)) help on this list, so I will ask first before doing... Is it normal to announce personal projects here? This one is an open source referer system, where you can build a website to offer 'recommend' services to other people. When is it ready, can I post here? And maybe for some other projects too ;-) -- Julio Nobrega. One and One and One is Three "Scott" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > a partial suggestion would be to try an fopen() on the > HTTP_REFERER if it was a static document like .html or .txt > > but if someone is being redirected from a CGI script or > dyanmic page of any sort, it'll be virtually impossible > to find out exactly where they came from and if that > page is valid or not. > > or you could try to determine the host name of HTTP_REFERER, > then perform an nslookup of that hostname to determine if > it exists and is valid. > > but both of those will probably give your script a > rather nasty performance hit while still not being > 100% reliable. > > you can find out if the referrer *looks* OK, but there's > virtually no way you can find out 100% if the referrer > is actually where the user came from, and if it's an > actual page somewhere out there on the internet... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: $HTTP_REFERER < 10
That's also something worth to be done, but first I need to know some possible variations of $HTTP_REFERER... I never saw one, when coming from another domain, without the 'http://'´part, so that's a regex to check, but I may be wrong... -- Julio Nobrega. One and One and One is Three "Elias" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Maybe what you say about smallest refeerer length is true... > but why don't you check via regexps the validity of the REFEERER format only > if it was set? > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] $HTTP_REFERER < 10
Is it possible? I am writing a recommend script, and I already know that the $HTTP_REFERER can come empty or even not set, tested turning off the 'Enable Referer Logging' on Opera. But, an invalid $HTTP_REFERER is also one smaller than 10 characters? I believe the smallest referer you can have is 'http://a.jp', for example, but I am not sure. Anyone saw a smaller $HTTP_REFERER or have any other ideas to check if it is invalid? -- Julio Nobrega. One and One and One is Three -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: Login system
I have used this one with success, mysql and multi-level authorization support: http://www.phpsecurepages.f2s.com/ Can lock individual pages or parts of it with a little modification or well placed include();s. Also, about forms and session IDs, simple solutions would be pass the SID on the form's action or get the session ID and pass it as a hidden input field. -- Julio Nobrega. One and One and One is Three -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Speed of loding PHP pages
No. It also depends on the internal engine used by the browser to 'contruct' the elements. On Windows plataforms, Netscape are slower to render cached pages. But IE has an advantage, it is built around some native windows functionalities, one of the reasons it is faster. I don't know for other plataforms tought. Anyway, Opera is the fastest :-) Also the new engine from mozilla (not NS 6.0), is fast, but since it is not to be considerable a final release, even most recent ones, I can't imagine what the future might bring. -- Julio Nobrega. One and One and One is Three "Brian S. Dunworth" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > Are IE and Netscape both set the same as far as caching? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: examples of using PHP to control .htaccess
Once I was looking for a similar solution and found none enough powerful to my needs. Anyway this was the only satisfactory that I found: http://php.vamsi.net/show_source.php?url=htpasswd_admin.php Also if you have Perl/CGI, you can use this one (much better, including admin interface, and still free): http://www.awtrey.com/support/scripts/htpass.php There are tons more written in Perl, but they are paid. I made a search on hotscripts.com, lots of results and prices aroound 30 dollars: http://www.awtrey.com/support/scripts/htpass.php -- Julio Nobrega. Yes, another 'Portal-System': http://sourceforge.net/projects/toca "Kurt Lieber" <[EMAIL PROTECTED]> wrote in message 1b4301c109b7$bcaffd80$[EMAIL PROTECTED]">news:1b4301c109b7$bcaffd80$[EMAIL PROTECTED]... > does anyone have/know of any existing code that allows PHP to control > htaccess files? I'm aware of SPHPAT on sourceforge, but I'm looking for > something a little more mature. > > I don't really have a set of requirements other than what I've already > stated -- I'm just looking for some examples to help me roll my own. > > Thanks. > > --kurt > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Upgrade to Apache 1.3.20 on Win2k
Hi all, I have Windows 2000 running Apache 1.3.19. When I run the most recent 1.3.20 windows binary, it says "There's already a version of Apache. Go to add/remove programs". Asking me to uninstall it. But, will I lose any mods or confs if I do this and install the new version? And have to modify everything again?.. Or, is there another way? Thanks for your time... -- Julio Nobrega. Yes, another 'Portal-System': http://sourceforge.net/projects/toca -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: Code Examples for Job Interview
What's the job position? And the company style? The sample you should leave depends on the requirements and type of experience needed, and the company area of work (ie, development of e-commerce sites) For example if it is a programmer/webdesigner for a company that does a lot of community websites, you should leave mailing lists ou foruns. If it is for a company that does experimetal design and they want just some interaction with the users, you bring to them another stuff. So, if you could answer my questions it would give me an opportunity to answer you better. PS: If it's is possible, could you describe a little the position (not just the name, please :-)) for me, I am from Brazil and we may have different ways to call a worker that does the same thing -- Julio Nobrega. Yes, I am developing another 'Portal-System' Have a look: http://sourceforge.net/projects/toca "Jcampbell" <[EMAIL PROTECTED]> wrote in message 001e01c108c2$9da68c60$779fadac@dhcpserver">news:001e01c108c2$9da68c60$779fadac@dhcpserver... > Hey Everyone. > > This isn't a request for code or help, just thoughts and ideas. > > I've recently been asked to bring along some code examples for a job > interview I will be heading to this week. This was the exact request "The > sample does not have to be within any particular language, but something > that is a substantive representation of your style and logic. " > > I'm not sure what to take. Most of my PHP and other projects are lengthy and > involved. I'm not sure if it would be better to print out functions I've > created that perform tasks, or just find something that did wonderfully > challenging things and print that out. Anyone have thoughts on this? > > > > =- > Jonathan Campbell ( [EMAIL PROTECTED] ) > > Mid days haze and I'm still not awake > I got everything going but my bills are still late > Funnier than hell and I think it's a blast > Life's like a laugh when you got no money > > Lyrics from "Average Day" by Aztek Trip ( http://www.aztektrip.com ) > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: Getting extensions to load in Win32
Sometimes you have to add the dir on the php.ini, for example: ;extension=php_df.dll Becomes: extension=extensions/php_gd.dll Can't remember if it is / or \ after 'extensions' -- Julio Nobrega. Yes, I am developing another 'Portal-System' Have a look: http://sourceforge.net/projects/toca "Michael Hall" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I am having a devil of a time getting any extensions to load on my Windows > machines. > > I have the php.ini set up as follows: > > [...] > extension_dir = C:\PHP\extensions > [...] > ;extension=php_fdf.dll > extension=php_gd.dll > > I'm trying to load the php_gd.dll, but I get the same problem with any of > the extensions listed in php.ini. The files are present, I have the > directory set up in php.ini, but php won't work at all until I comment out > the extension line again. > > Any suggestions? > > Thanks. > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: url without a query string?
I am not sure if the header(); function still maintain the referer, but if it does: You could make the first link lead to any named page, like: gate.php On gate.php you put: header("Location: index.php"); On index.php you put: if ($HTTP_REFERER == 'http://www.your_domain.com/gate.php') { header ("Location: http://www.where_users_really_will_go.com";) } Maybe a few protections on gate.php so users don't call it directly are nice too... -- Julio Nobrega. Yes, I am developing another 'Portal-System' Have a look: http://sourceforge.net/projects/toca "Jon Yaggie" <[EMAIL PROTECTED]> wrote in message 02e801c1082e$c48e6a30$0100a8c0@piiimonster">news:02e801c1082e$c48e6a30$0100a8c0@piiimonster... the problem i have a page that uses a query string to determine content. ie index.php?id=2 in this page there is a link to a memebership area that uses a remote service. this service requires that thee be the exact same refering url. is the refering url must always be index.php. how can i do this? can i do this? Thank You, Jon Yaggie www.design-monster.com And they were singing . . . '100 little bugs in the code 100 bugs in the code fix one bug, compile it again 101 little bugs in the code 101 little bugs in the code . . .' And it continued until they reached 0 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: case sensitive
You could convert to lower case either on the record or on the retrieve, or update the curret data with a simple loop. -- Julio Nobrega. Yes, I am developing another 'Portal-System' Have a look: http://sourceforge.net/projects/toca "prosite" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > hi, > is there a little thingy that - put into a script - tells php within a mysql > query to not care about cases? problem is a mailing script, that always > stops, when a mailaddress contains uppercase letters. > thanks - u. > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Global Variables -- why not have them?
> You must learn it's way if you want to be effective. Also take a > look at design features proposed for PHP5. Looks promising and more C++ like, > so better compare it with the later one. I went to php.net and searched for some kind of docs on PHP5, but found not a word. Where can I see this feature list? -- Julio Nobrega. Yes, I am developing another 'Portal-System' Have a look: http://sourceforge.net/projects/toca -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] require_once(); questions
I guess I know what may be wrong. My function that includes the files, it is called several times, with different arguments being passed. It is something like: function LoadPositionedModules ($posv, $posh) { // $posv is vertical position, and $posh is horizontal position // Inside it, something like: SELECT file_to_include FROM table WHERE posv = '$posv' AND posh = '$posh'; // Then the fetch_array, include, etc... } So if I call: LoadPositionedModules ('Left', 'Center'); And it includes files feeding the SQL. On this included file I define a var: $test = "Show Me!"; If I call again, but with different parameters: LoadPositionedModules ('Left', 'Footer'); Then I guess the problem is that I can't use the $test var from the first included file. It's clear to me why I can't now, thanks. So I believe a solution would be to find out how to use this var outside the function scope. That was my second question.. Anyone have any ideas? I guess I could register it on a session, or return it... -- Julio Nobrega. Yes, I am developing another 'Portal-System' Have a look: http://sourceforge.net/projects/toca -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: mysql_insert_id()
I used this function with a BIGINT field once, and it worked. I guess problemas appear when it goes beyond an INT filed, or, the number you are retrieving has more than 11 digits. -- Julio Nobrega. A hora está chegando: http://sourceforge.net/projects/toca "John Meyer" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I have been reading about this function and I have a question. The PHP > manual warns about using it if your AUTO_INCREMENT ID field is a BIGINT. I > am using type INTEGER. Am I okay with this one, or should I use the MySQL > function. > > John Meyer > [EMAIL PROTECTED] > Programmer > > > If we didn't have Microsoft, we'd have to blame ourselves for all of our > programs crashing > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] PHP map?
That´s a great idea Susan. While I can't help you, I've never seen similar application, and I like it. Hope you can make it! :-) -- Julio Nobrega. A hora está chegando: http://sourceforge.net/projects/toca <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > on 7/7/01 3:36 PM, Chris Lambert - WhiteCrown Networks at > [EMAIL PROTECTED] wrote: > > > You'd pretty much have to do that pixel by pixel. What exactly do you want > > the final application to do...often times there are alternative solutions > > derived at by others knowing what you wish to accomplish. > > > Well I was hoping there'd be something that was a bunch of vectors. If you > got to my site you'll se what I'm up to It's basically a > > > http://www.futurebird.com/mapbuild3 > *** very rough > > > I'm making a site that will allow users to upload a map and add 'events' to > it. The events can include photographs and comments, possibly even sound > clips and such. > > You can choose to share your map and to link it to similar maps. You can > make user groups and share all of your events. You can view events from any > area as a time line. Or look at events from any time period as a map. You > can chain events and make a map that shows how the event chain moved through > space (or didn't.) > > It's "postmodern" because anyone can contribute and because events > can countian conflicting accounts and information. (Just like real history!) > I'm going to using it for my online diary because I want to see where I was > when I was thinking or seeing something (personal obssesion... sorry) But it > has lots of other uses... > > So I wanted to see if there was a vector map I could use as the "main" map > that all the other maps will be linked to. > > > Susan > > > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] require_once(); questions
Hi All, I have a function that includes files based on some SQL queries. On one of the first loaded files, I want to define a function and use it on another included file. Something like: includes file: first_file.inc.php This file has: $test = "Show me!"; Then include file: second_file.php This file has: echo $test; But doesn't show nothing, so I guess it is not possible to do. Am I right? If so, what's the best alternative? Also, another question since it is a function that includes the files, the contents of these files are not available outside the function scope.. what's the best way to use it outside the function? Thanks a lot -- Julio Nobrega. A hora está chegando: http://sourceforge.net/projects/toca -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Something weird
Me too. Once I changed browser and took me days to find out why some pages weren´t changing :-) Does the header(); function returns some kind of true or false? Maybe we could tell users to don´t cache to show all dynamic stuff. I heard somewhere (not sure about this) that Refresh on meta and similar techniques doesn't always work... (well, like everything! :)) -- Julio Nobrega. A hora está chegando: http://sourceforge.net/projects/toca "Kevin Pratt" <[EMAIL PROTECTED]> wrote in message 00a901c10659$00c74580$0300a8c0@ouelong">news:00a901c10659$00c74580$0300a8c0@ouelong... > okie :) just thought it was funny that everybody is talking about something > that can be changed . > > :) > > and it was also a little bit of a shot at everybody's rants... I completely > agree that taking the small performance hit is much better than getting the > old version of a site... and I can say this because I live in the country > and only get 26.4k so I should really want to have a cache.. > > > Have fun! > Kevin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Something weird
Kevin, we were talking about cache in an user point of view... :-D -- Julio Nobrega. A hora está chegando: http://sourceforge.net/projects/toca "Kevin Pratt" <[EMAIL PROTECTED]> wrote in message 009f01c10655$b3558e40$0300a8c0@ouelong">news:009f01c10655$b3558e40$0300a8c0@ouelong... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Something weird
Me too. I always put 'check for new versions' or 'don´t cache' or similar. While I am aware that cached pages doesn't perform well with dinamic pages, the browser developers are also aware that what the user want is to see the page. If you ask any average user what is his preference 'Load faster or don't cache?'... he will probaly answer 'load faster', IF he knows what the hell a cached page is... -- Julio Nobrega. A hora está chegando: http://sourceforge.net/projects/toca "scott [gts]" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > maybe it's just me, but caches drive me nuts... > > i know... but IMO, i'll take a slight performance > hit any day to make sure i get the most recent page... > > > -Original Message- > > From: Inércia Sensorial [mailto:[EMAIL PROTECTED]] > > Subject: Re: [PHP] Something weird > > > > > for some bizarre reason, almost every browser i've seen > > > has the default option set to "cache everything and never > > > look for updates" > > > >Connection speed. Cached pages load faster > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Something weird
> for some bizarre reason, almost every browser i've seen > has the default option set to "cache everything and never > look for updates" Connection speed. Cached pages load faster -- Julio Nobrega. A hora está chegando: http://sourceforge.net/projects/toca -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: string formatting help
Maybe: $array = explode("", $string); foreach ($array as $key => $value) { echo "$value"; } Would separate the string by 's and print all in one line. -- Julio Nobrega. A hora está chegando: http://sourceforge.net/projects/toca "Chad Day" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I'm trying to pull a string from a database to use in a javascript > function.. but it's doing line breaks on me, which in turn messes up the > javascript. > > The string in the mysql db is like: > kjdsakjadkskjdkskjkdfjdfkjfd > > When I pull it out, it becomes: > > kjdsakjadk > > skjdks > > > kjkdfjdfkjfd > > I've tried replacing the br's with blank spaces or new line characters, but > in the html code it still breaks on those breaks when I echo it back out. > How can I force this string to be all on one line? > > Thanks, > Chad > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: Number of the line ?
Doesn't work if you put ++ after the variable? > 1 2 echo "i'm on line $NUMBER_LINE++\n"; > 3 echo "i'm on line $NUMBER_LINE++\n"; > 4 ?> Or maybe: echo "i'm on line " .$NUMBER_LINE++ ."\n"; -- Julio Nobrega. A hora está chegando: http://sourceforge.net/projects/toca "Emmanuel FAIVRE" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]... > Hi All, > > i'm currently writing a debugging lib in PHP and i would like to find > the number of the line in my script > > when i made an > > myfile.php > > 1 2 echo "i'm on line $NUMBER_LINE\n"; > 3 echo "i'm on line $NUMBER_LINE\n"; > 4 ?> > > would give : > > i'm on line 2 > i'm on line 3 > > it perhaps exists because when we have warning we see the line number > > Thanks > > > Manu > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: changing to a different file in browser
header ("http://www.example.com";); // Goes to example.com. -- Julio Nobrega. A hora está chegando: http://sourceforge.net/projects/toca "Brad Wright" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi all, > I know this is probably the most stupid question you'll see on this list for > a while, but anyway, > In an 'if..else' statement, I want to (if a condition is met) change to a > totally new php page in the browser window. I know this is simple (in fact i > had it working last night but have now forgotten how i did it). > > ie (no the following is NOT actual PHPsheesh :) > > If a=1 > go to required_page.php > else > do nothing > > Thanks in advance, > Brad > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]