« first day (257 days earlier)      last day (53 days later) » 
00:00 - 20:0020:00 - 00:00

8:02 PM
0
Q: PHP check if string is properly formatted

xZeroI have a PHP application which should require a special activation key for unlocking. So I want to create scripts which will check if $user_input is properly formatted. An activation key will be like this: 1E63-DE12-22F3-1FEB-8E1D-D31F Numbers and letters spacing may vary. So activation key ma...

-1
Q: two inner joins not working

Arun ArunThis is my wordpress query i have used two inner joins and it is not working please help SELECT wp_posts.*,wp_em_events.*,wp_em_locations.* FROM wp_posts INNER JOIN wp_em_events ON ( wp_posts.ID = wp_em_events.post_id ) INNER JOIN wp_em_locations ON( wp_posts.ID = wp_em_locations.po...

-1
Q: Logic Help: Need to return unused Answer to Available Pool without returning all Answers to Pool

user2950544I have 8 questions that can be answered 1-8. When an answer is selected, that answer may not be used again for another question. i.e. If question 1 is answered with the answer 7, 7 may not be used on another question. This is working. My problem arises when the user decides he doesn't like the ...

0
Q: jQuery disable form submit in less than xx seconds

Sumith HarshanI have a user registration form.I need to check if user form filled in less than xx seconds(5 seconds). If less than 5 seconds disable the form submit. Some thing like that disable the submit button click or return false or like that. I wrote some jquery scripts.But not correctly working. Here ...

0
Q: How to make https requests in symfony2 functional test?

Omer TemelHi i am using phpunit for testing and Symfony\Bundle\FrameworkBundle\Test\WebTestCase for unit testing. So far there were no problem but now we start to use https and my tests are not working anymore.I start to get 301 response code for my every request in my tests. My question is how do i tell t...

1
Q: Datas from database on my page

Tamas EdithI should need a little bit your help, if you can.. I wanna do the next thing: to introduce datas from a table from database. this must look like a webshop where are a lot of tables or divs with the products(image, details, price, quantity). how can i do it in php, to no write in every div every p...

0
Q: Drupal log in with a curl

user2950124I'm trying to log in a drupal via curl. I got message: 'logged' with a command: echo "logged"; which is in a if statement that tells me how everything was fine. I think that I have a problems with a cookies. <?php ob_start(); // Initiate the output buffer function mymodule_get...

0
Q: How can I group on a dynamic rounded value?

user2278448I keep getting no results in php, but I can see my query is returning multiple rows in phpMyAdmin; the thing that looks strange to me is that phpMyAdmin says 'showing rows 0-0' in phpMyAdmin even when many rows are shown. My main need is to get the data of each row in php. I'm working with poke...

 
8:26 PM
0
Q: A proper way to build a robust API for the social application?

sandaloneThere is an existing social web app and the client now wants to make mobile applications for it. We need to make an API which will be robust and which will not hang down when 100k existing users start using these mobile apps. Do you have suggestion about the proper way to build this API? We ha...

0
Q: How to update php and apache for zpanel to the latest version?

Arh HokagiHello i run a dedicated server (ubuntu 12.04 lts), and i have successefully installed zpanel 10.1.0; My question is how can i upgrade php to the latest version (5.5) ps: i don't need suhosin to be compiled with php. Thank you

0
Q: modify html output when add image in posts and pages

Ahmed Rhumai'm trying to edit the output of add image in posts the normal code from wordpress is <a href="http://huemix.ly/wp-content/pics/pic.jpg"><img src="http://huemix.ly/wp-content/pics/pic.jpg" /></a> i want to replace that output with <div class="huemix"> <img class="posts-img" src="http://hu...

0
Q: how to use MDB2

Lexy FeitoHello everyone i am trying to use MDB2.php. i have downloaded xampp with the php 5.4 version. i understand that in order to use MDB2 i need to include it in my php file. this is how i am doing it. my createTable.php file its in C:\Users\Lexy Feito\Desktop\xampp\htdocs\php\COPassig3. So i use the...

0
Q: Saving and restoring javascript objects without JSON

TejayBomanI have a page on a site I'm working on, the page is called 'create.php'. It allows users to create javascript objects called 'entities' on HTML5 canvas via mouse-click. I would like the created entities to be saved to a mysql database and then be recreated on another page of the site, that page i...

0
Q: $this->render() function vs connect::router

pmac89So, I'm not sure what to do here. Do I use render() to call a subview in or should I route() to the child controller of the view I want to display? In the render() use it does not use the controller of the rendering (child) view as the variables are undefined. I used the ClassRegistry::init to ...

1
Q: "GET" method encoding French characters incorrectly in PHP

KaruvägistajaI have a site that uses get method to get the parameters from URL. The URL has French characters is it and by using get method the characters get ruined. How can I use get method without encoding problems from French language?

0
Q: Remove part of associative array

Richard MI've been working on this BS for two days now and I cannot for the life of me, figure this out. All i want to do is search an assoc array and when I find a value, delete that part of the array. Simple right. Here is a sample of my array: Array ( [0] => Array ( [id] =>...

-1
Q: How to make a picture button that adds 1 to dynamic variable

Jimmy FHey guys I am a coder in HTML and I need a script of a button that adds to an automatically updating variable. anyone who clicks the button will add one to the variable, and it will be displayed above the button in a big Times New Roman font. I am guessing it would require AJAX or even more likel...

0
Q: Saving a form with text and checboxes to text file

user2950654I an working on a HTML form to help me keep track on information when I play roll playing games. The form has a grid of checkboxes that are used to track health. I also have a text box that I track other stats in. I want to have a 2 buttons: LOAD and SAVE. When save is hit the current status (wh...

0
Q: Google Contact Api PHP - Server Account (server to server): Empty contacts array

NerqueWhen I use "this solution" I get a blank contacts array. I'm using "google-api-php-client-0.6.7" with a serviceAccount.php into the examples/contacts folder, and a Google_ContactsService into src/contrib folder. I have configured the Google Apis Access, with OAUTH 2 as Server Account. I have th...

-3
Q: Can someone help re structure my code think something is wrong

Gareth JohnThe following code is my header.php I think either tr or td is not closed but i do not understand enough to find it. Please can someone check my code and spot any problems its viewable at canvasbay.co.uk and on my checkout page is not loading properly i think its because the header is not correct...

0
Q: Prestashop - rearranging elements in hook_top for custom template

MalyoI'm new to Prestashop, altough i've already read lots of documentation. Anyways i'm making a custom theme for Prestashop, and i have trouble with moving default modules that are assigned in {HOOK}'s. For example I'd like to move search bar from TOP to Navigation. Other example could be moving log...

-1
Q: Insert data from 1 form into 2 Mysql DBs

helloI am trying to use one form to insert data into 2 tables. I have one table, Members and another, Members. Here is my code: <?php $first_name=$_POST[first_name]; $last_name=$_POST[last_name]; $email_address=$_POST[email_address]; $staff=$_POST[staff] ; $type=$_POST[t...

0
Q: XML password hash

user1898525I am planning on using PHP on the client to call an xmlrpc page on a webserver. This will return data to the client via SSL and then I can add relevant information from that data to a database on the client. How do I encrypt the password used for the server to handshake with the client. Is this e...

0
Q: Email adding newlines?

dirtymikeandtheboysI am attempting to send out HMTL emails with php's mail() function and notice that some things are broken in the email. I found out from reading the original in gmail, that lines in the body of the message are all the same length, and this cuts HTML tags in inconvenient places. My headers are mu...

0
Q: fullcalendar Reoccurring event json-event

telexperhow can i make a reoccurring event in fullcalendar json-feed, i need the event to reoccur every second Friday from the Friday that it started and the Friday before it started, if possible it should not be a loop, is there any code that can make this happen in a json feed?

0
Q: Can not Display the Images

Loke Coolthe php is `<?php $dbhost = 'localhost'; $dbuser = 'root'; $dbpass = ''; $dbname = 'moviefone'; $con = mysql_connect($dbhost, $dbuser, $dbpass); mysql_select_db($dbname, $con); // Check connection if (mysqli_connect_errno()) { echo "Failed to connect to MySQL: " . mysqli_c...

0
Q: Block access to website from certain url

user1071461My host uses cpanel, which means addon domains are subdomains of the primary domain. I need some php code, or maybe htaccess to block access when trying to access the website using the subdomain. addonsite.com - allowed addonsite.primarydomain.com - not allowed How can I do this?

0
Q: PHP Array Slice wierd behavor

Amir MendelsonI've been recently working with the array_slice function in order to make pagination in my script. I have an array with 40 values (each value is a thread) $thread_order_P = $this->forum_handler->orderThreads($forum_threads); And I want to show only 15 threads a page so I did the following : ...

0
Q: Profile Image Store Database or Server System

PHPI would like to know what is your opinion on where to store the users profile pictures.. I am thinking to store it either in the database as a BLOB type OR in the system in a folder.. Thanks in advance!

0
Q: synching from device to remote server with PHP and MySQL

Oliver BurdekinI have an app that allows users to collect data offline. This is stored on their device in a SQLite db 'USER'. When online they can choose to synch their data with a MySQL DB on a remote server 'REMOTE'. At present there exists a [synch] field on the user's db ('USER') which defaults to "N"....

0
Q: CodeIgniter Query Binding Using IN Clause with String array or string list

tibc-devBelow is an example which fails. I have tried several ways of getting $arrayOfIds below into the correct syntax for the id IN (?) with no luck. If I do not query bind, it works. Note: We are not using Active Record. // this is actually being passed in as argument $arrayOfIds = array('A0000-...

3
Q: php undertsanding greedy vs. nongreedy matching

mysql_noobie_xxxxThis: preg_match('~foo(.*?)(bar)?~','foo bar',$m); gives me this: Array ( [0] => foo [1] => ) I'm kinda confused about this. I get that group 1 is giving me an empty string, because it's a lazy match. But shouldn't (bar)? be greedy and thus give me capture group 2?

0
Q: Is it good to save/write mysql fetch query result in a php file or use sessionStorage and load the data in the view when needed?

Hunza AliI am developing my website and i designed my own Model View Controller for this. I want to discuss with you guys everything and need expert suggestions. So let me explain my website work in details. This is the reference link for model view controller. I worked the same way explained in this tu...

-1
Q: Writing a new file to he server if file exists in php

Puranim trying to write a file to a the server with a new name. I am a beginner developer so not working very well. If the file exists already i need it to rename the file and upload the file.

0
Q: htaccess allow only numbers after a certain point with https

seesoei attached my current htaccess file below, it currently makes all my urls www with trailing slash at the end and if it is on and only on /prepaid/ it will be https. i am tring to extend this functionality, where i can also accept requests from /prepaid/refill/a 10 digit phone number and have it ...

0
Q: Header file download creates new file instead of sending one from server (PHP)

VereonixI have the following code in an attempt to have it so a specific file on the server is downloaded: $file = 'upload/Order.txt'; header("Pragma: public", true); header("Expires: 0"); // set expiration time header("Cache-Control: must-revalidate, post-check=0, pre-check=0"); header("Content-Type: a...

-2
Q: fatal error in my free web hosting site?

Imran ImuFatal error: Call to undefined function get_header() in /home/a2260510/public_html/index.php on line 1 error code in bellow When i refresh the browser then i see that error /*---------- */ <?php get_header(); ?> <div class="fix main_body_area "> <div class="fix main_featur...

0
Q: How to create the structure of the database to manage various types of users?

Adriano San MartinI need help creating modeling the database more flexible way possible. Eg Users administrators Users of the site Users partners Users administrators - will have basic data for login name, email address and User password and etc.. Users of the site - will be basically the same administrators. ...

0
Q: Reverse alphabetic sort multidimensional PHP array maintain key

useyourillusiontooI'm dying here, any help would be great. I've got an array that I can sort a-z on the value of a specific key but cannot sort in reverse z-a. sample of my array which i'd like to sort by ProjectName (z-a): Array ( [0] => Array ( [count] => 1 [ProjectName] => bbcjob ...

0
Q: How to make .mo files available to Google App Engine?

user2873523Trying to run webtrees (https://github.com/fisharebest/webtrees) on GAE. Can't get GAE to recognise .mo compiled language files. The app works OK locall via GAE SDK. I declared them as: - url: /language/(.*.mo) mime_type: text/plain static_files: language/\1 upload: language/(.*.mo) app...

0
Q: Assigning Post ID to User in other Table

user1997204I'm creating a Simple post to wall with comments page ( Similar to facebook ). So far it's working. I got a few PHP files that saves the Post and Comments to the database. The thing is. I am not logged in or anything, Using no account. So practically everyone can post. You will see a default prof...

0
Q: Creating a session user login php

user2419393I'm stuck on how to create a session for a user who logs in. I got the part of checking to make sure the log in information corresponds with the database information, but is stuck on how to take the email address and store into a session. Here is my php code below. <?php include '../Vie...

0
Q: Why is this session not being set?

user2921557just trying to do something somewhat simple with sessions. Im just starting to expand my website so have started using a functions file included on every page. Im am trying to make a page only accesable if you are logged in, if not it redirects you and then sets a session. This session is this ...

0
Q: Specify More "case" in switch parameters

Sophie MackeralI have the following code: $ErrorType = null; switch ($ErrNo){ case 256,1: $ErrorType = "Error"; break; case 51...

0
Q: Moved X-cart site to Sub Directory - Need Help setting up Redirects

Rich GI recently moved an x-cart site from a root directory to a sub directory, and also built a new Wordpress site under the root directory. The problem I am having is that I am trying to figure out a redorect combo that will show the search engines that the product pages are now under the sub directo...

0
Q: How to Add +1 to attendance value in the Mysql database if Radio button(present) is selected with PHP?

WyneExcuse me, I want to make an attendance form at my college using PHP and MySql for the database. The database table : student_id student_name Class Attendance 001 Adam 1-B3 0 002 Martin 1-B3 0 003 N...

0
Q: Trying to save PHP $_POST variable into javascript but it does not work

Hunza AliI am trying to save the PHP array and $_POST value in to javascript variable but it does not work. This is how i am doing it. <html> <script> var username = <?php echo $_POST['username']; ?> var password = <?php echo $_POST['password']; ?> //abc(username, password); document.write(...

0
Q: Sublime Text 2 Mac Removing Folders on Close

user2950839I use Sublime text 2 as my IDE at both work and home. On a windows machine sublime remembers all the folders in the left had column when the programme is closed ect. However on my mac using sublime removes the folders as soon as that window is closed. Does anyone know how to fix this?

0
Q: Xpath for scraping creative common licenced web site

dr CodeI found on web really powerfull and good web site about world travel attraction. All content is by this licence: http://creativecommons.org/licenses/by-sa/3.0/ so I see that I can use their content, also I need only name and coordinates of content. Link to attractions is link format: http://en.a...

-1
Q: Check if active PHP session when user returns to a page - JQuery

Darren SweeneyI have an app where a user absolutely must be logged in to use it. I use PHP sessions upon login to store user data. If a user leaves a window open and then returns e.g. an hour later, what's the best way to check if they are logged in still? Options I can think of are: 1) check mouse movemen...

1
Q: Strange PDO results returning a key for each row value

Nick ShearsTrying to get some database results in a very simple application. Code $pdo = new PDO("mysql:host=localhost;dbname=soundinsider", "root", ""); $pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); $sql = "SELECT * FROM users"; $query = $pdo->query($sql); echo '<pre>'; print_r($query->...

0
Q: MySQLi PHP -> LEFT JOIN Returns Null when using fetch array

Daniel HolstI am currently creating a MySQLi PHP forum, and i'm having some problems with the MySQL LEFT JOINs, i am trying to get all the subforums "joined" with the set catid, the query itself works fine when testing it in mysql workbench, and i receive the correct list. but whenever i try to put the resu...

0
Q: PHP - access parent class members from nested classes

aliLet' suppose I have my code organized in classes and each class has its own file: main.php, having class Main config.php having class Config security.php having class Security database.php having class Database Now, Main's constructor will initialize 3 objects, one for each of the other class...

0
Q: Query to get latest 10 rows by using id's from other table

BurrowsI have a follow system on my website, where you're able to follow other users. On the home page of the website, I'm trying to make it show the latest 10 posts from the users you're following (not 10 from each person you're following, but 10 in total). I have one table called followers with the ...

0
Q: mysql full text search

user2950085when I try to execute the following sql command my phpmysql says #1061 - Duplicate key name 'idx_ft_product_name_description' can anyone please explain it? CREATE FULLTEXT INDEX `idx_ft_product_name_description` ON `product` (`name`, `description`);

0
Q: Why eval() for JS code in server results in: SyntaxError: Unexpected token ;

modernsI am using AJAX to call the server, on server side when I eval a javascript code (forloop) inside the page (ajax.php) like below: <?php if($part==1){ ?> for(var i=0; i<5;i++){ alert(i); } <?php } With the callback in Javascript page (ajax.js): xmlHttp.onreadystatechange=funct...

0
Q: How to process a Authentication Header with PHP

Henrique MoutaI've to develop a API interface that recives a POST with JSON content and process it. To be safe, it has to accept only a valid token. The software that connect to my API send a Auth header with "Basic 134asSdsw324bvv3w4tvc45==" content. My problem is to have my PHP script to process that to...

0
Q: Get data from JSON file with PHP

Harold DunnI'm trying to get data from the following JSON file using PHP. I specifically want "temperatureMin" and "temperatureMax". It's probably really simple, but I have no idea how to do this. I'm stuck on what to do after file_get_contents("file.json"). Some help would be greatly appreciated! { "...

0
Q: PHP return object instance from __getStatic()

rgvcorleyPHP has a magic method __getStatic() that allows overloading of static method calls. I have a class with a fluent interface which performs integrity checks. I call it like this:- $check = new CheckSomeCondition(); $check->forActive()->sites(array(1,2,3))->check(); However, I would like to call...

0
Q: javascript templating system compatible with smarty

Rafa TostI am using smarty backend in php for templating and having fantastic success. We're now looking for a javascript front-end system to do the same in some cases where we need to render extra items. I would prefer to use the existing smarty templates from PHP. Having looked at jSmart already, are...

0
Q: preg_replace wont create links

NexuxHi i am having a big problem with this function called post_link($str) <?php function post_link($str) { if(preg_match("#(http|https|ftp|ftps)\:\/\/[a-zA-Z0-9\-\.]+\.[a-zA-Z]{2,3}(\/\S*)?#",$str,$url)){ return preg_replace("#(http|https|ftp|ftps)\:\/\/[a-zA-Z0-9\-\.]+\.[a-zA-Z]{2...

0
Q: Sort posts by name & show first letter only once in wordpress

user1854236I've got a problem, I display posts in wordpress ordered by title in ascending order, but what I want is to display first letter of group of posts, I mean A: Annanas Apple Almond B: Banana G: Grape I don't know how to implement something like this in standard loop <?php query_posts( ar...

0
Q: Reformatting JSON

user2883183Scenario: External URL returns this JSON and I have a php file that loads the data, but I need to re-format it. [ { "localTimestamp": 1383091200, "swell": { "absMinBreakingHeight": 3.255 } }, { "localTimestamp": 1383102000, "swell": { "absMinBreakingHeight": 2...

0
Q: Symfony + Compass, config.rb

user2950882Now i have app/config/config.yml : filters: cssrewrite: ~ sass: ~ compass: apply_to: "\.s[ac]ss$" no_line_comments : true and i have main file : @import "compass"; @import "modules/_ads.scss"; @import "modules/_buttons.scss"; but when i use command php app/conso...

 
10:45 PM
0
Q: Grab text content with xpath

dr CodeI want to grab name and coordinates of places from advisor.travel web site which content is CC so I need only first 10 page with name and coordinates... Link to attractions is link format: http://en.advisor.travel/poi/1 so 'http://en.advisor.travel/poi/'.i where i is number of attraction I want...

0
Q: Is there a way to call another website's HTML form's submit action with php?

CarthageI'm trying to figure out how to automatically get the search results from http://pokemonshowdown.com/replay/ <form action="/replay/search/" method="get" data-target="replace"> <p style="text-align:center"> <label><input type="text" name="user" class="textbox" placeholder=...

0
Q: how to save a remote image file to dropbox using php and dropbox api?

user1788736could any one show me how i can save a remote image to dropbox using php ? For example i have the url of remote image and want to save that image to dropbox using php . i found this code from google but dont know how to use it for remote image url instead of files from a folder! Furthermore is...

1
Q: Yiistrap setting button type in TbNav

nosthertusim learning how to use yiistrap and i want to set the type of buttons on the nav bar. this is my code: <div id="mainmenu"> <?php $this->widget('bootstrap.widgets.TbNavBar',array( 'brandLabel'=>TbHtml::b(Yii::app()->name), 'color'=>TbHtml::NAVBAR_COLOR_INVERSE, 'display'=>null, 'i...

0
Q: Maximum lenght XSLT but keep full paragraphs in output

MindlessCakeI'm working with symphony for a few weeks now and getting the hang of it, really loving all the base functionality. I have a question since I'm not quite sure how to solve this: I have a news/blog page for the project I'm working on. Sometimes the articles are short sometimes very long. What I w...

1
Q: print string value before <br> tag

user2540016This should be simple I think, but I can't seem to get any of the similar answers working. Basically I just want to print the value of a string before the tag. So if the value of $summary is "Title more info" I just want to echo "Title". Thanks, sorry if this has been asked 1,000 times before!

0
Q: PHP/MongoDB: find() is ignoring timeout setting

ledyTrying mongodb global timeout etc. is still ignored by find() queries in my PHP script. I'd like a findOne({...}) or find({...}) lookup and wait max 20ms for the DB server before timeout. How to make sure that PHP does not utilize this setting as soft limit? It's still ignored and processing ans...

0
Q: Application for image interactive

user2948557I want to develop a web application that can add effects to images and add clickable zones for playing sound, start a transition or apparatre another image... Then I want to export these treatment as javascript code to embed the image in other website. What is the best language to develop this ...

0
Q: Is there a limit of an php array / RecursiveDirectoryIterator? How to loop through unlimited amounts of files

user2950923I have a directory with ~22k images in random sub directories. I would like to have a php script, that goes through all jpg files of the directory and the subdirectories and change the Iptc caption information of the jpg. I am currently trying to achieve this via RecursiveDirectoryIterator/Recurs...

0
Q: Allow access only member's group and administrator

GabrieleI'm trying to allow access for certain content only for specific member's user and administration. With the following code I can't view the content when I'm logged as admin: <?php if (is_category(4)) { if (!current_user_can('my-group') || !current_user_can('add_users')) { ...

0
Q: Closing a connection in a loop

BurrowsI have the following code: /* Get the 10 latest posts from users you're following */ $stmt = $cxn->prepare('SELECT * FROM posts WHERE user_id IN (SELECT following_id FROM follows WHERE user_id = ?) ORDER BY datetime DESC LIMIT 15'); $stmt->bind_param('i', $user_id); $stmt->execute(); $result = $...

0
Q: Altering the URLs from RSS feed using PHP

user2950940I just tried something real simple to have an RSS feed send me to the mobile version of the site instead of the full version, but i guess it really isn't this simple. <?php $content = file_get_contents("http://svenskafans.com/rss/site/7.aspx"); $content = str_replace("wwww", "mobile", $content...

0
Q: Warning: couldn't fetch mysqli_result in ... using result set from $_SESSION

user2947268I am getting this error when I try to fetch a row from my results. Here is the code chunk that is producing the error. $count = 0; @ session_start(); $result = $_SESSION['results']; $str = ""; while(($row = mysqli_fetch_array($result)) &&

0
Q: How to Use xmlhttp.responseText in If condition?

Marius IvanThis is my save_custLog_data.php file. <?php $a = $_GET['msg'];//Lets say the value is "d" $b = "abc".$a; echo $b; ?> above is my php page. below you can see my html page. But I'll just add only the embeded javascript part only. <script> function validate() { var emai...

1
Q: Get users country code PHP

user2036031I am currently getting a user's language by using the first two characters of $_SERVER[HTTP_ACCEPT_LANGUAGE]. e.g. $_SERVER[HTTP_ACCEPT_LANGUAGE] = en_GB My question is, how can I find the country of a user based on their $_SERVER[HTTP_ACCEPT_LANGUAGE]. I know I can get the full name using Loc...

0
Q: view data while running code in magento

AlanHow I display values of order details or customers details while I do loop on array of orders in controller and display every order number in html input on page using ajax Aim: I need to put the values of status in textbox or textarea in phtml while iterating on every order value in my controll...

0
Q: Removing duplicate characters in string preg_replace

Aleksandar Stojanovic$value = "ABCC@CmCCCCm@CCmC@CDEF"; $clear = preg_replace('/@{1,}/', "", $value); I need to remove duplicate @ and get something like: ABCC@CmCCCCmCCmCCDEF (I need only first @) How to do that?

0
Q: File upload keeps failing

user2584481Keep having this same issue when uploading filed - I have debugged but see the following error I am stumped?? somewhere between the point of pasing the data and requesting it to be moved to permanent location it disappears Debug: ++ DB QUERY SUCCESSFUL Passed file detials array(1) { ["file"]=>...

0
Q: HTML Form with PHP isset to run function not working (No erros, just nothing happens)

VereonixI have a HTML form: <form action="<?=$_SERVER['PHP_SELF'];?>" method="post"><br> Order Number: <input type="number" name="orderNo" size="10"/> <input type="submit" value="Download" /> </form> and the PHP isset: if(isset($_POST['Download'])){download();} Which has the user enter a number, I ...

0
Q: Making Tables in Remote Server

user2950954I started this project on MAMP, everything worked fine. I've moved the project over to my remote server and am trying to launch a make tables.php file and continue to get these errors. Versions of PHP and MySQL for each are: Local MAMP server MySQL Server version: 5.1.37 Webserver: Apache/2.0...

-2
Q: I want to get 10 random record from msql via ajax to attach them into my page and animate them

Levent KayaI don't have any specific code right now but i'm looking for it. Before i check, i'd consider to take any ideas from experts. what i want to do is : Take randomly 10 records from my database. Its simply designed like : id q1 q2 --- --- --- 1 x y 2 z t So, i have to ...

0
Q: Laravel Way Generator still not working with Sublime Text 2

Perkin5Still can't get Jeffrey Way's Laravel 4 Generator to work with Windows 7. I have reset the php path for both generator and artisan to the following: "php_path": "C:\\wamp\\bin\\php\\php5.3.8\\php.exe" but when I try to generate a resource I get the same error: Traceback (most recent call last...

0
Q: PHP Return line number of a specific word in file

Marijn van GoolI want to get the line number of a specific word with the following function: function searchWord($fileName, $str) { $found = false; $lines = file($fileName); foreach ($lines as $lineNumber => $line) { if (strpos($line, $str) !== false) { $found = true...

0
Q: I have a registration form, but problems with confirmation code

Jordan Thomas-DaviesOk, basically i've set up a simple registragion form for users to sign up, everything works great, including the confirmation email, it's just when a user clicks the link to confirm the account it says that the confirm code is wrong. I have to go into the database to manually get the correct code...

 
11:51 PM
0
Q: CSS code changes when used PHP

CasperI have this HTML/CSS here: <div class="liste"> <div class="content"> <h4>Cyekl something</h4> <p> Lorem ipsum dolor sit amet, consectetur adipisicing elit. Maiores, ullam, consectetur, totam vel consequuntur quas sunt nulla rerum maxime saepe repudiand...

0
Q: Marketplace App: How to access Google Drives of the users on the installed domain?

user2950957I am developing a marketplace app in PHP. My app needs to access calendars and drives of all users on the domain, once a domain administrator has installed my app onto their domain, with the appropriate authorizations to the calendar and drive scopes (I am assuming this is possible, without every...

-1
Q: Extracting info from a site php not working

Boyen <?php $url = "http://www.lolking.net/summoner/euw/20849404"; $str = file_get_contents($url); if (preg_match('/<ul class="personal_ratings"> ([^<]*)<\/ul>/', $str, $matches) > 0) { echo $matches[1]; //This is text one } ?> Hello guys, ...

0
Q: regarding HTTP_USER_AGENT

AravHave a perl CGI script that display the CGI environment variable. In IE8 getting the HTTP_USER_AGENT Value for IE 8 as MSIE 7.0. Why it's not displaying MSIE 8.0? HTTP_USER_AGENT: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/4.0; GTB7.5; SLCC2; .NET CLR 2.0.50727; .NET CLR ...

0
Q: What's wrong PHP field check function

user2951026I have that function but it's not working. function Checkfields($fields){ $ret = false; foreach($fields as $field) { if ($_POST[$field] == "" || !isset($_POST[$field])) { $ret = true; } } if ($ret) { $ret = "All fields are required."; h...

 
00:00 - 20:0020:00 - 00:00

« first day (257 days earlier)      last day (53 days later) »