php

$_POST not being read

i have a form which inserts book information into the database. however it is not reading the $_POST attribute. book.php: <form action="books_manage.php" id="addbook_form" method="post"> <div id="ab_wrapper"> <div id="ab_leftcolumn"> <div id="bookinfo"> <fieldset> ...

PHP virtual() not using mod_deflate in subrequest

Hi, I am using a custom PHP framework, which makes use of virtual() calls to serve files. The general idea is all URLs are rewritten to index.php which decides what resource was requested, then uses virtual() as a passthrough if the resource is images/ css / js. This works quite well, apart from browser-side caching (which was fixed b...

Searching MySQL data

Hi guys.. I am trying to search MySQL database with a search key entered by the user. My data contain upper case and lower case. My question is how to make my search function not case sensitive. ex:data in mysql is BOOK but if the user enters book in search input. The result is not found....Thanks.. My search code $searchKey=$_POS...

Allowing user to download, edit and upload a database table.

I'm looking to create an easy way for a user to create a table, and upload it to the server using ftp. On the server side, I'd like to query this table like an SQL-like query. As I'd like the user to edit this in something like OO Calc, or MS Excel, would csv files be the best/fastest to parse? Is doing a fgetcsv a good way? Could you s...

codeigniter image manipulation question

Having a problem with image manipulation in codeigniter - it bombs when I get to $this->image_lib->resize(). I just can't see the error. Code: $imagemanip = array(); $imagemanip['image_library'] = 'gd2'; $imagemanip['source_image'] = '/resources/images/butera-fuma-dolce.jpg'; $imagemanip['new_image'] = '/resources/images/thumb_bute...

Android file uploader with server-side php.

Hi, I've been looking for a solution to this for hours, but I can't find any. Basically, I want to upload, from my android device, files to an http website. However, I have no clue whatsoever how to do this. I'm using java on the device, and I would like to use PHP on the server-side of things. I just want to upload the files, not do an...

Which solution supplied zend_translate for translate word with few meanings?

Hi, Which solution supplied zend_translate for translate word with few meanings? Example: http://m-carstairs.com/englishlessons/id12.html Thanks, Yosef ...

help with PHP script to list directory needs to be recursive

I have a php script that reads a directory and lists all the files/directories in link form, and it works, except I'm trying to get it to be recursive so that when I choose another directory it once again uses the script to display the files inside. Right now when I select a directory it just goes to the default apache listing....any hel...

Anyone using ZooP framework for PHP?

Hi! I'm just wondering if anyone else is using ZOOP (http://www.zoopframework.com)? If so, what version are you using, and what positive/negative experiences did you have? I'm using it for about a year now, and I'm somewhat dissatisfied. There never was any documentation, and the framework has been frozen since 2008. The framework itse...

Query with session : Is this the correct way?

I have developed a membership script with php for learning and I have confused in a session issue: In login.php, after username and password query there is: $_SESSION['user'] = $aut_user['user_name']; $_SESSION['user_id'] = $aut_user['user_id']; and after this, page redirects to user.php. In user.php I have used this query: $id = $...

What is the PHP operator % and how to use it in real world examples?

can someone please explain PHP's operator % in full detail? with examples would be nice! ...

file upload to server took time to complete

I tried to upload an image using localhost was upload instantly, however, when tried on my webhosting, it took more than 5 mins for the file to appear in "_uploads" folder. Do anyone encounter the same problem? Does AV took account for the delay in scanning? <?php $hasError = false;foreach( $_FILES as $i=>$file ){ if ( $file['error...

[PHP] - String lookup into unknown charset html content

Hi there guys, I'm using strpos to lookup for string into web page bodies. 50% it fails, although the search string is present. I have tried to strtolower both search string and searched content, same results. Probabily the problem arises when dealing with different charsets... Assuming: - search string charset is unknown - searched con...

Zend_Infocard as part of Zend Authentication

I'm trying to implement this basic example found here: under the section titled "Using as part of Zend_Auth". I have the Zend Framework version 1.10, Apache 2.2.11 and I'm using Firefox with the "Cardspace for Firefox 3" extension. The login page comes up (as copied from the example in the documentation) and I'm able to chose an info ...

>!= PHP operator, how to write not equal to or greater than?

How can I write not greater-than-or-equal-to in php? Is it >!=? ...

How do I implement something like Digg Swarm in PHP or Python?

http://labs.digg.com/swarm/ ...

PHP arrays break apart and rebuild

A bit of background The project I am working on requires me to build a dynamic form, essentially a page is created and from there a user can add as many news articles to that page as they wish, my issue is that this is an inherited system and I have to jump through a million different hoops, one of which is the string sanitation, they w...

datepicker in php

Hi all, I am using the jquery datepicker and I formated my date as "yy-mm-dd" and from PHP my date format is "Y-m-d". I did an alert and viewed the selected date in the "onSelect" event for the datepicker. Within this event I am using ajax via the jquery "load" function to load content into a div. My problem is very odd behavior! For som...

PHP - Maintaining session when redirecting from HTTP to HTTPS?

Hi, I'm working on a simple shopping cart. When the user clicks checkout the URL changes from HTTP to HTTPS. Unfortunately the session does not appear to carry over and I get errors about $_SESSION['cart'] (where I hold the info) not existing. I tried using mod_rewrite to redirect all HTTP to HTTPS so that the session would all be on H...

join 2 tables in mysql, return rows that don't relate

I have 2 tables: table 1: questions (id, question, date) table 2: answers (id, question_id, answer, date) a question can have more than 1 answer, some questions don't have answers. I want to output only unanswered questions a query like "SELECT * FROM questions,answers WHERE questions.id!=answers.question_id group by questions.id" do...