Question about The PHP Group PHP

1 Answer

PHP Extract How can i extract a string from alonger string that contains it, using regular PHP expressions? Example - Extract website, or worldwide from this string website@worldwide.com

Posted by on

1 Answer

  • Level 2:

    An expert who has achieved level 2 by getting 100 points

    Hot-Shot:

    An expert who has answered 20 questions.

    Corporal:

    An expert that hasĀ over 10 points.

    Mayor:

    An expert whose answer gotĀ voted for 2 times.

  • Expert
  • 83 Answers

You have download the file
exemple : php.rar *......
And You can now extract and edit you file
then upload the file in your ftp

Posted on Aug 22, 2008

Add Your Answer

Uploading: 0%

my-video-file.mp4

Complete. Click "Add" to insert your video. Add

×

Loading...
Loading...

Related Questions:

3 Answers

A java code for anagram


import java.io.IOException;

public class AnagramApp {
static int size;

static int count;

static char[] charArray;

public static void main(String[] args) throws IOException {
String input = "Java Source and Support";
size = input.length();
count = 0;
charArray = new char[size];
for (int j = 0; j < size; j++)
charArray[j] = input.charAt(j);
doAnagram(size);
}

public static void doAnagram(int newSize) {
int limit;
if (newSize == 1) // if too small, return;
return;
// for each position,
for (int i = 0; i < newSize; i++) {
doAnagram(newSize - 1); // anagram remaining
if (newSize == 2) // if innermost,
display();
rotate(newSize); // rotate word
}
}

// rotate left all chars from position to end
public static void rotate(int newSize) {
int i;
int position = size - newSize;
// save first letter
char temp = charArray[position];
//shift others left
for (i = position + 1; i < size; i++)
charArray[i - 1] = charArray[i];
//put first on right
charArray[i - 1] = temp;
}

public static void display() {
System.out.print(++count + " ");
for (int i = 0; i < size; i++)
System.out.print(charArray[i]);
System.out.println();
}
}

Nov 22, 2010 | Compilers & Programming Tools

1 Answer

Hi, I have microsoft web expressions and just finished doing a website for a school assignment. I want to send it to my prof, but I don't think he has the program. How can I get him to view it? Thank you.


Hey,
Your professor should not need this program to view your website. I am assuming that your website is all in HTML format (homepage.html), so if you send those files to him (along with any images that you used) all in one folder, he should be able to view it in his browser.
Hope this helps you, good luck!

Aug 06, 2010 | Microsoft Expression Web: Windows

1 Answer

How to search strings in visual basic 6.0


example:
Dim SearchWithinThis As String = "ABCDEFGHIJKLMNOP" Dim SearchForThis As String = "DEF" Dim FirstCharacter As Integer = SearchWithinThis.IndexOf(SearchForThis)

Mar 11, 2009 | Microsoft Visual Basic 6.0 for PC

1 Answer

Sorting string and numeric


One simple way to achieve this is using radio button function. Give the user flexibility to change sorting via String or Numeric. As the user clicks on String the result bottom of this option will change the sorting method using String. Otherwise, Numeric.

By the way, please be specific in posting your question. Include the development tools that you use. For example, MS Access 2003.

Regards,
Maha

Feb 04, 2009 | Intelligent Computer Compilers &...

1 Answer

Book mark property of recordset (ado)


The bookmark property of a recordset lets you store and retrieve the location of a record in a variable so that you can move directly to it in your recordset without having to use a query to extract that record. Like you can just move forward a record and back a record, or move to the first or last records without a quesry statement, you can move to the bookmarked record directly in code.

Here's a good VB example that compares the bookmakr property to the movefirst and movelast properties. This should answer your question, and please rate my answer.

