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.
0
votes
0answers
9 views
how can i stop some words/letters from being swapped in php?
I am using php to swap text from one textarea and display in another, and most of it works, but sadly some parts dont.
i am using str_ireplace and then so far, 60 different words, with many more to ...
0
votes
0answers
15 views
$_REQUEST array is empty all of a sudden
We have a Flash/AIR app that runs from the desktop and communicates with php scripts on our server. Everything has worked fine up until a few days ago when the $_REQUEST array is empty instead of ...
-2
votes
0answers
19 views
Can't prepare a query and no error output
today I have some problems with my script, I can't prepare the query and the script doens't retrun any error:Database structure:
CREATE TABLE IF NOT EXISTS `razorphyn_support_list_tickets` (
`id` ...
0
votes
1answer
14 views
stripping whitespace and limiting <br> in nl2br()
here is a lot of whitespace
<br>
<br>
<br>
3 br's is too many... i want to trim it to 2 <brs> in a row
How can I strip out this whitespace and limit the ...
0
votes
0answers
4 views
Is there an existing implementation of the Short-Time Fourier Transformation in PHP?
I've been looking all over for a STFT implementation in PHP, but I can't find it anywhere and I'm not sure I trust myself to create one without making the complexity unnecessarily high.
I'm ...
0
votes
1answer
28 views
Execute another PHP script
I have a cron job that calculates the disk space on ServerA
I have a MySQL database on ServerB that stores the disk space values
ServerA in not allowed to access MySQL database on ServerB (Rules out ...
0
votes
0answers
7 views
Display image created using GD library in different PHP file
I have index.php where I ask user to select two images to combine.. The selection is done using check boxes.
User then clicks on the button on which I pass the selected image paths to MergeImages.php ...
0
votes
1answer
8 views
Web.Config to block entire website
I have a login system in place at the moment to stop all non-authenticated users from viewing the content of my website. I can confirm the login works.
The problem I am facing now however is with my ...
0
votes
1answer
16 views
Using PHP to call python script
I have the following PHP code that I want to use to call a python script (ring.py)
<?php echo '<p>Hello World</p>';
$output = exec('python ring.py');
?>
The program ...
0
votes
1answer
15 views
file_get_contents doesn't work with image WAMP php 5.3.13
echo file_get_contents("result.png");
allow_url_fopen = On
php 5.3.13 raw data
?PNG \0\0\0 IHDR\0\0\02\0\0\0f\0\0\0? ?P\0\0?IDATx^?y?]?u??????Rk
r??\\?\"?l??]?W
php 5.2.6(work ...
-4
votes
0answers
29 views
How to display a one recored only in Database Mysql
i have a table that have 2 rows
on database
table called button
ID - int - Primary key
PressButtonAll - int
and in my php file i add this code
<?php
if($_POST)
{
...
0
votes
0answers
10 views
insert docx document into another docx using phpword
I am using phpword (http://phpword.codeplex.com).
But phpword itself doesn't have ability to load template file and insert another docx into loaded template.
example:
1. i load template.docx
2. i ...
0
votes
0answers
10 views
Paypal PHP SDK Credications and Authentication, I can't get it to work
I am using the official PHP Paypal SDK here: https://github.com/paypal/rest-api-sdk-php
I'm confused how authentication works. My real paypal account gives me: username, password, signature. My ...
1
vote
1answer
40 views
Is array_key() the fastest solution for this?
I'm writing an application for my research which deals with very big arrays and lots of iterations on their values. For reducing the calculation time, I'm implementing several improvements in the ...
0
votes
0answers
9 views
Wordpress Multi Tiered search categories
Trying to setup an advanced search form on a website that searches through categories. Looking for something that has a drop down menu with parent categories and a secondary drop down menu with all ...