What Could be the example scenarios to declare any class or any method as "final"? When do we need to do this?
Please give me some example to understand the practical use of "final"...
please elaborate your answer....
please guide me as I am a beginner in OOP
...
Hello,
I have one registration form, I don't want people to register login username with unicode characters. How can i put server side validation PHP + client side validation javascript or jquery.
Please kindly help me out. Thank you.
...
i have GWT AJAX code but server side is PHP not JAVA.
Now i need to login to server side PHP server.
but i need to connect with SSL.
possiblity of solution i am thinking:
change the http to https://
PHP server side LAMP or XAMPP must have ssl support.
are they correct?
if there are some missing configuration then can anybody inform...
I am making a PHP web Application in which i am using MySQL as database server, i want to make backup of some tables from one database to another database(with that tables in it).
i have created two different connection, but the table is not updated.
$dbcon1 = mysql_connect(DB_SERVER,DB_USER,DB_PASSWORD) or die(mysql_error());
$dbase1 =...
I'm using Zend_Mail to send emails. Few articles (like first example on this page) have suggested to wrap long lines in message body.
Questions:
Is it necessary to use wordwrap(), in case any of line is larger than 70 characters?
Where does this '70' figure come from?
...
Strangely enough I am more familiar with jQuery than I am with javascript. I need to be able to add a class to the body tag of a document depending on what specific forum page i'm on in a phpbb forum. Due to the nature of phpbb I can't actually do this flow control in php, so I am using jquery.
Here's my code (the first part is an ex...
My question is about creating a secure log in routine. After comparing the user name and password to the stored values I set a session variable called logged to true. Then as the user surfs around the web page I just check the logged variable for true or false to determine if the user should have access.
This is my first time creating s...
I am creating an xml file on the fly. When a user generates this file I want it to open up a download file dialog with the content that was generated. There is no actual file because it is just generated through php. Any ideas on how to do this?
...
What is the difference between Multiple Inheritance and Polymorphism?
In a Book I red a line saying
there is no support for multiple inheritances at class level. This means you can't extend more than one class at a time.
Which is contradicting the concept of Polymorphism, described in the same book as
polymorphism is the process of...
I understand that echo is slightly faster, and print can be used as a function, but I've been reading an e-book on PHP, and the writer is using print, instead of echo, to output very simple text.
print "Your name is $name\n";
So my question is, when would it be appropriate for me to use print as opposed to echo?
...
hi, i have wrote a script to produce an array of data but now want to display in order of score. The array outputs as follows;
[display_name] => Array
(
[0] => ACT_Web_Designs
[1] => user1_design
[2] => user2_design
)
[proffesion] => Array
(
[0] => Web Developer
[1] => web developer
...
Hello,
I am creating a poll script for a facebook fan page:
http://www.facebook.com/apps/application.php?id=115400635147687&v=app_115400635147687
I am getting the IP using:
$_SERVER['REMOTE_ADDR']
But the problem is that each time I refresh the page, or make an ajax call, the IP is changed everytime. Someone told me that facebo...
I have trouble figuring out how do I load the rest of the data in html. Here is my code:
<?php
$con = mysql_connect("localhost","root","nitoryolai123$%^");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
mysql_select_db("school", $con);
$result = mysql_query("SELECT * FROM student WHERE IDNO='$_GET['id']'");
...
I want the class to auto-attach its required css and js files when instantiated...
is there any way of a class knowing where it is (and its files) in relation to the root?
if 1 is possible, is there a way to check if a css/js file has already been referenced in the file, or is this not necessary(do browsers ignore duplicate css/js file...
I generated a text file on server1, and then I need to FTP it to server3.
Due to firewall, I could not FTP it directly but have to go through server2.
I want server1 to call PHP script on server2 and then pass the text file to server3.
Any idea how can I start with the PHP script?
...
Hi, How would I go about combining multiple users twitter feeds into one list and display them on my page?
...
I was working on PHP in the past 1 year and nowadays I'm learning Rails.
In rails:--
Routing takes an incoming URL and decodes it into a set of parameters that are used by Rails to dispatch to the appropriate controller and action
For example
rs.recognize_path "/blog/show/123"
{:controller=>"blog", :action=>"show", :id=>"123"}
Am ...
Hi,
I have a requirement to edit a remote text file on-the-fly, the content of which currently stands at ~1Mb.
I have tried a couple of approaches and both seem to be clunky or hog memory which I can't rely on.
Thinking out logically what I'm trying to achieve is:
FTP to a remote server.
Download a copy of the file for backup purpos...
Morning, this is eating me alive so Im hoping it's not something stupid, lol.
$arrg = array();
if( str_word_count( $str ) > 1 ) {
$input_arr = explode(' ', $str);
die(print_r($input_arr));
$count = count($input_arr);
die($count);
above is part of a function.
when i run i get;
> Array (
> [0] => luke
> [1] => s...
I'm trying to retrieve data using the new graph API, however the token I'm retriving from OAuth doesn't appear to be working.
The call I'm making is as follows;
$token = file_get_contents('https://graph.facebook.com/oauth/access_token?type=client_cred&client_id=<app_id>&client_secret=<app secret>');
This returns a t...