I have started learning Code Ignitor and I am very impressed, and have had an easy time. The only issue I haven't been able to figure out is how to reference images, javascript, and CSS. I have each as a folder (css,js,img) in the root folder. This works fine for my default view, but breaks with the sub views. How am I supposed to handle...
Hello.
Is it possible to use PHP to send emails, process bounces and feedback loops, get delivery statistics with PowerMTA? Can PowerMTA handle all these tasks?
We plan to create a system for email marketing.
Best regards, Oleg.
...
i am creating a simple authentication, acl script. i wonder if its ok to store a PDO database handle in a global variable?
whats the bad effects of using a global variable? anyone can edit from anywhere?
if i create a singleton like in zend framework Zend_Registry how will it make things any better?
...
I am implimenting role based access control in a tree structure (organization) that normally would be stored in LDAP but this time is in MySQL. Part of my requirement is to give people acccess to part of the tree. In LDAP I would use a ACI to filter part of the tree. I am just not sure on the best way to do this in PHP/MySQL.
What is th...
Hello, people!
What is better to use in this context, static methods, or simple public method and call them always like this: $request = new Request();
if($request->isPostRequest()){ do smth }
ofcourse its easier to use static, but what is more properly to use?
Class Request {
public static function isSecureConnection() {}
public sta...
How mature is PDO for PHP 5.2.13 for a serious project?
(By serious I mean a script that is going to be sold and deployed in different platforms and environments. Something not serious would be for testing or developing, in this case)
Currently, most host companies are running PHP 5.2.13 and adoption for 5.3.x seems too far away...
S...
how can i parse element like this example
<?php
$xmlstr = <<<XML
<?xml version='1.0' standalone='yes'?>
<movies>
<movie>
<title>PHP: Behind the Parser</title>
<characters>
<character>
<name>Ms. Coder</name>
<actor>Onlivia Actora</actor>
<actor:view id='44' />
</character>
<character>
<name>Mr. Coder</name>...
in my application a user can post his/her article that other users can response upon ans vote up and down also like stackoverflow has for posted question ans answers.
How can I restrict user so that he/she can't vote twice ?
...
Any suggestions to show user messages, Something to avoid a lot of if/else statements.
if($row->num_rows > 1) {
ok
} else {
print "There is no...";
}
thanks!
...
Taking user input such as "tomorrow", "in three days", "3 months 30 days", "march 30, 2011" and interpreting it into a timestamp usable by php.
I feel like I've seen something like this before in a task management system. I'd like to use it for something a little different but I can't find anything precooked anywhere. Maybe I saw it on ...
Here is a function in a Controller that lets a user log out. But how do I enable the user to do this? I would think the answer is to put a hyperlink in a View. But I can't figure out how to make a hyperlink that invokes the function. (And I'd rather not build a form ...) Source for this code
class Auth extends Controller {
.......
Hello, i got a question, how do you pass a variable from jquery to php with a page refresh.
When i click on a button from my menu i would like to pass a variable from jquery to php but because the page refreshes i cant catch it in php, anyone know how to catch it even when the page refreshes? tyvm
...
It's trivial to get image from server but I think about something different. It is crazy question but... Is it possible to send file (image) to a server but not using form upload or ftp connection? I want to send a request to eg. http://www.example.com/file.php with binary content. I think I need to set Content-type header image/jpeg but...
I'm having a little practice regarding mysql stored procedures.
Here is the php file which calls it:
<?php
include('conn.php');
$cor=$_POST['course'];
$sql="CALL list('$cor')";
$result=mysql_query($sql);
?>
<table>
<tr>
<th>Name</th>
<th>Course</th>
</tr>
<?php
while($row=mysql_fetch_assoc($result)){
?>
<tr>
<td><?php echo $row['N...
With the help of a PHP Class called EZPDF.
...
Hi,
im trying to connect to a wsdl service ,
but getting this error:
wsdl error: Getting http://api.didww.com/api/?wsdl - HTTP ERROR: socket read of headers timed out
locally there is no problem, but on the remote server i get this error.
remote server: Linux CentOS (FreePBX)
the code:
$client = new soapclient($site, true);
$err ...
hi! i have some problem.
I need to check the url is image url or not? How can i do this?
Example : if i put http://www.google.com/ is not image url.
but if i put http://www.google.com/profiles/c/photos/private/AIbEiAIAAABECK386sLjh92M4AEiC3ZjYXJkX3Bob3RvKigyOTEzMmFmMDI5ODQ3MzQxNWQxY2VlYjYwYmE2ZTA4YzFhNDhlMjBmMAEFQ7chSa4PMFM0qw02kilNVE...
Hi, I'm using Zend Framework 1.10.7 and I'm looking for a way to use a per module bootstrap to set up specific module configuration.
I thought it was as simple as extending the Zend_Appplication_Bootstrap_Bootstrap and put it at the root of the module directory, but it doesn't seem.
Thank you.
...
Hi, in my php5 code i want to use the UNIX_TIMESTAMP function to convert a datetime to a unix timestamp without using php code to convert as i believe this way is quicker but how do you then get the unix timestamp out of the rowset ie how to index into the rowset
to get the integer unix timestamp out
Below is a summary of the database s...
while ($row = mysql_fetch_array($result, MYSQL_ASSOC))
$row = mysql_fetch_array($result, MYSQL_ASSOC) //it's not increase ?
}
i want increase two time in each loop?
for
<table>
<td>**1 times**</td><td>**1 times**</td>
</table>
...