I need to create a CSV file from a PHP array, I'm aware of the fputcsv() function. I've a recollection that a better function exists for this kind of stuff but I can't find it nor remember it's name.
Does anyone know of such function or am I imagining?
I might be making some confusion with the fgetcsv() function and the str_getcsv() ...
I've got PHP installed from the repos on my Ubuntu 9.10 local machine. Where can I find the source code to the PDO classes?
...
im running application on php..
after i update the status on the database, its not reflecting the correct status on the webpage... It will still display the first status which is -FOUND-
mysql_query("UPDATE registration.user SET STATUS ='-LOST-' WHERE UserID = '$userid'");
Anyone assist?
For the login page , i fetch from database:
...
How could i use regex to find this table in a page (need to find it by name):
<table id="Table Name">
<tr><td class="label">Name:</td>
<td class="data"><div class="datainfo">Stuff</div></td></tr>
<tr><td class="label">Email:</td>
<td class="data"><div class="datainfo">Stuff2</div></td></tr>
<tr><td class="label">Address:</td>
<td class=...
Hello,
Could you guys let me know what is wrong below, for some reason, when I click on the delete image, which is supposed to return the echo from dela.php file, but does not.
Thanks
Dave
<script language="javascript" type="text/javascript">
$(document).ready(function() {
$('#del_form').ajaxForm({
target: '#del',
...
Currently I do all of my web-based programming in PHP, and each day I get more and more anxious to try Python.
Not that I haven't played with it in an interpreter, but I mean really, write a web-based project in Python, and possibly move pretty much exclusively over to Python.
But, I know that Python isn't strictly a web-based programm...
I have been asked to find out if it is possible to connect Cyrstal Reports to a MYSQL database within a php website.
Is this possible?
Are their any alternatives
Thanks
Edit I suppose in the perfect world I am wanting to show crystal reports within a PHP website
...
Hi I'm fairly new to PHP and was wondering if there is an equivalent in PHP of an ASP.NET Listview or Gridview with paging and easy formatting?
...
Hi,
I am currently using md5 function to encrypt my password and save to mysql db which can not be decrypted.
Now my user want that when they forgot password, they should get same (old) password instead of new password.
So my question is that what should i use to encrypt my password and store in mysql Database.
And i can decrypt that...
Hey,
I'm very new to Erlang, and I am converting some of my PHP stuff, and I can't figure this one out. Here is the function in PHP:
public function raw_send($string1, $string2 = NULL, $type = SERVERDATA_EXECCOMMAND) {
$data = pack('VV', $this->get_request_id(), $type) . $string1 . chr(0) . $string2 . chr(0); // build data
$packet = ...
The funny thing is it did work for one evening. I contacted my host, and they are saying there's no reason it should not be working. I have also attempted to test it in Firebug, but it seemed to be sending. And I specifically put the email address (hosted in my domain) on my email safe list, so that is not the culprit either.
Would anyo...
As far as I know, it's only possible under Windows. But maybe, just maybe, there is some perverse way to achieve this under Linux..?
...
I want code for generating sprite in php . Is there any good code suggestion .
...
How to find checkbox values from Dynamically generated Divs in php using javascript?
Here is my code,
echo "<input type='text' name='chkID' id='chkID'>
<div id='mainDiv'>";
while($rowset = mysql_fetch_array($result))
{
echo "<div style='float:left; width=10px; border:solid 1px;'>
<input type='checkbox' value =".$rowset[0...
If I have a array with objects:
$a = array($objA, $objB);
(each object has a __toString()-method)
How can I cast all array elements to string so that array $a contains no more objects but their string representation? Is there a one-liner or do I have to manually loop through the array?
...
Hello Guys,
I am using Netbeans 6.8 and trying to create a custom PHP comment code block macro the /* */ style and not the usual double slash.
So far with googling and asking in PHPUGPH, I got this macro code (tools->options->editor->macros):
copy-to-clipboard delete-previous "/*" paste-from-clipboard "*/"
You must first highlight ...
hi
i want to find the name attribute with in a tag in a form using php4 . Does any one help me how it find..
eg
<input type="text" name="txt_name" value="" >
I want to know name of all the fields
...
I understand that bitwise operations are necessary for much low-level programming, such as writing device drivers, low-level graphics, communications protocol packet assembly and decoding. I am doing PHP for several years now, I have seen bitwise operations very rarely in PHP projects.
Can you give me examples of usage?
...
how to view Debugging Console not in popup window?
prefer in same window.
any idea?
...
Hi,
I have a PHP script that fails when executing a long mysq_query. The error message is:
Fatal error: Maximum execution time of 400 seconds exceeded in....
I use XAMPP for windows and I have changed the php.ini file (there is only one in my installation), setting max_execution_time to a large value that is not 400 seconds. Neverthel...