« first day (295 days earlier)      last day (15 days later) » 

12:01 PM
0
Q: How to replace "\n" by "</p><p>"?

FractalisteI use a textarea to write comments on my website. The comment is saved in a SQLite DB. My problem is when I try to retrieve my comment from the DB in order to replace every carriage return with <p> tags (before showing it to the user). I've first try the nl2br function and it works fine, plenty...

0
Q: Form post dend data to another page , verify and then post

epynicI have a form with , In the form after user clicks on Submit , he will be taken to another page which would show all the data entered, Which would allow the user to verify the content.(User will have a look at the content , to see what he entered is correct). Once user verifies he would submit...

0
Q: Wordpress Posts by post id in same order of id's

Rachit GuptaVisit http://77page.com/rachit regularly! This code helps you to get posts by id's in which they are ordered. <?php $ids = array(548,555,587,583,585); $my_query = query_posts(array('post__in' => $ids, 'orderby' => 'post__in')); global $post; foreach ($my_query as $post){ $posts_by_id[$post->...

-2
Q: having issues with file_get_contents and included content

TheBounderI'm guessing this is a much asked question, so sorry to bore, but, when I use the file_get_contents, the actual file it gets simply has the included php code in it rather than executing it. So, the file looks like: <html>some html <?php include('some_code.php');?> more html</html> Obviously t...

0
Q: export database query to excel file in php

user3059984I keep getting the error "unexpected end of file in line 48" although I only have 47 lines of codes. I don't know if there's a problem in my code or if this is the right code to export my database query to csv file. Please help. <html> <head></head> <body> <form method="POST" a...

0
Q: gae php helloworld gives white screen with local server on gce debian and centos instance

user3090791i am trying to run the gae php hellowrold on a gce debian and or gce centos instance. https://developers.google.com/appengine/docs/php/gettingstarted/helloworld the helloworld example produces PHP's white screen of death when running on gce debian and gce centos systems. each instance is a new b...

0
Q: .htaccess and Jquery File Upload

Daan VerberneI've downloaded the latest package of the blueimp Jquery-File-Upload (https://github.com/blueimp/jQuery-File-Upload). The .htaccess rewrite rules in the root of my website is giving the plugin a 404 error on the upload dir. [Error] Failed to load resource: the server responded with a status of ...

0
Q: What is the difference between wsdl mode and non-wsdl mode web service?

user3090967i think most of the soap servers offer web services in both wsdl and non-wsdl mode (like Amazon does) for a client to make request. we know in wsdl mode client has to download the wsdl file to determine how to make a request for the service. but in non-wsdl mode, how the client learns to make a r...

0
Q: Schedule PHP file to run

JoelIs there a way to run a PHP file automatically every hour(60min) or start the file you could say? I'm currently working on a file who's job is to bring information from a table every hour. This file needs to execute every hour. Is there any way to do this? it is not a build-in facility. however...

0
Q: LDAP extension not showing in phpinfo() list

user3048458Am trying to enable the LDAP extension in my WAMP server. Am using WAMP Version 2.4. Server Configuration - Apache Version : 2.4.4 , PHP Version : 5.4.16 , MySQL Version : 5.6.12. I put the OS in E drive and wamp server also. Am using windows xp. I tried below these below points:- 1). Unco...

0
Q: Sending Facebook like button via Ajax call Not Working

cipheruxI'm working on a project that involves infinite scrolling page. In this, I'm sending the whole of boxes and appending it after the previous/last on the page. So, it creates a list of vertical boxes one below the other. Here's my PHP code that is sent to Javascript during ajax call: while($row...

0
Q: Installing phpDocumentor using PEAR

user1032531On the home page of http://www.phpdoc.org/, on http://manual.phpdoc.org/HTMLSmartyConverter/HandS/phpDocumentor/tutorial_phpDocumentor.quickstart.pkg.html, and on https://github.com/phpDocumentor/phpDocumentor2, instructions to install phpDocumentor are: pear channel-discover pear.phpdoc.org pea...

0
Q: Download files after input form Joomla

user3090983Task - collecting contacts from users for further feedback on a certain product. The site is in the format of Excel price lists. User can to implement download price lists when: 1. clicked on the "download" button 2. in appear pops up, introduced two form fields, 3. then forwarding on the ...

0
Q: mr-image-resizer and Advanced Custom Fields

