Hello friends,
I'm totally new guy in web development. Now I'm trying to implement a code to send html email with embeded image.
I already tried for simple html email with image but this image is taken from server.
I don't have fluent english, but I think you understand what I meant to say.
Thanks in advance
...
I have an image $file (eg. ../image.jpg)
which has a mime type $type
How can I output it to the browser?
...
I'm curious, what are the advantages (and disadvantages) on using a framework with PHP?
I've been using PHP on and off since version 3. I've never used any of the frameworks available for PHP, so what am I missing out on?
...
Hello, how could I add some variables to my layout.phtml?
I could add it in every Controller like here: http://stackoverflow.com/questions/1537700/sending-variables-to-the-layout-in-zend-framework
But that's not really suggestive and in the Bootstrap I don't want to add it too.
...
Begginer's question.
Can I use PHP in javascript?
For example in jquery,
...
...
triggers.eq(1).post('<?php admin/categories/delete/'. $list['id']; ?>);
...
I have added php extensions directory (which contains php_pdo.dll, ...) to path environment variables, still when launching php.exe on command line, it complains it cannot find this dll and others.
What's wrong ?
Thanks.
...
Hey, I'm quite experienced with PHP but I have no idea what the keyword abstract does when it comes down to object orientated programming. Can anyone explain in plain english what it can be used for?
What situations would I use the abstract keyword in? How does it change the class/interface?
...
Hello, I'm thinking about to store dates on user login in my site, but I don't know what is the most logical solution.
Initially, I though to use server timezone, and then to manage it using difference operations between server machine date and user machine date, but I've also considered to change it direclty using timezone and php clas...
which one is the fastest for iterating through arrays in php? or does another exist which is also faster for iterating through arrays?
...
Hello.
A couple day ago i noticed that traffic had increased dramatically. Upon checking i noticed in my stats program that the extra traffic was from a direct source.
...
My script was working before but when I changed all the mysql tags to mysqli everything stopped working. Can some please help me make the script work agian.
Here is the script.
<?php
$db_host = "localhost";
$db_user = "root";
$db_pass = "";
$db_name = "sitename";
mysqli_connect($db_host, $db_user, $db_pass) or die(mysqli_error());
my...
Hi there,
I am currently working on a php framework, which is in some cases structured like the ZendFramework.
It has MVC etc.
I did not found any equal matching to my problem.
My "problem" is I have a variable number of classes (models, controller), e.g.
http_handler.
Now I have that much classes I can not set them all manualy into va...
Hello,
1/ If I run curl_exec with no options, the fetched page gets output on php's standard output (the html page being served back).
2/ If I run it with the RETURNTRANSFER option set, I can get the whole page in a variable.
How can I get a stream, that I can then manually parse?
In case 1/ I cannot access the data to parse it and in...
I've found many examples about UTC tables and php date methods to convert it, but I still miss a simple way after got server date, to converting it into an user timezone selection on my web page.
On this page http://vkham.com/UTC.html I've found a clear guide to understand the range, but I don't know how to connect for example "Europe/R...
Given a pretty standard set of related tables like Customers, Invoices and Line Items. I need to make a query like "Select all customers that have invoices that have 5 line items or more" or "Select all customers that have more than 2 invoices" or lastly "Select all customers that have line items totaling more than $100"
I'm doing thi...
Hi all,
I'm pretty sure there is a solution for this but I'm not sure about how to phrase it correctly.
I have a form that needs to be saved in a database, pretty simple done in php and stored in a mysql table. But maintenance is pretty tedious, so I'm wondering if there is (or I should write my own) a solution to write the form's questi...
<input type="text" id="title" name="title" size="50" maxlength="110" />
You see, the maxlength is 110, but I was shocked when I found that I input 114 characters when I used
echo strlen($title);
Any idea?
By the way, what I input was Japanese text. What's wrong?
...
I was wondering how can I correct this warning I keep getting listed below.
I'm using PHP & MySQL
Warning: min() [function.min]: Array must contain at least one element
Here is part of the code I think is causing the problem.
$tags = tag_info($link);
$minimum_count = min(array_values($tags));
$maximum_count = max(array_values($tags...
Concerning this post, I'd like to add css,images and js to my codeigniter application. My question is after you add path to your header file href="<?php echo base_url();?>css/moorainbow.css" , where do you actually put your files, is it in system, application, view or controller? I found like 10 articles so far explaining the same proced...
I sometimes end up having data in an array that starts far into the array, at position 25 instead of 0 for example.
Example:
Array
(
[16] => Array
(
[0] => http://rapidshare.com/files/268123830/hmh.fo3-oks.part01.rar
[1] => Marked as illegal
)
[17] => Array
(
[0] => h...