Tagged Questions
PHP is an open-source server-side scripting language widely used in web development. Use this tag for questions about PHP classes, methods, functions, syntax and use.
-1
votes
0answers
12 views
PHP - Insert Into mysql multiple rows best approach
Ok, so let`s presume I have 3 sql tables and a text file.
Text file is in CSV format.
File structure - imagine a array for each line. Value 0 timestamp; 1,4,7,10 values for tab 1; 2,5,8,11 values for ...
0
votes
0answers
4 views
swapoff/swapon when script is running
Sometime the swap memory hit 100% and the running script (PHP) is considerably slower. I'd like to ask in which scenario it is okay to run the command swapoff -a ; swapon -a to clear up the swap ...
0
votes
0answers
10 views
Inserting/updating data into MySql database using php
I am trying to insert/update the MySql database depending on whether a post already exists on the database (I am check this with a unique user_id). The following works:
$select_query = "SELECT * ";
...
-3
votes
3answers
40 views
Modifying the contents of a text file
I am trying to modify text file with PHP but my code is not working. Here is my php code to modify the content of text file.
<?php
$file = "results.txt";
$fh = fopen($file,'w+');
...
0
votes
0answers
15 views
Page not redirect to any other page during download
I have a web page in which there is a option to download file. Download is fine but during downloading, page is not redirecting to another till the download completed.
The code I used to download a ...
0
votes
0answers
5 views
In flexpaper I want to show next and previous page using right and left button using its API
I am using this to button using onclick
<input type="submit" value="Invoke" onclick="getDocViewer().nextPage()">
<input type="submit" value="Invoke" onclick="getDocViewer().prevPage()">
...
-1
votes
0answers
30 views
error when updating image
that is code for update image and category in database this code is update only category name but image is not updated its show an error Undefined index: picture in ...
0
votes
0answers
41 views
Determine where PHP is exiting
I cannot figure out where an application is exiting. I'd rather not bother with a debugger, and adding declare(ticks=1); to each file would be a pain (I'm not in the mood for dealing with sed). A ...
0
votes
2answers
14 views
Writing to CSV Issues
The output file doesn't seem to be placing data properly into the CSV
include_once ('database_connection.php');//Including our DB Connection file
if(isset($_GET['keyword'])){//IF the url contains the ...
0
votes
0answers
12 views
passing variable as hidden from default.php is not working - joomla 3
hi im new on module development. i need to know how to pass a variable from tmpl/default.php to mod_.php since i couldnt achive it from the tutorials that i have reffered. this is how i used:
...
-3
votes
1answer
16 views
How to set up remote database server (PHP script)
Can you set up a remote database server even if your Operating System is not Windows Server? E.g. Windows 7
0
votes
1answer
24 views
PHP slow copy of files
I have an issue that i can't resolve. I have a script which copy small image files. The problem is that for one image variant it gets about 1.5 seconds. Is there anything that can get it faster? I'm ...
0
votes
1answer
10 views
about Reverse SSH tunnel request
a problem about Reverse SSH tunnel request
A is a server with a world wide web IP,
B is a server or computer in a local area network.
B starts a reverse ssh tunnel request to A,the ssh tunnel is ...
0
votes
0answers
13 views
Adding another field to upload an image using Simpla CMS
Hello all did anyone used SimplaCMS? If so I have a following problem I need to add an other field to upload an image that I will be using as a sticker. For example sale, top hit and other. I need to ...
0
votes
0answers
16 views
fetching value from related multiple rows & columns in PHP SQ
I have database as follows. using SQL, PHP
Code Period Period2 type amount
14 4 2013 TP 500
14 5 2013 TP 300
14 6 2013 TP 175
13 4 2013 TP 150 ...