Re: [PHP] php accelorator
On 06/02/2010 12:35 AM, Dan Joseph wrote: Hi, Are any of you using any of the php accelorators such as Zend, Ioncube, or any others? Any idea which is the "best"? APC opcode caching works well. -- With warm regards, Sudheer. S Tech stuff: http://techchorus.net Business: http://binaryvibes.co.in -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Happy New Year
May 2010> 2009. Fortunately, I think that's automatically true by definition :-D James Humorous. -- With warm regards, Sudheer. S Tech stuff: http://techchorus.net Business: http://binaryvibes.co.in -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP and XML
What do you recommend me to produce XML from those news of the SQL database?. What do you suggest to output XML from the existing content to then put those XML files into Flash. The posted news are saved in a MySQL database. I don't know if do I need to output from PHP then parse the output and convert it to XML, or if Do I need to get the array from the MySQL and directly output this to an XML file to then get from this file from Flash. From your PHP script, query the database, obtain the results in an array or object. Using the result variable build the XML file. -- With warm regards, Sudheer. S Tech stuff: http://techchorus.net - Pro PHP XML - Book Review Business: http://binaryvibes.co.in -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Need suggestions on PHP frameworks
I doubt you'll get a reasoned bunch of suggestions, more a religious war... :-) Still, I like PEAR components. Exactly. You have to visit the websites of frameworks, comparison articles, etc and find out for yourself which one suits you best. Currently, if I get to decide, I choose ZF for all the new PHP projects. I am also comfortable with * my own framework * other frameworks like Symfony * framework less projects Recently, I wrote about ZF - http://techchorus.net/reasons-use-zend-framework -- With warm regards, Sudheer. S Tech stuff: http://techchorus.net Business: http://binaryvibes.co.in -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Web Service Server in PHP
On Thursday 22 October 2009 06:56 AM, Daniel Echalar wrote: Hi, Does anybody knows a web services server based on PHP? The only one a see is Nusoap, but even for this one i can't find the webpage to see the documentation. by the way, i'm trying to develop an application using web services in PHP, any start point suggestion will be appreciated. thanks for the anwers! Many frameworks offer Soap server component. Zend Framework springs into mind. You might also want to consider developing RESTful server application. -- With warm regards, Sudheer. S Tech stuff: http://techchorus.net Business: http://binaryvibes.co.in -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHPlot patch
On Thursday 24 September 2009 03:33 PM, Chandana wrote: Hi, I was using Phplot for a project of mine and I had to do some modifications in the phplot.php code to show the data values at the peaks of the graph. I would like to commit the modification code to the phplot repository so that others can also use it as an inbuilt functionality. If I want to commit to the phplot, how may I achieve it? As any other project, contact the project developers and offer them your patch. -- With warm regards, Sudheer. S Business: http://binaryvibes.co.in, Tech stuff: http://techchorus.net, Personal: http://sudheer.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] htaccess question
Is there a way I can use a htaccess directive to require a php script to be "included" within each file contained within that directory? For example, let's say I have a directory with 100 scripts in it, but I want each script within that directory to pass through an authorization script before executing. The hard way is for me to go through each of the 100 scripts and add the statement "require(auth.php)", but I don't want to do that (I'm too lazy and beside there is too great of a chance of an error). So, is there a way for me to circumvent this problem by using a htaccess directive? I don't think it is possible to include a particular script for every request without using include or require statements. You can solve this problem by routing all the request to one file, say index.php and then manipulate the flow from there. -- With warm regards, Sudheer. S Business: http://binaryvibes.co.in, Tech stuff: http://techchorus.net, Personal: http://sudheer.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] How to download and configure php mvc website locally
Sumit Sharma wrote: Hi, Please help as I have downloaded a php website for my client which is developed using model view controller pattern. Now when I am accessing this site locally it is not showing any thing. Please tell me the what's the problem Thanks, Sumit Sharma It should at least show some error messages. Look into the logs of your web server and try to fix them. We will be able to help you if you provide us more information about your application. -- With warm regards, Sudheer. S Business: http://binaryvibes.co.in, Tech stuff: http://techchorus.net, Personal: http://sudheer.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Cannot exec in my own directory
Dotan Cohen wrote: I have a script in /home/username/script.sh with permissions 777. I can SSH into the server and execute ./script.sh to run the script, but calling it from exec in PHP does not run it. What should I start checking? Thanks. Check the include path. Try using the complete path to the file. And make sure the user PHP is running has read permissions to the directories upwards the hierarchy. -- With warm regards, Sudheer. S Business: http://binaryvibes.co.in, Tech stuff: http://techchorus.net, Personal: http://sudheer.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] ZCE question - duplicate object
Augusto Flavio wrote: HI everyone, i'm studying for the zce exam and i found a blog that try to answer some questions covered in the exam. I found one that i do not agree. Question: What is wrong with the following code? function duplicate($obj) { $newObj = $obj; return $newObj; } $a = new MyClass(); $a_copy = duplicate($a); $a->setValue(10); $a_copy->setValue(20); ?> Answer: 1. You must use return &$newObj instead 2. There is nothing wrong with this code 3. duplicate() must accept its parameter by reference 4. You must use the clone operator to make a copy of an object 5. duplicate() must return a reference I think the answer is the number 4 and not 3 because variable referenced in php 5 is parsed by reference. Am i right? 4 is the answer. When objects are passed to functions as parameters, any changes made to those objects are done on the objects themselves. Not on the copy of the objects. When you pass other variables like an array or a string to a function, any changes made to them reflect only within the function's scope. In PHP 4, if you assigned an object to a variable, actually a copy of that object would be assigned. But not in PHP 5. When you assign an object to a variable no copy is being made. In order to make a duplicate of the object, you have to use the clone operator. -- With warm regards, Sudheer. S Business: http://binaryvibes.co.in, Tech stuff: http://techchorus.net, Personal: http://sudheer.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Question: what are frameworks?
Michael A. Peters wrote: Ralph Deffke wrote: good question !! I think the word "framework" is modern fashion term in the first case. in former days we used to say "library" C comes with a standard library, in modern words C comes with a standard framework. I use my own framework, means I reuse my code written for similar things before, so I use my "framework". its like a painter, he uses a ready made frame to paint what ever he wants, u can use the yahoo UI framework to "paint" ur page. A operating system is a "framework" unifieing the underlaying hardware. as in former days u said "library" u say more modern "framework" in both cases its a bunch of functions doing some stuff the user of the framework hasn't to take care about by using the framework. hope that helps I think framework is different than library. Pear is a collection of libraries. PECL (and binary modules that ship with php) are a collection of libraries. I don't use pre-packaged frameworks so it probably is best for me not to define them, but I think they are a basically a collection of classes and libraries intended to make rapid development of web applications faster. You might consider reading this: http://en.wikipedia.org/wiki/Software_framework -- With warm regards, Sudheer. S Business: http://binaryvibes.co.in, Tech stuff: http://techchorus.net, Personal: http://sudheer.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: best way to properly build an include path *regardless* from where I am calling the include?
Govinda wrote: On Jul 5, 2009, at 2:33 PM, Govinda wrote: I am confusing myself reading the docs just now. i.e.: include_path basename() and dirname() I had thought from many months ago that would include somefile.php living in somedir regardless from where in the site structure I am calling it. Now it does not seem to be doing that. What is the safest (portable) way to properly build an include path *regardless* from where in my site I am calling the include? If I understand right I can put includes in a dir/ specified by the include_path setting, but I also want to know how to do this from just within the root of my virtual server. -Govinda in my include statement, I am now successfully using: /home/metheuser/public_html/ and am not anticipating moving this site.. but still I am thinking there must be a way to make the code bullet proof to dir/ name changes *after* the virtual server root. Or do people just stop here? Define a constant like APPLICATION_PATH in the bootstrap file of your application. Once it is defined use the paths relative to this constant. This way you can easily move your application around. http://techchorus.net/constants and http://techchorus.net/include-path might be useful to you. -- With warm regards, Sudheer. S Business: http://binaryvibes.co.in, Tech stuff: http://techchorus.net, Personal: http://sudheer.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Calendar
salmarayan wrote: Does Any body please have the code of A Java Script Calendar that works with a PHP Html Form.. if yes can you please send it as i have one but does not work that Efficiently. Thanks in advance This might help if you are looking for a date picker http://techchorus.net/add-cool-date-picker-2-lines-javascript -- With warm regards, Sudheer. S Business: http://binaryvibes.co.in, Tech stuff: http://techchorus.net, Personal: http://sudheer.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Preventing XSS Attacks
Ashley Sheridan wrote: On Wed, 2009-06-10 at 23:05 +0530, Sudheer Satyanarayana wrote: I've been doing a bit of reading, and I can't really understand why XSS is such an issue. Sure, if a user can insert a
Re: [PHP] Mail function and hotmail
Richard was likely suggestion his mail example as listed in his signature Other options include phpmailer pear's mime mail various other classes available www.phpclasses.org Fernando, I recommend you check out the various PHP frameworks out there. Instead of randomly searching for classes for common functionality like sending an email from your script, you could use the framework's classes. I am sure all of the frameworks provide classes to send emails. The next time you need a class to read email from your scripts, you can simply look for classes your framework of choice provides. I personally use Zend Framework. But there are many available - Cake, CI, Symphony, etc. Also take a look at PEAR like Bastien said. -- With warm regards, Sudheer. S Business: http://binaryvibes.co.in, Tech stuff: http://techchorus.net, Personal: http://sudheer.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Preventing XSS Attacks
I've been doing a bit of reading, and I can't really understand why XSS is such an issue. Sure, if a user can insert a
Re: [PHP] Newbie - Setting Up Some Basic Sendmail Scripts
And got this code below going, but I'll bet I need a bit more - like adding authentication - smtp - port - sending user / pass etc. Any hints how to get this to the next level? Hi Dave, As others have said, it is convenient to use a library/framework to send mails from your PHP script via SMTP with authentication. You might also want to check out Zend_Mail component of Zend Framework. http://framework.zend.com/ -- With warm regards, Sudheer. S Business: http://binaryvibes.co.in, Tech stuff: http://techchorus.net, Personal: http://sudheer.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Change color of anything in double/single quotes
Robert Cummings wrote: I was about to say the same thing *lol*. tis true though, the class should be "doubleQuoted" or something similar. What happens when they decide it should be blue? Aren't CSS class names supposed to be in lower case? I would go with something like "double_quoted". span.red { color: blue; } Uh huh, uh huh, uh huh :) Cheers, Rob. -- With warm regards, Sudheer. S Business: http://binaryvibes.co.in, Tech stuff: http://techchorus.net, Personal: http://sudheer.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Multithreading in PHP
Manoj Singh wrote: Hi Sudheer, Can you please put more focus or sample code for the second option which you have suggested "Send the email after you flush the output.". http://binaryvibes.co.in, Tech stuff: http://techchorus.net, Personal: http://sudheer.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Multithreading in PHP
Manoj Singh wrote: Hi Guys, I am creating a page which submits the form through Ajax request & the submitted page is sending the mails to n number of users. Now until the mail sends or the page process completed the end user has to wait. Is it possible that server sends the response to the client & then start processing so that the client doesn't have to wait for the server response. I can think of two ways to solve this apart from creating an Ajax request: 1. Queue the emails. Run a cron job to process the queue later. 2. Send the email after you flush the output. -- With warm regards, Sudheer. S Business: http://binaryvibes.co.in, Tech stuff: http://techchorus.net, Personal: http://sudheer.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: PHP includes
Gary wrote: Thank you to everybody that replied...but it almost seems it is making extra work. I can understand using an include for a menu, since they tend to change often and it is on every page, but the normal content I am not understanding the benefit. If I have a page that has unique content on it, that is to say no other page has this content, why would I want to create a separate file to be included on the page, why would I not simple put the content directly on the page itself? There are several advantages of using include. I can't imagine an application without include/require/autoload. I create the database adapter only once per request. I store several application configuration items in a config file and load this configuration information only once per request. I have one layout for the application. Only the content and the menus change. So, I would simply include various sections of the web page in relevant positions. Example: layout.php include 'menu.php'; // menu.php is also dynamic. menu.php determines what to display on the current page. include 'sidebar.php'; // within sidebar.php I would include block_a.php, block_b.php, etc include 'footer.php'; ?> I put the utility functions and classes in a library file. I would simply include the library.php and use the functions available in it. I hope you get the point of using include. What is the best type of file to be used as an include (.txt, .php). -- With warm regards, Sudheer. S Business: http://binaryvibes.co.in, Tech stuff: http://techchorus.net, Personal: http://sudheer.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP includes
Gary wrote: I'm working on learning php and have been toying with includes, and I am trying to figure the advantages/disadvantages to using them. I know that using them eliminates the need to "put" the files once altered as with a template, however, is that the only advantage. My particular concerns are with SEO and if the search engines and the bots can read the page if it is made completely on includes? It really does not matter to search engines and bots. They see the output of your PHP scripts not the code. They won't know whether your PHP script used include. Just the way you see web pages with some content and not the PHP code that generated it. Any and all comments would be appreciated. Gary -- With warm regards, Sudheer. S Business: http://binaryvibes.co.in, Tech stuff: http://techchorus.net, Personal: http://sudheer.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Stupid is as Stupid does
Michael A. Peters wrote: If variable is an integer, die($var) returns nothing and is suppose to return nothing, it takes a string as an argument to echo on death - die("$var") is what I wanted. I often use to debug and print the value of the variable. xDebug adds nice formatting to var_dump(). -- With warm regards, Sudheer. S Business: http://binaryvibes.co.in, Tech stuff: http://techchorus.net, Personal: http://sudheer.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Which file "Included" me?
Robert Cummings wrote: On Wed, 2009-02-18 at 23:57 +0530, Sudheer wrote: Ed Curtis wrote: Is there a function or variable that will tell me if a file has asked another file to include something much the same as $_SERVER['HTTP_REFERER'] works. I have a script that is included on every page of a site but also needs to include some javascript only if it's called from a certain URL. thanks, Ed Are you looking for $_SERVER['PHP_SELF'] ? I'd use $_SERVER['REQUEST_URI'] :) Cheers, Rob. Hi Ed Curtis, Just do var_dump($_SERVER) ; and see which array key to use. REQUEST_URI gives you the request parameters as well, whereas PHP_SELF gives you the script name only. -- With warm regards, Sudheer. S Business: http://binaryvibes.co.in, Tech stuff: http://techchorus.net, Personal: http://sudheer.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Which file "Included" me?
Ed Curtis wrote: Is there a function or variable that will tell me if a file has asked another file to include something much the same as $_SERVER['HTTP_REFERER'] works. I have a script that is included on every page of a site but also needs to include some javascript only if it's called from a certain URL. thanks, Ed Are you looking for $_SERVER['PHP_SELF'] ? -- With warm regards, Sudheer. S Business: http://binaryvibes.co.in, Tech stuff: http://techchorus.net, Personal: http://sudheer.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] for the security minded web developer - secure way to login?
Firefox scares its users when they encounter a website with self signed certificate. If your website users aren't worried about the warning Firefox throws at them, self signed cert works well. I just realized Dotan Cohen already mentioned this. -- With warm regards, Sudheer. S Business: http://binaryvibes.co.in, Tech stuff: http://techchorus.net, Personal: http://sudheer.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] for the security minded web developer - secure way to login?
Michael A. Peters wrote: German Geek wrote: Hi gang, Was just thinking of a cheap solution for sites that don't require absolute security. A SSL cert cost about $150 a year. Sites like facebook could use this... Sites (like mine) that don't want to pay a certificate authority can use a self-signed cert. Even Red Hat does for some of their stuff (IE I believe their bugzilla server) Firefox scares its users when they encounter a website with self signed certificate. If your website users aren't worried about the warning Firefox throws at them, self signed cert works well. -- With warm regards, Sudheer. S Business: http://binaryvibes.co.in, Tech stuff: http://techchorus.net, Personal: http://sudheer.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Pausing PHP scripts
Ron Piggott wrote: Is there a way to pause a PHP script while it is executing? Ron http://www.php.net/manual/en/function.sleep.php -- With warm regards, Sudheer. S Business: http://binaryvibes.co.in, Tech stuff: http://techchorus.net, Personal: http://sudheer.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Form Loop
I'm trying to create a form with a loop. I need to append a value to a field name each time through the loop. For Instance: while ($row = mysql_fetch_assoc($result)) { $x=1; echo "";echo "name='quantity_' size='2' value='$row[qty]' />"; ?> echo ""; $x++; } the name value quantity needs the value of x appended to it. quantity_1, quantity_2 etc. I recommend using array notation instead of appending $x to the element name. If you are using POST, when the form is submitted the values are available in the $_POST['quantity'] array. You can use foreach to iterate through it. Example: Regards, -- With warm regards, Sudheer. S Business: http://binaryvibes.co.in, Community: http://lampcomputing.com, Personal: http://sudheer.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Web Project Leader -- Contract - San Francisco area
Robert Cummings wrote: On Wed, 2008-09-17 at 13:00 -0400, John Biroldi wrote: * Fluent in at least three of the following development languages: * Microsoft .NET Framework ( VB.NET or C#), ASP, JSP, Java, VBA, XML, XSLT, relational databases and concepts of object-oriented programming. Anyone else not see PHP in the above? Cheers, Rob. Ugh. I guess most of us would hit the delete button as soon as we feel it's spam. -- With warm regards, Sudheer. S http://binaryvibes.co.in -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Performance of PHP
Merlin wrote: Hi there, I am doing some image cropping of about 40.000 files with php. To do this I wrote a PHP file that does what I want and I did disable the timeout so I can call it via webbrowser and fire the script. There are two down sides I see: 1. One image takes about 0.25 s, so the whole process would take about 3 hours. 2. During that time a spider could come along and find that file and fire it again. Is it faster if I would issue this by command line on the linux server? php filename.php If your site is running on Apache, you can restrict access to spiders. It is quite easy to set up with a .htaccess file in your script directory. Thank you for any help, Merlin -- With Warm Regards, Sudheer. S http://www.binaryvibes.co.in -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Generating HTML table from MySQL table based on some criteria
Wolf wrote: Sudheer, Post the code you are using and we'll better be able to point you in the right direction to get your code working. Thanks Jim Lucas, Wolf and Jay Blanchard for your suggestions. Here is the code I am using [code] print ''; $result = mysql_query("SELECT * FROM users where status=1 AND picture <> '' ORDER BY created DESC limit 20"); while ($user_info = mysql_fetch_object($result)) { $output .= ' http://example.com/'.$user_info->picture.'" height="90" > ' .''. $user_info->name .''; } print $output; print ''; [/code] The above code prints the pictures of last twenty users who have uploaded their pictures. Each picture is printed in an HTML table cell. The table has only one row. I want to split the HTML table into 4 rows each containing 5 cells. Each table cell should contain one user picture. How can I do this? PS: The DB column names are slightly different than I mentioned in my previous message. Wolf Sudheer Satyanarayana <[EMAIL PROTECTED]> wrote: Hello, I have a MySQL table with four columns - userid, created_date, username and path_to_picture. path_to_picture column contains the path to the image files of those users who have uploaded pictures. An example path stored in path_to_picture column is picture/username.png. There are some users that don't have their pictures uploaded. The column contains nothing for these usernames. I want to generate an HTML table with 20 recent users who have uploaded their pictures. Each row in the HTML table should contain 5 columns. Thus the HTML table would contain 4 rows. How can I accomplish this? I hope I have provided enough information to describe my problem. I would be glad to provide more details if required. I tried few permutations and combinations with ORDER BY and LIMIT clauses to no avail. I have been scratching my head from few hours to get this to work. Any help would be greatly appreciated. -- With Warm Regards, Sudheer. S http://www.binaryvibes.co.in -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- With Warm Regards, Sudheer. S http://www.binaryvibes.co.in -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Generating HTML table from MySQL table based on some criteria
Hello, I have a MySQL table with four columns - userid, created_date, username and path_to_picture. path_to_picture column contains the path to the image files of those users who have uploaded pictures. An example path stored in path_to_picture column is picture/username.png. There are some users that don't have their pictures uploaded. The column contains nothing for these usernames. I want to generate an HTML table with 20 recent users who have uploaded their pictures. Each row in the HTML table should contain 5 columns. Thus the HTML table would contain 4 rows. How can I accomplish this? I hope I have provided enough information to describe my problem. I would be glad to provide more details if required. I tried few permutations and combinations with ORDER BY and LIMIT clauses to no avail. I have been scratching my head from few hours to get this to work. Any help would be greatly appreciated. -- With Warm Regards, Sudheer. S http://www.binaryvibes.co.in -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] php on irc
Hi Slith, #php on irc.freenode.net is a nice PHP channel Slith wrote: i was just wondering if there is an irc channel for php? -- With Warm Regards, Sudheer. S http://www.binaryvibes.co.in -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Public Announcement
have against mod_rewrite. > I hope I answered all your questions. That would be a bit of a stretch, but I appreciate the effort. > Best Regards, Yours sarcastically, -Stut Am Montag, den 10.09.2007, 16:39 +0100 schrieb Stut: Things to do before spamming a public English mailing list... 1) Make sure your email actually says what the product is 2) Make sure you have a relevant subject line 3) Make sure it's in English 4) Run it through a spelling checker, preferably an English one 5) Stop and think whether the people you're spamming are really gonna care! 6) This one is really important. Make sure you include a URL to the product's website. Oh, and make sure that website actually works, especially when it says it's powered by your product! Some additional questions and notes that you may find useful... * What the heck are "Kategories"? Maybe you mean categories? * What the heck are "Screentexts"? * As far as I know Google have never published any standards regarding URLs. Do you have a reference? * Claiming that your product is the only one in the whole wide world to do something is very dangerous. Would you bet the farm on it? Because what with the numerous highly litigious patent owners out there you could well be! * "blogging standards"?? Another reference needed please. * "The shop system is not containing query urls anymore, without use of mod_rewrite." What the heck does that mean? You had SQL in your URLs? * It's the best is it? On what do you base that claim? -Stut -- With Warm Regards, Sudheer. S http://www.binaryvibes.co.in -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Single Sign On
Hi, We have three web sites a) example1.com b) example2.com c) my.example2.com Our sites include exclusive pages for registered users. All user account management tasks are handled by my.example2.com including registration, modification, cancellation, etc. We would like to create a single sign on system for all the three web sites. The user would sign on with a single username and password to all three web sites. For example, when the user visits a membership page in example1.com he would be prompted to sign on to his account. His credentials are stored in my.example2.com. my.example2.com is now fully functional. After the successful sign on, the user would be redirected to original membership page in example1.com. How would I pass the information from my.example2.com to example1.com about the authentication status of user? We use MySQL database to store and retrieve user account details in my.example2.com. The web host does not allow remote database connections. Thanks, Sudheer -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Here is a silly question
Hello, I refer to the target file like this: Solves the problem. Sudheer. S On Mon, 2006-04-03 at 09:54 -0600, Mace Eliason wrote: > Hi, > > This is come thing that I have struggled with now and again. I usaually > us php code to make it work, but was wondering how others deal with this > > I use includes in most of the web applications that I work on to include > the header, footer, menu etc. > > The problem that I always run into as a project gets bigger is my links > to pages. If all the files are in the root directory theres no problem. > > If I have some files in a folder and call my menu for example include("../menu.php"); ?> I have to call if from the parent > directory. But then of course > all the links are wrong. Root becomes the calling directory. > > I usually use a php variable to place the ../ if its needed. > > How does everyone else deal with this type of problem. I have a times > places an extra copy of the footer, menu, header etc in each directory > but it is a pain to change links > when you have multiple locations to do it in. > > Thanks for any suggestions. > > I would be nice to have a simple way to have my include files in a > common place that works and keeps the links right. > > Scandog > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] How to get sessions worked with register_globals=OFF?
Hi, I was wondering If I could get applications run with register_globals = OFF I have developed few applications, long back when I was using php 4.0.6. All of them worked fine when register_globals=ON. But none of the sessions were working when I turned off register_globals. I tried replacing every occurence of global parameter with $_SESSION[paramname]..but could not get them worked. I hope some of you might had ran into these problems. If so, please suggest me the ways to get my applications run in register_globals 'OFF" mode. -Sudheer Yahoo! India Matrimony: Find your partner online. Go to http://yahoo.shaadi.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] get back to index.php
But it is giving the following error message Warning: Cannot modify header information - headers already sent by (output started at D:\websites\clands\clandsadmin\etooss.com\web\insert_user.php:3) in D:\websites\clands\clandsadmin\etooss.com\web\insert_user.php on line 29 Thank you. From: Marek Kilimajer <[EMAIL PROTECTED]> To: Sudheer Palaparambil <[EMAIL PROTECTED]> CC: [EMAIL PROTECTED] Subject: Re: [PHP] get back to index.php Date: Wed, 22 Oct 2003 14:24:44 +0200 Use header('Location: http://www.etooss.com/'); exit; Sudheer Palaparambil wrote: Hi, I am calling the insert_user.php like this http://www.etooss.com/insert_user.php"; onsubmit="return verifyIt(this);"> In insert_user.php, I am inserting the record to mysql db, nothing is displayed there. Now how do come back to index.php screen. Thank you Sudheer _ Making your life easy! That is Citibank Suvidha. http://server1.msn.co.in/msnleads/citi_cards_sept03/CitiSuvidha.asp Get your account now! _ Tired of emails bouncing back? Need more space? http://server1.msn.co.in/features/general/extrastorage/index.asp Get extra storage on Hotmail -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] get back to index.php
Hi, I am calling the insert_user.php like this http://www.etooss.com/insert_user.php"; onsubmit="return verifyIt(this);"> In insert_user.php, I am inserting the record to mysql db, nothing is displayed there. Now how do come back to index.php screen. Thank you Sudheer _ Making your life easy! That is Citibank Suvidha. http://server1.msn.co.in/msnleads/citi_cards_sept03/CitiSuvidha.asp Get your account now! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] HTTP 405 - Resource not allowed error
Hi, This file and the index.php are kept in the same directory. But the browser returns I tried GET also, but not inserting the data to mysql db. This is my insert_user.php *- * Thank you. Sudheer _ He's the fastest Indian.He's Narain Karthikeyan. http://server1.msn.co.in/sp03/tataracing/index.asp Will he make it to F1? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] The page cannot be displayed error
Hi, I tried Opera, it showed the following error. The page cannot be displayed The page you are looking for cannot be displayed because the page address is incorrect. Please try the following: If you typed the page address in the Address bar, check that it is entered correctly. Open the www.etooss.com home page and then look for links to the information you want. HTTP 405 - Resource not allowed Internet Information Services Technical Information (for support personnel) More information: Microsoft Support Sudheer From: Marek Kilimajer <[EMAIL PROTECTED]> To: Sudheer Palaparambil <[EMAIL PROTECTED]> CC: [EMAIL PROTECTED] Subject: Re: [PHP] The page cannot be displayed error Date: Tue, 21 Oct 2003 11:53:59 +0200 Try it with another browser and not IE to get a more meaningfull error message. Sudheer Palaparambil wrote: Hi, I am calling insert_user.php like this This file and the index.php are kept in the same directory. But the browser returns "The page cannot be displayed error" Where should I keep the insert_user.php Please help Thank you. _ Get Married! http://www.bharatmatrimony.com/cgi-bin/bmclicks1.cgi?74 Search from 7 lakh Brides & Grooms. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php _ Contact brides & grooms FREE! http://www.shaadi.com/ptnr.php?ptnr=hmltag Only on www.shaadi.com. Register now! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] The page cannot be displayed error
Hi, I am calling insert_user.php like this This file and the index.php are kept in the same directory. But the browser returns "The page cannot be displayed error" Where should I keep the insert_user.php Please help Thank you. _ Get Married! http://www.bharatmatrimony.com/cgi-bin/bmclicks1.cgi?74 Search from 7 lakh Brides & Grooms. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] (newbie) How to keep files ?
Hi, I have a few gif files and five php files and using mysql database and planning a shared hosting. The web contents are static. How should I keep the files in my web space? Should I restrict access to the php files? How do I safeguard my mysql login parameters (which I hard coded in the php files)? Pls help. Thank you. Sudheer. _ Access Hotmail from your mobile now. http://server1.msn.co.in/sp03/mobilesms/ Click here. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] do I need a database
Hi, I am planning a static site. But I need to capture some data (username, address, telephone and email only), do I need a database for recording this data ? Or is there any other way to record this data ? The volume may be high. Thank you. Sudheer _ Get Married! http://www.bharatmatrimony.com/cgi-bin/bmclicks1.cgi?74 Search from 7 lakh Brides & Grooms. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] newbie:form problem
Hi, Is this is the way to write a form which insert data into a mysql DB ? Please note where I am keeping the mysql code. The problem with this code is that whenever I am issues a refresh, a row is inserted into the DB with previous field values! Even when the form field is empty. Pls help. function verifyIt(form) { var sName = form.first_name.value, sEMID = form.e_mail.value; if ( sName == "" ) { .. return false; } <? $sFName = $_POST['first_name']; $sLName = $_POST['last_name']; $sEMail = $_POST['e_mail']; $sComments = $_POST['comments']; mysql_connect( "localhost", "usr", "pwd" ) or die( "Failure" ); mysql_select_db( "sessions" ); $query = "INSERT INTO users( fname, lname, email, comments ) VALUES ( '$sFName', '$sLName', '$sEMail', '$sComments' )"; $result = mysql_query( $query ) or die ( "Unable to insert user.." ); mysql_close( "sessions" ); ?> return true; } . . Thank you Sudheer _ The heat is on! Catch the latest action. http://server1.msn.co.in/sp03/formula2003/ Speed along with F1! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php