php

All the sudden my links not working in php

hi guys, I have a page where all links where working properly but all the sudden some links are not working anymore. I am puzzling myself to undersand why. Nothing really changed. Maybe some css details. Is there anyone who can give a clue? Thank you for any help. me abou twhat might have happened. Francesco PS sorry forgot to say t...

I need some help with either my SQL or my PHP I do not know which...

Hello I am creating a CMS and some of the functionality of it that the images that are within the content are managable. I currently trying to display a table that shows the the content title and then the associated images, ideally I would like a layout similar to this, Content Title Image 1 Image 2 Image 3 Content Title 2...

Should I typecast in PHP when defining my vars?

I am sorry if this is more of a theory question then a real life problem but it is a real life situation for me. We were commenting on the way PHP works with vars and how memory heavy it is on the server due to its "mixed vars" and something occured to me - why not typecast right from the start? So I guess my quesion is: Whould it make ...

Google contacts - how do I add in custom details via code?

Hi guys I'm trying to interact with google contacts. I can add new contacts to the address book but when it comes to adding details which are custom in nature like lets say 'sport' I'm trying to use the extendedProperty type but its not working .. check my code $elem = $doc->createElement('gd:extendedProperty'); $elem->setAttribute('na...

php code to mysql database export

i want php code to import *.sql file to database and export db to *.sql file without going to phpmyadmin ...

PHP: Get instance of static class by string value

I'm working on a php web api that was handed to me with a lot of code that needs to be refactored. The ones that wrote the code wanted to include a static configuration class to an api resource and then get an instance of that class something like this: <?php $obj = "User"; $confObjectSuffix = "_conf"; $confObject = $obj.$confObjectSuff...

How can i display avatar at wordpress single post page ?

I tried to get avatar at single (post) page by these codes <?php echo get_avatar( $id_or_email, $size = '96' ); ?> <?php echo get_avatar( $comment, 32 ); ?> <?php echo get_avatar( $id_or_email, $size, $default, $alt ); ?> <?php echo get_avatar( get_the_author_email(), '60' ); ?> But no success, nothing get working...

MySQL: Get only count of result set.

I am using MVC with PHP/MySQL. Suppose I am using 10 functions with different queries for fetching details from the database. But at other times I may want to get only the count of the result that will be returned by the query. What is the standard way to handle such situation. Should I write 10 more functions which duplicate almost w...

PHP and Django: Nginx, FastCGI and Green Unicorn?

I'm curious... I'm looking to have a really efficient setup for my slice for a client. I'm not an expert with servers and so am looking for good solid resources to help me set this up... It's been recommended to me that using FastCGI for PHP, Green Unicorn (gunicorn) for Django and Nginx for media is a good combination to have PHP and Dj...

using Drupal for 1 page of xhtml-css website.

Hi friends, after using own custom cms for over 6 years, I decided to go for Drupal from now on. I will use Drupal for all my works. I'm pretty new at Drupal, started just 2 days ago :D just a simple question; I have a simple xhtml-css site (5 pages), and client is asking cms for gallery page (xhtml for now). so is it possible to make...

Can anyone recommend any good learning resources for an experienced PHP web developer wanting to move to ASP.NET?

I'm an experienced PHP web developer and am wanting to learn ASP.NET so that I can consider going for ASP.NET jobs. I've looked at a few introduction to ASP.NET books but I always find that they start far to simple and cover the basics of HTML and general web development. I'm looking for learning resources that will help me make that tr...

Can I control hardware via PHP Language ?

hi I wondered if I can use PHP to control an external hardware connected with the parallel port or USB port ? any ideas or resources ? ...

reCaptcha Zend Framework Ajax

Hello having some issues with the recaptcha service in Zend framework , when loading some form that contains recaptcha dynamically (trough .load()) any body knows how to pass the issue? ...

PHP: Set max_file_uploads for one file rather than php.ini

Like many variables in PHP using ini_set() on a page doesn't actually work. I've recently upgraded my PHP version and found that my multiple image uploader is now capped. After 3 hours of frustration, I've found that my new PHP install has the new "max_file_uploads" parameter set to "20". So only the first 7 images get uploaded (each i...

All available images under a domain

I'd like to make a gallery of all images i have under my domain (my internet root folder). All these images are in different folders. What's the best way to 'browse' through all the folders and return the images? ...

User registration for postfix w/ mysql

I would like to create a user registrations(using PHP) page for my postfix (w/ mysql), any one could lead me, how this can be done? ...

How do I combine two arrays in PHP based on a common key?

Hi, I'm trying to join two associative arrays together based on an entry_id key. Both arrays come from individual database resources, the first stores entry titles, the second stores entry authors, the key=>value pairs are as follows: array ( 'entry_id' => 1, 'title' => 'Test Entry' ) array ( 'entry_id' => 1, 'author...

Execute a PHP CGI script as a background process ?

Hello, Can I run a PHP CGI script as a background process using exec() ? ...

php session not working (as with cookies disabled), but cookies are enabled for the domain. What other possibilities?

Hi, I have a problem with a client, who cannot log in to our system. We have PHP-based B2B system, which uses cookies to store session-id. The client cannot log in and is redirected to the login page, without any error message. He claims he have cookies enabled in his Firefox. Also, if he had cookies disabled, my javascript would dete...

How does PHP work - literature

I'm interested in literature (articles on internet, in magazines, books, podcasts - I don't really mind anything) that describes how PHP works internally, about its gotchas and perhaps some advanced functions. Is there anything like this out there? I tried to search on Google, but majority of articles were about starting with PHP and its...