Smarty Object Syntax And Get "stdClass Object ("?

Smarty Object Syntax And Get "stdClass Object ("?

I registered an object an I'm trying to get the following below: stdClass Object ( [test] => test [users] => stdClass Object ( [createSave_email_subject] => - New User Account [createSave_email_pass] => The user was created, and an email was s
How To Use Php:// Input?

How To Use Php:// Input?

I tried using php://input in the following script but nothing is output when I run it: <form action="test.php" method="post"> <input type="text" value="demo" /> <input type="submit" /> &l
Go To URL With Value From Input Box?

Go To URL With Value From Input Box?

I'm trying to build a search query in PHP and having some trouble.I need to have an input box which will result in the value of XXXX.Upon pressing the search button I need the browser to redirect to the URL catalogsearch/advanced/result/?name=
How To Add Content By Url?

How To Add Content By Url?

Anyone know an easy way to include content on a page by a field in the url? I am assuming this probably easy but I cant figure it out. What I am trying to do is take a url like: http://www.domain.com/dir/ag=default&display=widget and make "widget
Get Content Of URL After #

Get Content Of URL After #

A simple question: If my PHP page is referenced thus: foo.php#bar ....what's the best way of getting the contents of the URL after the hash - as a string ("bar")? Should I get the URL, look for the "#" and then use substring()? I'd pre
Forms And Php Security

Forms And Php Security

i have a form (name, email and comments) which is being spammed mercilessly and I dont know what to do as I have image verification, validation and have changed the location of the form several times but spamming hasn't stop!!!
MIME Typs Not Working In FF

MIME Typs Not Working In FF

I am having some issues with MIME Types, For some reason everything works fine in IE But in FF i am unable to use application/vnd.ms-excel And application/msword It does not seem to recognize the content in Firefox These are being used to Upload cont
Slickgrid Html Entities Problem In Editor?

Slickgrid Html Entities Problem In Editor?

i am using slickgrid (js grid) to display some data. because i need to put the data inside " and my content contains programming code, i decode the content with the php function htmlentities($mycontent,ENT_QUOTES,"UTF-8"). Now everything re
Running A Script Remotly

Running A Script Remotly

i run a gaming server (winxp).sometimes a game server will crash so i created a batch file to retart it and got a php file to run the bat file so members can use the php scirpt instead of giving them access to the actual box. the question is:can i ru
Nl2br() And XHTML Output Question

Nl2br() And XHTML Output Question

I am using nl2br() to output <br> tags. I understand that in PHP4.0.5 and later, this gets output as XHTML-compliant code, <br /> My problem is that I am running an older version of PHP (4.0.1something), but I still want to get valid XHTML fro
Protecting Pdf Output With Sessions

Protecting Pdf Output With Sessions

I have thought about it a lot and I'm right now developing a system, where I want to protect PDF and and other content with specific headers with sessions(user login info is kept in session). when I use session_start before PDF output(using fpdf), it
Sessions - Index2.php Doen't Output The Array

Sessions - Index2.php Doen't Output The Array

i have these 2 files: index.php: <?php session_start(); $_SESSION['name']="aaa"; print_r($_SESSION); echo "go to"; ?> and index2.php <?php session_start(); print_r($_SESSION); ?> but index2.php doen't output the array. why?
Count Digits Of Input

Count Digits Of Input

I want to allow users to change their passwords, but the password has to be a 6 digit value. Is there a function that i could use to count the digits and validate the input?
Increment A Value In A 3-digits Format?

Increment A Value In A 3-digits Format?

I'd like to increment a value in a 3-digits format. For example: $start_value = 000; while () { do something; $start_value++; } In this way I have this result: $start_value = 000; $start_value = 1; $start_value = 2; $start_value = 3; and so on instea
Perserve Formating Of Text

Perserve Formating Of Text

I am creating a small site, that will have content that is uploaded by multiple people, These people will not have knowledge of html so I need to find a way to perserve the formating that they use when they enter the content into the text box, I was
Get The Decimal Value For A Character?

Get The Decimal Value For A Character?

In VB.NET you can convert characters to their unicode value and back by doing this Code: Private Function CharacterToDecimal(ByVal MyChar As Char) As Integer Return AscW(MyChar) End Function Private Function DecimalToCharacter(ByVal MyDec As Integer)
Cannot Have Value As Decimal In Table ?

Cannot Have Value As Decimal In Table ?

why i can not have value as decimal in my table ?1) i created a table in mysql. Quote: create table mytable(id smallint auto_increment primary key,price decimal) Then i tried to insert value like 7.99, but final result for the price in my table is 7,
Get The Date Of The Next Occurrence Of The 18th?

Get The Date Of The Next Occurrence Of The 18th?

so I need to use PHP to obtain the date of the next occurrence of the 18th. For example, let's say I ran my script on Dec. 28th, 2011. I would need some code that would be able to spit out 2012-01-18. If it were April 9th, 2011, I would need the code
Can I Send An Array From One Php Script To Another?

Can I Send An Array From One Php Script To Another?

Can i send an array from one php script to another? If so, how?
Using The $ Character In Query

Using The $ Character In Query

Does anyone know a successful way to use the dollar sign character within a query and not generate an error? Here's what I'm trying to do... I have a query that successfully counts the number of records within a query as well as totalizes the dollar
« Prev 1 2 3 4 5 6 ... 10 Next »