'BeginBOFVB 'To integrate this code 'replace the data source and initial catalog values 'in the connection string Public Sub Main() On Error GoTo ErrorHandler 'recordset and connection variables Dim Cnxn As ADODB.Connection Dim rstPublishers As ADODB.Recordset Dim strCnxn As String Dim strSQLPubs As String 'record variables Dim strMessage As String Dim intCommand As Integer Dim varBookmark As Variant ' open connection Set Cnxn = New ADODB.Connection strCnxn = "Provider='sqloledb';Data Source='MySqlServer';" & _ "Initial Catalog='Pubs';Integrated Security='SSPI';" Cnxn.Open strCnxn ' Open recordset and use client cursor ' to enable AbsolutePosition property Set rstPublishers = New ADODB.Recordset strSQLPubs = "SELECT pub_id, pub_name FROM publishers ORDER BY pub_name" rstPublishers.Open strSQLPubs, strCnxn, adUseClient, adOpenStatic, adCmdText rstPublishers.MoveFirst Do Until rstPublishers.EOF ' Display information about current record ' and get user input strMessage = "Publisher: " & rstPublishers!pub_name & _ vbCr & "(record " & rstPublishers.AbsolutePosition & _ " of " & rstPublishers.RecordCount & ")" & vbCr & vbCr & _ "Enter command:" & vbCr & _ "[1 - next / 2 - previous /" & vbCr & _ "3 - set bookmark / 4 - go to bookmark]" intCommand = Val(InputBox(strMessage)) ' Check user input Select Case intCommand Case 1 ' Move forward trapping for EOF rstPublishers.MoveNext If rstPublishers.EOF Then MsgBox "Moving past the last record." & _ vbCr & "Try again." rstPublishers.MoveLast End If Case 2 ' Move backward trapping for BOF rstPublishers.MovePrevious If rstPublishers.BOF Then MsgBox "Moving past the first record." & _ vbCr & "Try again." rstPublishers.MoveFirst End If Case 3 ' Store the bookmark of the current record varBookmark = rstPublishers.Bookmark Case 4 ' Go to the record indicated by the stored bookmark If IsEmpty(varBookmark) Then MsgBox "No Bookmark set!" Else rstPublishers.Bookmark = varBookmark End If Case Else Exit Do End Select Loop ' clean up rstPublishers.Close Cnxn.Close Set rstPublishers = Nothing Set Cnxn = Nothing Exit Sub ErrorHandler: ' clean up If Not rstPublishers Is Nothing Then If rstPublishers.State = adStateOpen Then rstPublishers.Close End If Set rstPublishers = Nothing If Not Cnxn Is Nothing Then If Cnxn.State = adStateOpen Then Cnxn.Close End If Set Cnxn = Nothing If Err <> 0 Then MsgBox Err.Source & "-->" & Err.Description, , "Error" End If End Sub 'EndBOFVB

Jan 07, 2009 | Microsoft Visual Basic 6.0 for PC

2 Answers

Echo PHP


Print outputs a single string, echo can output multiple strings. (It's in the help file.)

Sep 08, 2008 | The PHP Group PHP

1 Answer

PHP Parse error


sir :
Do you have a problem in your own web page or what?

This mistake frequently occurs when a particular quote is
present in a string delimited by the same kind of quotes,
for example:

<?
echo 'apple API';
?>

In such situations the PHP interpreter does not know when he
starts and ends where the chain. The solution is to "escape"
quotes problem by being preceded by a backslash
(backslash):

<?
echo 'apple d \' api ';
?>
In the same way for the double quotes

<?
echo "said Jacques \" Hello! \ "";
?>

The PHP parser generally indicates the line where
the error occurred.
This error may also be due to the oblivion
of a semi-colon (;) at the end of the investigation
into the previous line ...

please dont forget rating this comment.
if this not helping u tell me so i can help u

Aug 26, 2008 | The PHP Group PHP

2 Answers

Please help me


you have download the file
exemple : data.rar *......
And You can now extract and edit you file
then upload the file in your ftp
And You are Finish

Aug 21, 2008 | Compilers & Programming Tools

1 Answer

Converting word formatted data in CStriing to MS publisher


Why not use Word Automation? You instantiate an object with a reference to Application.Word, load your document, then use the built in functions to extract the text from the document and paste it into the MSP document.

Jun 30, 2008 | Microsoft Compilers & Programming Tools

1 Answer

Java code


first you should extract your zip file.for that right click on that file and you can see the option extract, just click it.it will take some time to extract the file.after that open the file by double click it.

Feb 03, 2008 | Compilers & Programming Tools

Not finding what you are looking for?
The PHP Group PHP Logo

Related Topics:

75 people viewed this question

Ask a Question

Usually answered in minutes!

Top The PHP Group Compilers & Programming Tools Experts

Robin Hill
Robin Hill

Level 3 Expert

1251 Answers

Mike

Level 3 Expert

4331 Answers

Mishan Kasiparsad

Level 2 Expert

142 Answers

Are you a The PHP Group Compiler and Programming Tool Expert? Answer questions, earn points and help others

Answer questions

Manuals & User Guides

Loading...