I'm basically wondering if Python has any OOP shortcomings like PHP does. PHP has been developing their OOP practices for the last few versions. It's getting better in PHP but it's still not perfect. I'm new to Python and I'm just wondering if Python's OOP support is better or just comparable.
If there are some issues in Python OOP wh...
Hi everybody, I'm trying out code igniter, and I came across an error message while trying to insert a new row in my Mysql database.
The text I'm trying to insert is in French, and contains some accents.
Here's my code :
$data= array(
'title' => $this->input->post('title'),
'date' => $this->input->post('date'),
'mytext' => $thi...
Let me rephrase my question, I have a mysql database that is holding emails to be sent, on a shared host. I would like to run a cron job that will read the database and sent out any messages in the database every 10 minutes or so.
Now my question is, what is the best way with php to read my database and send out the emails in small batc...
Hey!
I have a computer on a small network, so my ip is 192.168.2.100.
I am trying to get my real ip. I download the no-ip client but that just seems like a lot of trouble for such a simple thing.
I created this php script that got http://www.ip-adress.com/ page and retrieved the ip it gave me.
Is there a simpler way? Either using C, ...
Hi. I'm developing a simple voting system for my site with jQuery. When I tested it on my local (own PC server), it all worked fine (on IE, Firefox and Chrome). When I uploaded to my main server, Firefox gave me an error.
Considering that Firefox works fine on my local server, it has to do with the difference in servers...
This is the ...
instead of using exec in our script to do an nslookup, is there an easy way to write it programmatically in PHP, Python, or Ruby?
...
Hi to all,
I'm aware of all the canonical ways of getting clean URLs (www.mysite.com/getarticle?a=123 vs www.mysite.com/getarticle/123).
Those solutions include mod_rewrite, force_type and various configurations of apache, mostly.
Since I don't have access to such config on my shared hosting, is there any solution / hack to work around...
In my PHP file,I'm reading out bulk of information using query like below:
SELECT GROUP_CONCAT(CONCAT('<comment><body><![CDATA[',body,']]></body>','<replier>',if(screen_name is not null and !anonymous,screen_name,''),'</replier>','<created>',created,'</created></comment>') SEPARATOR '')
FROM idiscussion
LEFT JOIN
...
Can the php5apache_filter be used as an input filter?
Haven't found much documentation for php's filter sapi.
...
Hi,
as people suggested me, I started using PDO library instead of Creole.
Most of things are almost same as Creole, but I cannot find a function to set limit.
I do not think that I should include limit statement in my query string since mssql and mysql do not share same syntax.
please advise me.
...
My boss has an idea for a web app he would like to build. Long story short it will need a lot of CMS features and a lot of social networking features, and some other unique things as well. We looked into just leveraging different CMS platforms like drupal and joomla etc, but they really don't meet our needs.
We have decided to build o...
For a particular PHP script I'm working on, I'm going to use a system call to the Lynx web browser to convert HTML to plain text and capture the output:
$text = `lynx -dump stackoverflow.com`;
/*
#[1]Stack Overflow [2]RSS
[3]login | [4]about | [5]faq
____________________________
[6]logo homepage
* [7]Questions
* [8]Tags
* [9]Use...
Hi All,
I have a page that does the following:
The browser loads a very simple page with a valid head and body, with only a script/noscript pair as content.
In the body, it has a script (script a) that runs a function onLoad. This function dynamically includes a second script (script b), and runs a function in it when it becomes avai...
I'm using text boxes to let users change the quantity in a ecommerce website, e.g., http://nordschleife.metaforix.net/118/118/index.php/sony.html
There are two problems that I hope to solve:
On the catalog view (such as the one from the previous URL), the up and down arrows only work for the 1st text box. All subsequent entries don't ...
For example, if I set some headers to download a file from my server I would do
header('Content-type: application/pdf');
header('Content-Disposition: attachment; filename="downloaded.pdf"');
And then just output the data of the file
Is it possible to set a remote url in the Content-Disposition?
Example header('Content-Disposition: a...
Thanks for all the great answers, this helps a lot!
Hello, I need some advice/help (obviously)
I'm pretty new to jquery/ajax in general but I have been able to do quite a bit so far. Here is what I am TRYING to do and then what I have managed to do so far.
I am trying to emulate the wordpress post categories. Where you are writing ...
Hi,
I am using twitter api for posting. I want to know is there any method for changing the application name for example when i post it shows:
about 1 hour ago from web it should be converted to about 1 hour ago from myapplication name
Please guide me on this.
...
Hi,
I'm looking for an API or a combination of API's where I can send "Anjuna, India" and get back a list of places nearby. The data is mostly for "third world" countries, less so for Europe/US. Any suggestions/ideas about how to structure this?
...
Hi guys, im wondering if there is any online service who provide API about the train timetables (arrivals, departure, etch..), at least for the european stations.
I know www.bahn.de, who provide the accurated timetables for many european countries, but i didin't find any similar to a api service.
My goal (well, just a future-project) i...
Hi Guys,
How can I convert all single quotes to double quotes in all HTML tags only? Is there an easier way to do it?
Thanks :)
For example:
How can I convert this string (actual data from my work):
<TEXTFORMAT LEADING='2'><P ALIGN='LEFT'><FONT FACE='Verdana' style="font-size:10' COLOR='#0B333C'>My name's Mark</FONT></P></TEXTFORMAT>...