How to replace text in a PDF file?
How to do it with help of PHP? ...
How to do it with help of PHP? ...
I compiled APC , with succes. Added it to php.ini (php5) Only the first page load works for a page, refresh will give connection error. if i load phpinfo() with the first loading pageload..it indicates apc is working. seems like it works..but is not returning cached pages. kind of newbe in this area..so help is welcome. ...
Hello, Consider the code below, why it is not working? <?php $str = " <h4> title </h4> "; $result = preg_match_all ('/<h4>([\d\D])<\/h4>/mi', $str, $matches); var_dump($matches); ...
I'm a new guy in PHP OOP concepts. One of the first things that caught my eye that I can't include a php script to multiple classes just by writing it once at the begining of the script. I mean <?php include 'var.php'; class userSession{ /* all the code */ public function getVariables(){ /* use of variables which are inside var.p...
i want to make a new data structure using arrays for this query it will be like : will start with a query and a code example i want to make a new data structure using arrays for this query it will be like : //this is for the first headline [46] => Array ( [headline_name] => headline 1 [score] => 50 ...
Hello i have a problem. i'm using PHP to build my website and there is a dynamic video content that each time a different video/quicktime will be posted. the problem that i'm facing is setting the width,height of a video because i have many videos with different sized i want the videos to be posted in their sized i don't want to set w...
ajax code- ... xmlhttp.open("GET","voting.php?qid="+qid+", uid="+uid+", type="+type,true); ... is this the correct way to sent three parameters?? html- <td ><img src="images/up.jpeg" style="border:none;" title="Like" onclick="doVote($q_id,$_SESSION['UserId'],up)"></td> when I am clicking on this image ajax script is not working...
Hi, I'm trying to create custom resource to extend existing zf resources. It works fine if I choose a different like 'Myrouter' as resource name but if I try to override Router it doesn't work. Here is my configs.ini (partial) autoloaderNamespaces[] = "Mlo_" autoloaderNamespaces[] = "My_" pluginPaths.Mlo_Application_Resource = APPLIC...
Hi Is it possible to pass a variable to 'file_get_contents' in php? Am getting errors and wondered if it was my syntax. Am using the code below. $page=file_get_contents('http://localhost/home/form.php?id={$data['form_id']}'); $fp=fopen('form.html','w+'); fputs($fp,$page); fclose($fp); thanks rifki ...
Hello, we're developing one service to be integrated with various social networks and would like to allow users to be authenticated with their facebook-google-twitter-etc accounts in a simple one-click way. Most of the huge network providers permit to do it with their proprietary APIs, but for small group of programmers as we are to su...
Hello all, I have just exported a table using phpMyAdmin and I have tried to import this table into my local database by importing the sql file I have just exported. After phpMyAdmin imports 330 rows of the 15,000. It says: 1054 - Unknown column 'font_name' in 'field list' How can anything go wrong, I thought it was straight for...
Is function overloading possible in php.If yes, then how and if not then why? Thanks in advance. I have checked the php manual which gives solution to overloading as mail() function can be overloaded by mb_mail() function . But is this the proper way for overloading ...
Hello is there a way in PHP to save an image from video/quicktime video ? ...
Can anyone help fix the code below... I'm loading data into a table with three columns using the code below into a table on clicking a link (This part works fine by itself): $(document).ready(function() { $("#myTable").tablesorter(); $("#ajax-append").click(function() { $.get("get_data.php", function(html) { ...
I have recently began working as a developer and working under a more senior developer who is kind of supervising / mentoring me. A lot of things that he is advising just dont seem right though. For example, he tells me to just write my code in a procedural way ignoring how well its written or its overall design and just get it to work...
I have next settings in application.ini resources.db.adapter = PDO_MYSQL resources.db.params.host = localhost resources.db.params.username = some resources.db.params.password = somepass resources.db.params.dbname = name resources.db.isDefaultTableAdapter = true have 2 similar models Zend_db_table_Abstract in first model i use $db = ...
Is it possible to login to my gmail account and send mail using curl in php? I don't want to use pop3 or any other function. $msg = "something"; $email = "[email protected]"; $pass= "something" function send($msg, $email, $pass) { //something } I have never used curl, to be honest. Have just heard of it. ...
Hello, I have a Windows 2008R2 based intranet server running a PHP based intranet application in IIS. We want to improve the intranet now and integrate data from external systems, for instance data retrieved from the Exchange web services or information from a Sharepoint webservice. Log in for the users with their windows credentials wo...
As some of us have created their public site without an academic background, I ask this question mostly to professionals: Enhance oneself : Non professional may encounter a barrier: it's easy to learn the basics (vars, loops, basic sql manipulation), but there are no "long term" tutorials, which really gives a deep knowledge. I know t...
A user can select a performance, so the performance elements have unique ID's. I want to basically say: Select all reservations->reservation['seat'] FROM performances->performance['id=2']. Hope that makes sense, I really am struggling with selections in simple XML. Thanks in advance, Henry. <performances> <perform...