user3090916I'm using Advanced Custom Fields for display images in my Wordpress theme, but need to implement the TimThumb alternative mr-image-resizer. Here's my 'standard' code: <?php if(get_field('call_to_action_boxes')): while(has_sub_field('call_to_action_boxes')): ?> <?php if (get_sub_field('call_to_a...

0
Q: Repeats error several times in succession

user3089022We just currently in the process of drafting a question page, and it is such that if some of them have no content in then come back and say "Husk indhold ved" here and here, and not that it says "Husk indhold ved" at the "Husk indhold ved" by the etc.. You can see what I mean here: http://billed...

0
Q: Multidimensional array in for loop

user2010470I've been trying to understand how to convert this script into a multidimensional array. I've got as far as the code below. It builds an array of the RGB colour string. I want my array to store the R G and B values as well on each loop alongside the full string. What's the best method inside a f...

1
Q: german Umlaute break when form is submitted

Lupoi have a very strange phenomena trying to migrate an older php project from iso-8859-1 to utf-8 when typing a german umlaut like "äöüß" into a textfield an submitting it i receive broken ones like "äöüÃ�" header is set to <?php header("Content-Type:text/html;charset=UTF-8"); ?> <meta char...

0
Q: Datepicker does not accept future date

user3021251I have added one date picker to a site like: <input type="text" id="popupDatepicker" placeholder="Select Date" name="from_date" class="input" size="50" /> Script: $(function() { $('#popupDatepicker').datepick(); }); but this date picker is not accepting the future date. it only accepts pa...

0
Q: dompdf generating PDF in with many blank pages between content

MahendraI'm using DOMPDF to generate pdf files from html. PDF file is getting generated but there are many blank pages are appearing in between content. Following is my php code. <?php $html=file_get_contents("views/testnew.html"); // echo $html;die(); $paper_orientation = 'landscape'; ob_...

0
Q: Cross server file upload: limits and method?

DacoI am trying to build a Web app scenario, let's say: I'm using a server A (Linux Apache Shared Hosting, so no access to php.ini), the php.ini being: max_execution_time 120 max_file_uploads 20 max_input_nesting_level 64 max_input_time 60 max_input_vars 2000 memory_limit 128M open_basedir ...

0
Q: How to Sort users who voted by number of Published links

Mazenproblems with a lot of users have the names of long in who liked for this Story So How can I sort users by number of published links in who voted. in libs/htm1.php function who_voted($storyid, $avatar_size){ // this returns who voted for a story // eventually add support for filters (only show ...

-1
Q: Quick function or quick way to ignore empty value in concatenated string

Code HunterI have this string in concatenated form: $string = $firstName." | ".$middleName." | ".$lastName; Now consider $middleName is empty. It will appear like this : John | | Doe I want to ignore those variables which are empty. I want it like this: John Doe I need a quick method for this. I...

0
Q: How to assign and display data in smarty template received from AJAX?

PHPGeekI'm not able to assign and display the data in a smarty template. The data I received is from the AJAX. Also I'm not able to show the loader image until the page-data loads completely. Can anyone help me please? PHP Code: <?php require_once("../../includes/application-header.php"); $objQues...

0
Q: Sanitizing random data type

gprusiiskii have a problem with sanitizing data. Is there a built in php function to sanitize data like htmlspecialchars/htmlenteties, which if provided a non string value it keeps its original type. Example: The problem: $a = 1;//(int); $b = htmlspecialchars($a); var_dump($b); // string "1" ...

0
Q: Cakephp delete function not working to delete row passed by id?

Rachit GuptaI am using delete function to delete row of id passed in function.But that show's Error: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'User.id' in 'where clause' Help me on this can't track where i missed it UserController.php function delete($id= null) { if(!$id) { $this->Ses...

0
Q: Checkbox changing id but ascending order

Willardi have a table with checkboxes beside it. when i click the checkbox the value of the foreign key will be changed from 2 to 1, it works but not what i expected. i want to check the middle part of the table the last record will be changed to 1 not the row where i checked i check again on the first ...

0
Q: Website Booking Form does not send to email using php

user3083140i have creating a form which looks like this at start <form action="save.php" method="post" class="idealforms" novalidate autocomplete="off"> ok i also have this script to go with the form <script> $('form.idealforms').idealforms({ silentLoad: false, rules: { 'firstname': 'requi...

0
Q: How to get image size from a canvas?

Manolo SalsasIs it possible to get the image size in pixels from a canvas? E.g. I know I can achieve it getting the size from the image directly: list($width, $height) = @getimagesize($_FILES['inputFieldName']['tmp_name']) but I want to get it from a canvas. E.g.: $canvas = imagecreatefromjpeg($image_pat...

0
Q: how to call procedure with parameter in php page

user2786525i have the two table once main table another once audit table for back up process if delete the record only on audit... if the record was deleted from audit means then update status on main table..... for example table structure of main table id name status ============== 1 raj 1 2 arivu 0 ...

0
Q: PHP adds "532142118" to session variable

user3090890I've got a very strange problem with hopefully a very simple explanation, but after hours of debugging I can't figure out what's happening. LAMP stack is used, php 5.4 Here is a simplified version of the system wich still reproduces some strange behavior. In a simple, self made framework, I ma...

0
Q: How to rectify **HTTP Error 403.14 - Forbidden**?

HashI recently installed WebMatix 3 in my windows 8 pc but I made a empty site and tried to run my php code by it showed me HTTP Error 403.14 - Forbidden > I tried to solve this problem as given in the Microsoft site but when I run the inetmgr.exe in cmd prompt it says windows cannot find it Can a...

0
Q: calling a function from within a function

seloh77I have te following class-structure: class SomeClass { function execute() { $value = getValue(); } function RegisterCallbackHandlers() { function ajaxCall() { $value = getValue(); } } } The function getValue does the same for...

0
Q: Profile PHP code on Google App Engine

user1801060I am a newbie when it comes to using PHP on G.A.E. Some of my code runs extremely slowly. Is there any way I can profile my code to help me find the cause of the problem?

0
Q: Check if website contain my banner

Joran Den HoutingMy situation I've got a list of "partners" who should have added my banner to their site, somewhere on their site... So I need to check for it, and as it's a list of 200+ website's I'm writing a script for it in PHP. My first thought, easy job! Using a get_file_contents and then search for my b...

0
Q: How to add a PHP variable inside REGEXP in mySQL

RIA DevHow to add a PHP variable inside REGEXP in mySQL My code is like this SELECT count(product_id) as totalCount FROM ref_products WHERE misc REGEXP '(.*\"level_id\":\'".$course_level_id."'\.*)'

1
Q: Using Symfony forms without Twig

Sajuna FernandoI have managed to setup the symfony forms to work as standalone in my project. However i can only get it to work with twig. Is it possible for me to render the forms without twig? The way i currently do it is: #Controller echo $twig->render('index.html.twig', array( 'form' => $form->createV...

1
Q: Display Categories in firesale

Reccur NishanI am using firesale categories to display all the categories. Here is my code... {{ firesale:categories}} {{ entries}} <p><a href="{{ firesale:url route='category' id=id }}">{{ title }}</a></p> {{ /entries}} {{ /firesale:categories }} It displays categories jus...

1
Q: During zendfox installation, SQLSTATE[HY000]: General error: 1005 (errno: 150)

Ashwani ShuklaDuring zendfox installation, SQLSTATE[HY000]: General error: 1005 Can't create table 'zendfox.zf_member_forget_password_entity' (errno: 150)

0
Q: No output of strange output (SQL/PHP)

sth313Hello I made a script what combinate two id's to one id and thene compare it to a price. And the output will be the id and the price. But the script does work for 99% but the out put is Array and not a price. What did I do wrong? <?php //data.php require_once 'login.php'; // Get values from ...

0
Q: Persian character's issue in mysql database

user3091078When I insert Persian data to database, data will save like this: †Ø¯Ø± 50 لیتری But when I read data from database and echo it on the web, they are Ok. I need to read data in my database directly. what is your solution? Mysql setting: Server connection collation: UTF8_general_ci Html f...

0
Q: Using opendir with PHP Pages Component for Joomla 1.5

GroundZeroI have a website running on Joomla! 1.5 (can't upgrade because of template issue). On this site, I have a page where members can find some important files, needed for the membership in our club. I arranged these files in some folders, all using the same naming convention ( *yyyy-mm-dd_documentNa...

0
Q: AJAX database issue

user2232418I am trying to update a column in a table which i change a boolean from false to true. I am using AJAX to send data to a php file and then the php file does the database update query. so far i have if (r == true) { mypic.style.visibility = 'hidden'; leftbox.style.border = '3px solid whit...

0
Q: Professional Programming Environment with PHP, IIS 7, Eclipse, SVN

SpinneI need to setup a professional programming environment in my company for our web form and application development. Here are the guidelines i need to fulfill: Running with PHP Running on an IIS 7 Professional editor (Eclipse if possible) Something for team development (SVN if possible) Now I ...

0
Q: Codeigniter own library is not reading session values on first time page load

Dhinesh.BI'm trying to assign client side javascript value to php session using ajax. Following are client side code , <script type="text/javascript"> var timeZone = 'Asia/Kolkata'; $.ajax({ url: '<?php echo base_url();?>index.php/schedule/setLocalTimeZone', type: 'POST', ...

0
Q: Convert set of images to video file or gif image

Anupam SharmaI want to create a script using jQuery, php, javascript. In which as a input I upload images more than 2 and that will convert them to either gif image or a video file I searched over google but did not get any helpful

0
Q: Wordpress PHP user and roles

user3091141I need your help, I have this code, start with {foreach $items as $item} and after $user = new WP_User( $item->post_author ); if ( !empty( $user->roles ) && is_array( $user->roles ) ) { foreach ( $user->roles as $role ) echo $role; I need hide items only for one role...

0
Q: Install doctrine 2 on codeigniter hmvc

GilbertHello guys i'm trying to install doctrine 2 ORM, on my codeigniter poject hmvc. I followed this Guide doctrine for install it. it doesn't work with the pattern hmvc because when i try to extends the class to Doctrine_Record on my module hmvc it doesn't find the class Doctrine_Record. How can i do...

0
Q: Best way to handle PHP runtime errors/notices/warnings with JQuery

Christian DecheryI know the title of the question is not very objective, but it is kind of difficult to explain my situation. Thing is, I want to create a way in which I can handle all possible errors with my $.post calls so I can give the correct message to the user, given the situation. I have some functions r...

 

« first day (295 days earlier)      last day (15 days later) »