Hi Guys,
I'm having a really hard time getting my head around using REST-style URLS. Can I get a little help with this? Right now I have a query string like so:
example.com/calendar_expanded?date=1270094400
I have a mod rewrite that's hiding the .php extension. How do I
Make this calendar_expanded/date/1270094400 happen.
$_GET t...
When using ImageMagick, I can set certain limits for memory usage and maximum number of threads. There are 3 ways to do this, as far as I know:
use a command line options like "convert -limit memory 128mb original.jpg new.jpg"
use environment variables like "MAGICK_THREAD_LIMIT=1"
edit the 'policy.xml' configuration file to change the ...
I'm a C# programmer and I love the language. I think it's the best thing since sliced bread. Recently I have become real interested in creating a website that offers jobs and allows companies to post jobs for people to navigate through.
This is going to be a nationwide site only, no international connections.
I'm somewhat familiar with...
I am trying to simplify the process of inserting data into my database, so I have constructed a model that handles the variable extraction and data inserting.
I understand that this model embodies a function, and then you call this function (such as /controller/model) and pass the relevant data through the model for processing. However,...
I need to dynamically create in PHP a drop-down list of numerical choices like so:
<select>
<option value="120">120 cm</option>
<option value="121">121 cm</option>
<option value="122">122 cm</option>
<option value="123">123 cm</option>
<option value="etc...
</select>
I would like to only specify the starting and ending numbers.
Thank...
All of my static pages are running fine with the custom template but for some reason the posts show up outside the frame.
----------page.php----------------
<?php
/*
Template Name: Page with Comments
*/
?>
<?php get_header(); ?>
<div id="wrapper">
<div id="wrap">
<div id="secondWrapper">
<div id="head">
<div id="header"...
I can not figure out why I am getting this session error...
Warning: session_start()
[function.session-start]: Cannot send
session cache limiter - headers
already sent (output started at
C:\webserver\htdocs\project2\labs\form-submits\index.php:2)
in
C:\webserver\htdocs\project2\labs\form-submits\index.php
on line 2
...
$GET = array();
$key = 'one=1';
$rule = explode('=',$key);
/* array_push($GET,$rule[0]=>$rule[1]); */
I'm looking for something like this so that:
print_r($GET);
/*output:*/ $GET[one=>1,two=>2,...]
is there a function to do this (because array_push won't work this way).
thanks!
...
I'm developing from my Windows laptop but need to test my development on my shared Linux hosting. I have thrown together the following in place of the normal $application_path = "application"; line.
$env['laptop']['ip'] = '127.0.0.1';
$env['laptop']['host'] = 'MATT-WINDOWS7';
$env['laptop']['path'] = 'private';
$env['mattpotts']['ip'] ...
In a PHP project, even when front controller logic is used for the main application, there can be many stand-alone scripts, ajax snippets and so on.
Is there a standardized way - either PHPDoc or something else - to define in the first comment block of the script what GET and/or POST parameters the script will accept / require and of wh...
I did some looking around at how other sites might handle this and didn't really see anything that jumped out at me. I'm working on a project where you can create pages that get linked to from every other page. Here is where the issue is coming up for me.
I'm not sure how I should go about linking to these pages. I've only really though...
Hi!
I was wondering if its possible to render gradients using the import-plugin for RaphaelJS.
Import tool: http: //github.com/wout/raphael-svg-import
Or is there a script (PHP) I could use to make a path string I could use with raphael.
I have a AJAX interface I can use if there is a PHP solution for this.
Currently the import tool ...
Is there a standard function in PHP that will find the day number of the year based on the current date?
Examples:
Jan 22nd = 22
Feb 27th = 58
Mar 5th = 64
If there isn't a standard function, has anyone built anything similar that would handle the conversion? What all is involved?
...
Was digging through the OSCommerce files on my site and found a file in the /images folder that I don't ever remember seeing before. I haven't checked the original install package, but I suspect this isn't a part of it.
The file is 27kb and called vidovic_pretty.php. It's encoded or compiled in some way, so the contents are unviewable...
Hi All,
I want to change the resolution of the image from 72 to 25 dpi using PHP?
is it possible?
Regards,
Salil Gaikwad
...
Hi How to create a CountDown Timer?
Is there any good tutorial about it?
PHP and JQuery based. thanks.
...
I need the functionality of a radio selection, without the style.
How can I style something (anything) to work like a radio button, and capture the input in a form?
...
Just like the the iPhone's app names that run to long, the name gets shortened. I really like this method of shorting a name or a string rather then appending a "..." clause to it. Sorry if I am being confusing, I'm having trouble explaining what I am trying to do. So I'll show an example!
This is what I have, to append "..." to a shor...
I've had trouble with the examples in the PHP manual, so I'd like to ask this here...
I have an array of objects.. Is there a way to sort it based on the contents of the object?
For example, my array is:
Array
(
[0] => stdClass Object
(
[id] => 123
[alias] => mike
)
[1] => stdClass Obje...
How to Load test an php webpage..
...