Hi
I was wondering what the best way to send 6 'file' inputs to a php page would be... and how to process them, i used this website to understand uploading one file
PHP Tutorial - File Uplaod
Also, i want to name each of the 6 images with a time stamp for example below...
00000000
00000001
00000002
00000003
00000004
00000005
Basical...
I have some PHP code that generates a calendar and then outputs html to display it.
To display it on a page all I need to do is <?php include('calendar.php'); ?>.
Is this bad practice?
...
I am wondering if there is a way to pass a variable to a file you are including via include()?
I tried this but got an error:
include("header_alt.php?img=hey");
Is there a way to do that?
Thanks!
...
Does any body know why the filter_var() function below is generating the warning? Is there a limit on how many characters can be in a character class?
$regex = "/^[\w\041\042\043\044\045\046\047\050\051\052\053\054\055\056\057\072\073\074\075\076\077\100\133\134\135\136\140\173\174\175\176]*$/";
$string = "abc";
if(!filter_var($string...
I need the following authentication script finished. I am weak at php/pdo so I do not know how to ask for the number of rows equalling one and then setting the session id's from the results of the query. I need to not only set the $_SESSION['userid'] but also the ['company'] and the ['security_id'] as well from the results.
here is wha...
where should includes be stored in a file system??
...
I am sure someone has this done already, and was hoping someone could share some code.
We have the following .htaccess file in place:
RewriteEngine on
RewriteBase /
RewriteRule !\.(js|ico|txt|gif|jpg|png|css)$ index.php
This is the same one Zend uses. We are trying to emulate the same URL structure Zend does. We would use Zend but ...
Hi
What is the best way to refresh the content of a var that is included? For example i have this code:
<marquee>
<?php
include('note.php');
?>
</marquee>
This is great, as i can show on the page the contents of note.php - say i change note.php but i dont want users refreshing to see the changes... is there any way...
Okay. So I have about 250,000 high resolution images. What I want to do is go through all of them and find ones that are corrupted. If you know what 4scrape is, then you know the nature of the images I.
Corrupted, to me, is the image is loaded into Firefox and it says
The image “such and such image” cannot be displayed, because it c...
Hello,
I am trying to create a point system in my program similar to stack overflow i.e. when the user does some good deed (activity) his/her points are increased. I am wondering what is the best way to go about implementing this in terms of db schema + logic.
I can think of three options:
Add an extra field called points in the user...
I'm making a rating system, and I have the following jQuery code on my index.php page:
<script type="text/javascript">
$(document).ready(function() {
$("[id^=rating_]").hover(function() {
var rid = $(this).attr("id").split("_")[1];
$("#rating_"+rid).children("[class^=star_]").children('img').hover(function() {
$(...
Is there any drawback to this setup?
I want to be able to run PHP5 filters and functions... Will renaming a file to something.php5 allow me to do this?
My hosting provider suggested this instead of upgrading to PHP5.
The default is still php4 with registered_globals ON
...
Hello and thanks to everyone for reading my question.
I've been working on a PHP web program for a little while and was wondering what measures should I take to protect the source before putting it on a live server. The source isn't being distributed, it's being accessed through a website (users log into the website to use it).
First...
May Not Be Safe For Work
Hello All, I cannot get my server to make a secure connection.
I created a checkout form here: https://bradp.com/join-30-30-club
When entered, the browser attempts to make a secure connection appears to give up and goes to an unencrypted connection.
What do you think It could be?
I'm using Apache and PHP.
...
I want to use PDT to debug PHP with eclipse. I am using ubuntu 9.04.
Can any one help me? please give details if possible.
...
Which one should be used php PDO or normal mysql_connect to execute database query through PHP.
Which one is faster?
One of the big benefits of PDO is that the interface is consistent across multiple databases.
There are some cool functions for prepared statements too, which take some of the hassle out of escaping all your query strin...
I can't access my index.php file within a subdirectory of my Drupal installation. I can access other subdirectories index files and I can also access the subdirectory and see its contents when I remove the index.php file. I've made changes to my .htaccess file a while back which should allow any index.html, index.php, or index.htm file t...
I have an HTML form where the user can type in any number:5, 8, 4.2, 5.8, anything in terms of numbers (integers or doubles).
However, I was wondering is it possible to have my php script round some of the numbers when entered into the html form, for example when a user enters 4.2, the php script should be able to round it to 4 or if it...
Hi,
I have a timeclock system where i need to print a report for each user... and dont have anyh clue how to do this... im trying to see if DOMPDF its a solution but the website is off.
My ideia is create a pdf with one report in each page... but dont have a clue without read the DOMPDF class..
Any other solution, maybe js, dunno.
Re...
Let's say I want to be able to validate that a 50GB+ XML file conforms to a given XSD. I could use
DOMDocument::load & DOMDocument::schemaValidate
but that will take all of time on loading and will generally exhaust all available memory for me. Is there any way to feed an XSD to a SAX or any other type of stream processor and have it...