39,323 Topics

Member Avatar for
Member Avatar for Osagie_1

Can anyone help me clear this issue ? I have a JsonMaker class as: class JsonMaker { protected $jsonObj; protected $path; function __construct($filepath) { $this->path = $filepath; $str = file_get_contents($this->path, true); $this->jsonObj = json_decode($str, false); } public function Test_1($rootName){ $file = file_get_contents($filepath, true); $data = json_decode($file, false); foreach ($data->{$rootName} as …

Member Avatar for broj1
0
127
Member Avatar for Shikha_1

how msg is send to mobile from localhost . i need php code settings in nowsmsgateway settings in php.ini setting in httpd.conf file

Member Avatar for Sangeeta_2
0
217
Member Avatar for rohoni

Hi i am developing a new website for mobile shop in php, I need to implement to send sms for the login users, please help me with code in php

Member Avatar for Semy
0
352
Member Avatar for younes.keraressi

hey, im working on a site on drupal with a theme, i have the main page with slider, i created a new page and i want to use some jquery there, but i search on internet they said that add scripts[] = jquery.js into you them file, the problem when …

Member Avatar for younes.keraressi
0
283
Member Avatar for RobertDecousta

Hi, I really like to know much more about PHP? what is it? Please explain me clearly.

Member Avatar for diafol
0
290
Member Avatar for SimonIoa

I want to make my website a mobile application. I write in php and after a little research it seems that Zend is the best way to create mobile apps in PHP. Any ideas?

Member Avatar for SimonIoa
0
281
Member Avatar for kazkuzzer007

I'm trying to make a puzzle solver with php code like this <?php $GoalState = array(0,0,0,0,0,0,0,0,0); $CurrentState = array(0,0,0,0,0,0,0,0,0); $ChildState = array(0,0,0,0,0,0,0,0,0); function GetGoalState($initialstate, $goalstate){ $total = 0; $GoalStateGanjil = array(1,2,3,8,0,4,7,6,5); $GoalStateGenap = array(0,1,2,3,4,5,6,7,8); for($i=0; $i<8; $i++){ for($j=$i+1; $j<9; $j++){ if($initialstate[$j] < $initialstate[$i] && $initialstate[$j] != 0) $total = $total …

Member Avatar for Taywin
-1
428
Member Avatar for reynaud0000

Hi Guys i am having a very peculiar problem i have written a small code so that it is possible to sign up to the website i am creating with a few restrictions to each field however from what i see the code seems ok but each time i try …

Member Avatar for matrixdevuk
0
239
Member Avatar for SimonIoa

Hello i have a problem with my website. It is running slow. I asked the my server provider why is that, and they replied its because the webiste uses many embedded urls like youtube, vimeo, dailymotion and so on. And so i have to cache these embedded urls. Anyone knows …

Member Avatar for SimonIoa
0
636
Member Avatar for ravi142

Hello, I would create Login page. which - separate Php for random username password generator - this is just a dummy login with random username and password generator. No database required. - e.g like http://www.surgaliga.com/ **Need:** Is they any script that random suggest detail of login and password after given …

Member Avatar for heatherIDD
0
283
Member Avatar for mattster

Hi All, I am working with a Magento (v1.8.1) site, which until a week or so ago, was working perfectly. I am using the SM_AMAZ theme, and have no plugins which could interfeare with performance. Everything will be fine, then something in the admin panel will get changed, and the …

Member Avatar for imti321
0
387
Member Avatar for hankmeyer

I am Using a form to insert data into a table i have created, I receive no errors but for some reason, it states it worked, although it does not insert any data, Here is what I'm using: this is the form page: [CODE]<head> <link rel="stylesheet" href="../uploads/css/style.css" type="text/css" /> </head> …

Member Avatar for shafakhat91
0
9K
Member Avatar for dayanadolce

//i have made a function. but i can't call the function generateOrderedArray() as it says there is a Fatal error. help me! this //is my coding <form action="" method="post" enctype="multipart/form-data"> <html> <table> <tr> <td> <input name="location" type="radio" value="Jasin">Jasin <input name="location" type="radio" value="Merlimau">Merlimau</div></td> </tr> <tr> <td> <input type="submit" name="submit" value="Search" class="butoonfunction" …

Member Avatar for dayanadolce
0
362
Member Avatar for lloyd.farrell.7

Hi Everyone, I have the following php calulation $tplaunch = $tplaunch - $tpsold; This calculates as you would expect. I am helping to build a website that offers the first 25 members to purchase a product at a reduced cost. tplaunch is the number of user who will get the …

Member Avatar for lloyd.farrell.7
0
266
Member Avatar for bobgodwin

I need to sort items from multiple columns. I use this to get the id from the columns and format the data: $.fn.serial = function() { var array = []; var $elem = $(this); $elem.each(function(i) { var id = this.id; $(move_selector, this).each(function(e) { array.push( 'id[]=' + this.id ); }); }); …

Member Avatar for bobgodwin
0
444
Member Avatar for mwashu

please assist. i can not connect to my sql server (172.16.15.119). i always get this message"Fatal error: Call to undefined function sqlsrv_connect() in C:\Program Files (x86)\EasyPHP-12.1\www\malunde\connect.php on line 5" and the code that i used is: <?php $serverName = "172.16.15.119"; //serverName\instanceName $connectionInfo = array( "Database"=>"TPA-CS_UAT", "UID"=>"sa", "PWD"=>"tpa123"); $conn = sqlsrv_connect( …

Member Avatar for broj1
0
176
Member Avatar for Osagie_1

Good day everyone. I am trying to simulate (with php), an xml-like structure for json as follows: { "Articles": [ { "Article": { "ID": 111, "title": Origin of man", "author": "Man and Woman", "pubDate": "21st Feb, 2014", "summary": "Both Idiots" } }, { "Article": { "ID": 222, "title": "Origin of …

Member Avatar for diafol
0
270
Member Avatar for lloyd.farrell.7

Hi Everyone, I have the following script and I would like to rename the uploaded file to web-image(ext) The file is being uploaded to the correct location on the server and the database is being updated correctly, But I am unable to figure out how to rename the uploaded file …

Member Avatar for diafol
0
1K
Member Avatar for lloyd.farrell.7

Hi Everyone, I have the follow RewriteRule in my htaccess file that works as it should RewriteRule ^(.*)$ /product.php?pid=$1 [QSA,L] If I wanted to add another product page would I just need to add RewriteRule ^(.*)$ /productpage.php?ppge=$1 [QSA,L] for the Rule to work correctly? Thanks in advance

Member Avatar for lloyd.farrell.7
0
152
Member Avatar for davy_yg

input_image.php <?php $result = mysql_query("SELECT * FROM image_upload ORDER BY image_id ASC"); $data = mysql_fetch_array($result); $banner = $data['image_bn']; ?> <p><img src="../../images/<?php $banner; ?>"></p> <?php echo $_SESSION[$banner]; ?> line 13: Notice: Undefined index: adm_banner.jpg in C:\xampp\htdocs\portal\administrator2\admin\input_image.php on line 76 How to fix the error?

Member Avatar for imti321
0
184
Member Avatar for beerwinespirits

Hi, i am trying to make an order form that people select their candy they like and how much they want as well as their address and phone number for the website owner to go through and complete the order, i am having trouble getting the php mail function to …

Member Avatar for imti321
0
214
Member Avatar for kazkuzzer007

excuse me, I'm trying to create a function to copy the array, but the function does not work, please help. thanks before <?php function CopyState($from, $to){ for($i=0; $i<9; $i++){ $to[$i] = $from[$i]; } } $a=array(1,2,3,4,5,6,7,8); CopyState($a,$b); echo $b[2]; ?>

Member Avatar for kazkuzzer007
0
102
Member Avatar for imti321

i am missing something <?php $target = "images/dars/"; $target = $target . basename( $_FILES['uploaded']['name']) ; $ok=1; if (file_exists($_FILES['uploaded']['tmp_name'])) { echo "Sorry, file already exists."; $Ok = 0;} //This is our limit file type condition if ($target!=="image/jpg") { echo "You may only upload jpg files.<br>"; $ok=0; } //Here we check that …

Member Avatar for imti321
0
204
Member Avatar for Osagie_1

i have a php methode that checks if a passed in parameter is a date. Here's it: public function is_Date($str){ if (is_numeric($str) || preg_match('^[0-9]^', $str)){ $stamp = strtotime($str); $month = date( 'm', $stamp ); $day = date( 'd', $stamp ); $year = date( 'Y', $stamp ); return checkdate($month, $day, $year); …

Member Avatar for cereal
0
865
Member Avatar for imti321

(1)You have a PHP 1 dimensional array. Please write a PHP function that takes 1 array as its parameter and returns an array. The function must delete values in the input array that shows up 3 times or more? For example, if you give the function array(1, 3, 5, 2, …

Member Avatar for diafol
0
151
Member Avatar for kevin32

Hi. I'm looking for a social networking or dating script/software with the following features: > Standalone script/software to be used on my own server (no hosted solutions). > Supports mobile devices. Users can view my website, edit their profile and upload photos from their mobile phone. Can anyone recommend a …

Member Avatar for Jerry_8
0
201
Member Avatar for iamthwee

Hi guys, This one has got me completely stumped. Here are my trouble shooting notes. My upload script works absolutely fine without any changes on localhost. However, on the live production server my files do not get uploaded. My view is: <?php echo form_open_multipart('upload/do_upload');?> <input type="file" name="userfile" size="20" /> <br/> …

Member Avatar for iamthwee
0
9K
Member Avatar for davy_yg

I have some errors while trying to fix the following codes: update_image2.php <?php //LOAD IMAGE TABLE if (!empty($_GET['image_id'])){ $result = mysql_query("SELECT * FROM image_upload WHERE image_id='".$_GET['image_id']."'") or die(mysql_error()); $data = mysql_fetch_array($result); $image_id = $_GET['image_id']; $newfilename = $data['newfilename']; $class = $data['class']; $location = $data['location']; $minwidth = $data['minwidth']; $maxwidth = $data['maxwidth']; $minheight …

Member Avatar for matrixdevuk
0
892
Member Avatar for adsegzy

Hello Friends, Am working on a greeting card project (like www.funkypigeon.com) where after customizing a card, you can submit it to DB and a thumbnail of what you created will be generated. At submitting the card, I generate d customization in txt like below.But how do i generate a thumnail …

Member Avatar for cereal
0
428
Member Avatar for AntonyRayan

I stored a password in db, nw i want to change my password, with the fields of old password, new password, and confirm password my question is how to retrive or compare password that i have entered in db with old password that i`m going to enter . if it …

Member Avatar for diafol
0
77

The End.