i am new to zendframework i try to run the sample quickstart
if i give the url without /pubilc it dosn't work
but if i add the /public i get the frist html page
when i send the from to get the next page i get error
The requested URL /QuickStart/public/extract was not found on this server.
please how do i start whihout the public in the ...
I have a web application inside where i need to check whether the user has sufficient permissions / roles/rights to access the page. I had set the users rights in a table with USER_ID, ROLE_ID. and when a user is logging in to the application, I will be reading the records for this user and the construct a string and assign to a sessio...
I want to create a command line program using PHP. How do I design the program's I/O?
I can send output as text. I am wondering about the specific output syntax. For example: In HTML i use <br/> to pass to a new line. How can I do this using terminal/file output? Is there a reference for terminal/file oriented programming in PHP?
...
Is it possible to redirect an image to a dynamically generated image(using PHP)?
I have a dynamically created image and it has an extension ".PHP" (obviously) and that server is not under my control. So I want to redirect "somename.jpg" (on my server) to "remoteserver/dynamicimage.php" (on some remote server not under my control) so th...
In order to convert my dynamic URL i.e www.3idiots.co.in/index.php to static url i.e www.3idiots.co.in/index.html, I edited my .htccess file and put the following code in it:
RewriteEngine On
RewriteRule ^index.php$ /index.html [R]
when i uploaded this file in the root directory,and try to open the page, I got the error
404 page n...
I am trying to generate a specific link and accompanying html depednant on the existance of a file. The code I am using to do so:
if(file_exists('../images/'. $pk . '.jpg'))
{
$imageSrc = "../images/". $pk . ".jpg";
$imagehtml = htmlentities(json_encode("<img src=\"".$imageSrc."\" >"));
$screenshotLink = "<p><a href=\"#...
hi to all,
i am working for a site,which is in php.....i want to rewrite url
e.g www.3idiots.co.in/stories.php?id=17
if i want to rewrite it as
www.3idiots.co.in/stories/17.html
can any one tell me the code for this to write in .htaccess file.?
...
I am using this form as a file upload form(as part of a larger php script, $pk is sanitized in the actual thing):
<?php
if (isset($_GET["pk"]))
{ $pk = $_GET["pk"];}
echo '<form action="up.php" method="post"
enctype="multipart/form-data">
<label for="file">Filename:</label>
<input type="file" name="file" id="file" />
<input type="hid...
I am not professional programmer so i can not be sure about this.How many mysql queries your scripts send at one page and what is your optimal query number .For example at stackoverflow's homepage it lists questions shows authors of these questions . is stackoverflow sends mysql query foreach question to get information of author. or...
I work in a web shop as a PHP programmer. Most of the time we use good coding practices but not much structure to the site as a whole.
I have now entered my phase of being bored with some of our practices and want to branch out and simplify and generate some things in a helpful way not just for me, but the hybrid-programmer web develop...
I am maintaining a simple php-based in-house cms. I'd like to search the text of articles as they are saved into the system for what will eventually be tens of thousands of different tokens, in order to automatically apply links to those tokens and also to establish a relationship in an association table between the article and the entit...
hi there people. I just want to get a quick htaccess redirection. ie:
domain.com/subfolderGreen --> domain.com/index.php?folder=subfolderGreen
(note that the subfolderGreen actually exists)
I've been trying but couldn't get to the regex needed.
thanks.
a.
ADDED:
Sorry, i want this to work for any subfolder, not just "subfolderGree...
Just looking for a good PHP Image Library, I want to display images with rounded corners, do some resizing, and blur some other pictures either on the fly, or on upload.
...
I'm kind of new in PHP. For some reason in other types of programming languages like JAVA I have no problem with using setters and getters for every single variable, but when I'm programming in PHP probably because it is so flexible it feels kind of like a waste of time. It feels simpler to just set the class attributes as public most of...
The thing is that you have classes and then you have the database data. When you create an object how do you set the objects properties to contain the data in the database ?
I saw something like this and I'm wondering if this is really the best way to do it. I'm sure this is a fairly common issue, but I don't know what are the most acce...
I'm a newbie who is creating a lightweight photo showcase site written on the cake php framework with RoR.i plan to use effects from the scriptalicious library, as well as jquery for photo display & transition effects.
As the site will be very photo-rich, what programming steps can i take to ensure that all photos and other pages load q...
I have a custom web based contact management system that we built in PHP to track contacts and recently starting checking our Google e-mail box using IMAP and then, if that contact is in our contact management system:
Copying the message into a MySQL database table that's associated with that contact
Marking that contact to follow up w...
<form action="form.php" method="post">
Username: <input type="text" name="user" maxlength="50" value="" />
Password: <input type="password" name="pass" maxlength="20" value="" />
<input type="submit" name="Submit" value="Submit" />
</form>
<?php
$Accesstrys = 0;
if($_POST['Submit'] == "Submit") {
$Accesst...
I am writing a curl script for collecting information about some sex offenders, i have developed the script that is picking up links like given below:
http://criminaljustice.state.ny.us/cgi/internet/nsor/... (snipped URL)
Now when we go on this link I want to get information under all the fields on this page like Offender Id:, last nam...
How would I list all the public variables in an instantiated Object given that we do not know the variable names in the first place?
Scenario
A class may have a function declared like:
function addVar($name, $val) {
$this->$name = $val;
}
I want a list of $names that were ever added to the object instance dynamically.
...