So yea, i'm planning on selling a web application i've made. I know i could never stop people from copying files and sharing them, but how would i go about placing pieces of code that could alert me of usage?
I know someone motivated enough will eventually crack it.. i'm just interested in the possible solutions(using php, especially).
...
I am in the very beginnings of teaching myself php.
I am giving myself micro projects to push myself.
Thus far I have a MYSQL database, created through a php form. One Column is for karma.
I have the values of the database table display in an html table, and at the end of each row, I would like a click on a hyperlink, lets say a plus si...
The other day I was looking into Zend Server and I was wondering why I would use this? OK, they say it's all tested and mission critical and Enterprise ready etc. But to me that's just the marketing department talking.
Is anyone out there using this product and if so can you share your experiences with it and maybe you could also elabor...
Hi,
I just found out Luminotes (http://luminotes.com/) offers desktop version. I downloaded it and executed. When I execute it, Luminotes opens up a web-browser. It seems like that it uses its own internal webserver because URL shows http://localhost:6520/something@@#$
Is there a way to pack web language files into exe like Luminotes d...
i am sure that my gdlib is enabled since the imagecreafromjpeg() function precedes the part where i call the imagecreatruecolor() and there's no error generated from that
however the script breaks on the part (or rather fails with no error message and simply returns false) where imagecreatruecolor() is called..
how can i find the cause ...
Are there any plugins or hacks that allow assigning widgets to individual pages?
EDIT:
Using self-hosted (.org) 2.8.4
An example of use would be: when you're editing a page in the admin, you'd ideally have the ability to assign widgets to that specific page. The default WP behavior is more "all or nothing" in that you assign widgets to...
Hello All,
I need to execute a TCL script from PHP. At the moment I am using the following code
<?php
echo passthru("tclsh83 Testcases/source.tcl ");
?>
This is working. But this creates a shell for each call . How do I open a shell and communicate to and fro from the TCL script . Any pointers will be appreciated .
Regards,
Mithun...
Hello I have an array of "Id's" that comes from DB. I have also a table like this :
And the "Id's" array contain record id, ie:
Array ( [0] => Array ( [id] => 1 [code] => GHY87 [description] => Hello World ) )
Now i want, when i checked any-one check box & then click on Edit Button(Link) then i get the id of that check box.
NOTE:
I...
If you are going to send emais to 3000++ users. Will you still use php mail function? I heard, it was not secured enough. How do I send a secured blast emails? I dont want to use third-party software if possible.
If you are going to send blast emails in php, what method or functions you will use in php?? (Tried google "advanced sending ...
Hello,
The code below returns the top 25 most recently-created tables in a MySQL database.
$index = mysql_query("select TABLE_NAME from INFORMATION_SCHEMA.TABLES where TABLE_SCHEMA='bookfeather' order by CREATE_TIME desc limit 25");
Each table has the following format:
id INT(11) NOT NULL auto_increment, site VARCHAR(350) NOT NULL...
hi all, I came across a script to display the last X amount of blog posts from my blogger account, however I'm getting this warning:
Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of xml_set_object(). If you would like to enable call...
Hi,
I am trying to implement a dictionary-type service.
I send a request with php using cURL to dict.org with the dict protocol.
This is my code (which on its own works and may be helpful for future readers):
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "dict://dict.org/define:(hello):english:exact");
curl_setopt($ch, CURLOPT_RETURN...
I am building an online article website. I have a php script called view_article.php that displays articles. The way the page knows what article to show is by using a $_GET variable in the URL.
For example:
/view_article.php?article_id=1 views article 1
/view_article.php?article_id=2 views article 2
Here's the catch. In IE8 whe...
A Perl script (which I do not control) appends lines to the end of a text file periodically.
I need my PHP script (which will run as a cron job) to read the lines from that file, process them, and then remove them from the file. But, it seems like the only way to remove a line from a file with PHP is to read the file into a variable, re...
When a PHP site is requested like e.g. somesite.php?a=some text # some more
Currently it seems like $_REQUEST["a"] returns the string "some text ", how can I get "some text # some more". Are there other characters which get similar treatment by PHP?
...
hi,
i've read alot of questions here regarding SSO and openid. it helped me alot in understanding SSO & Openid concept.
just have a little confusion, i'll try to explain below:
user visits www.websiteA.com
user logins with Openid and if success then he's logged in. a cookie is created and sessionid stored in shared users db.
user vis...
here's the controller function register()
public function register()
{
$userdata = array();
$formdata = array(
'uname' => '',
'password' => '',
'email' => '',
'fname' => '',
'lname' => ''
);
// copy the form as errors
$errors = $formdata;
// process data if form is submitted
...
Hi guys all of a sudden I'm getting this error in my Zend program where I am trying to send an email. I have no idea whats wrong here :(
PHP Fatal error: Uncaught exception 'Zend_Mail_Protocol_Exception' with message '501 <>: missing or malformed local part
It was working fine till a few days back...
...
I just moved from ZF 1.6 to ZF 1.9, there is a lot of changes since i started with it, and i've to refactor some of my libraries.
In order to don't forget anything, and to have a great generic library where i can pick up elements, i was wondering what are your most used generic classes you had to write for ZF ?
I'm thinking for example...
I'll cut right to the chase. All I can achieve at this point with this class is a database connection. I am unable to make a query. Can you show me exactly how to get this working and/or show me how to recode it in a better way.
<?php
class database{
public $dbHost = '';
public $dbUser = '';
public $dbPass = '';
public $dbName = '';
p...